---
canonical: "https://firewall.lpm.dev/npm/inference-relay"
markdown: "https://firewall.lpm.dev/npm/inference-relay/report.md"
package: "inference-relay"
report_status: "published"
title: "inference-relay@1.6.19 npm security report"
verdict: "malicious"
version: "1.6.19"
---

# inference-relay@1.6.19 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Blocked & quarantined** — The executed bundle can act with the Node process’s privileges; its behavior cannot be assessed from this package snapshot.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Remote code execution
- **Selected version:** 1.6.19
- **Selected version is latest:** No
- **Analysis source:** AI security review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

The package executes remotely supplied JavaScript with Node module access, and the executed bundle is not available in the package source for review. Although the loader verifies the bundle’s signature and identifies it as a gateway bundle, this concealed remote execution is sufficient to block this version under the remote-code rule.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 87.0%
- **Started:** 2026-11-15T07:04:57.313Z
- **Finished:** 2026-11-15T07:06:06.261Z
- **Download time:** 257 ms
- **Static scan time:** 420 ms
- **AI review time:** 68270 ms
- **Total time:** 68948 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** The package fetches and executes a remote JavaScript gateway bundle whose contents are not included in the package source.

- **Trigger:** When the Claude CLI provider is loaded, such as during warmup or inference.

- **Impact:** The executed bundle can act with the Node process’s privileges; its behavior cannot be assessed from this package snapshot.

- **Evidence paths:** dist/index.js, package.json

- **Review source:** ai\_review

- **Reviewed:** 2026-11-15T07:06:06.261Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** The loader fetches a bundle URL supplied by the gateway authority, verifies its signature and metadata, then compiles and runs the bundle with Node module access.

- **Attack narrative:** When the Claude CLI provider loads, the package can retrieve a JavaScript bundle from its gateway and execute it inside the Node process. The bundle is signature-checked, but its contents are absent from this package snapshot, leaving its executed behavior unreviewable.

- **Rationale:** The package executes remotely supplied JavaScript with Node module access, and the executed bundle is not available in the package source for review. Although the loader verifies the bundle’s signature and identifies it as a gateway bundle, this concealed remote execution is sufficient to block this version under the remote-code rule.

- **Files touched:** ~/.inference-relay/gateway/\<version\>/bundle.js, ~/.inference-relay/gateway/\<version\>/meta.json

- **Network endpoints:** https://api.inference-relay.com/v1/gateway/fetch, IR\_GATEWAY\_URL (defaults to https://api.inference-relay.com), i.bundleUrl (returned by the gateway)

### Review decision

- **Verdict:** Malicious

- **Confidence:** 87.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** The package downloads a gateway bundle from a URL returned by its authority., The downloaded bundle is compiled and executed as JavaScript with Node module access., The loader is reached when the Claude CLI provider is loaded.

- **Evidence against:** The bundle signature, purpose, library version, and hash are verified before execution., The gateway is the package’s own service, and the package describes its purpose as routing AI inference., No install lifecycle scripts are declared; the remote loader is used when the provider loads.

## Affected versions and remediation

This report applies to inference-relay@1.6.19.

- Avoid installing inference-relay@1.6.19. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.

## Public findings

### 1. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/inference-relay@1.6.19/dist/index.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L1: import {execSync}from'child_process';import {mkdirSync,writeFileSync,existsSync,readFileSync}from'fs';import {join,dirname}from'path';import {homedir}from'os';import {createHash,ra...
L2: var at=Object.defineProperty;var ot=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):n)(function(n){if(typeof require<"u"...
```

### 3. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/cli/main.js
- **Public source:** [View source](<https://unpkg.com/inference-relay@1.6.19/dist/cli/main.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L23: UQIDAQAB
L24: -----END PUBLIC KEY-----`,H=new Map,Fe=new Set,_n=n=>!!n&&typeof n.aborted=="boolean"&&typeof n.addEventListener=="function";fe=class n{static version=ge;get version(){return ge}ge...
```

### 4. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%

Package source references a known benign dynamic code generation pattern.

### 5. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 6. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 7. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 8. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/inference-relay@1.6.19/dist/index.js>)

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

Public source snippet (untrusted):

```javascript
L1: import {execSync}from'child_process';import {mkdirSync,writeFileSync,existsSync,readFileSync}from'fs';import {join,dirname}from'path';import {homedir}from'os';import {createHash,ra...
L2: var at=Object.defineProperty;var ot=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):n)(function(n){if(typeof require<"u"...
L3: [redacted]
```

### 9. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/inference-relay@1.6.19/dist/index.js>)

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

Public source snippet (untrusted):

```javascript
L1: import {execSync}from'child_process';import {mkdirSync,writeFileSync,existsSync,readFileSync}from'fs';import {join,dirname}from'path';import {homedir}from'os';import {createHash,ra...
L2: var at=Object.defineProperty;var ot=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):n)(function(n){if(typeof require<"u"...
L3: [redacted]
...
L9: UQIDAQAB
L10: -----END PUBLIC KEY-----`,ve={version:"1.0.0",cliVersion:"2.1.87",eventTypes:{system:"system",streamEvent:"stream_event",assistant:"assistant",result:"result"},fieldMappings:{sessi...
L11: `);o=y.pop()||"";let m=null;for(let g of y)if(g.startsWith("event: "))m=g.slice(7).trim();else if(g.startsWith("data: ")){let f=g.slice(6);if(m&&f)try{let R=JSON.parse(f);R.type===...
L12: `);l=R.po
```

### 10. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/inference-relay@1.6.19/dist/index.js>)

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

Public source snippet (untrusted):

```javascript
L1: import {execSync}from'child_process';import {mkdirSync,writeFileSync,existsSync,readFileSync}from'fs';import {join,dirname}from'path';import {homedir}from'os';import {createHash,ra...
L2: var at=Object.defineProperty;var ot=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):n)(function(n){if(typeof require<"u"...
L3: [redacted]
...
L9: UQIDAQAB
L10: -----END PUBLIC KEY-----`,ve={version:"1.0.0",cliVersion:"2.1.87",eventTypes:{system:"system",streamEvent:"stream_event",assistant:"assistant",result:"result"},fieldMappings:{sessi...
L11: `);o=y.pop()||"";let m=null;for(let g of y)if(g.startsWith("event: "))m=g.slice(7).trim();else if(g.startsWith("data: ")){let f=g.slice(6);if(m&&f)try{let R=JSON.parse(f);R.type===...
L12: `);l=R.po
```

### 11. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.cjs
- **Public source:** [View source](<https://unpkg.com/inference-relay@1.6.19/dist/index.cjs>)

A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable command-output exfiltration chain: manifest.main -> dist/index.cjs
L1: 'use strict';var child_process=require('child_process'),fs=require('fs'),path=require('path'),os=require('os'),crypto$1=require('crypto'),vm=require('vm'),module$1=require('module'...
L2: var at=Object.defineProperty;var ot=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):n)(function(n){if(typeof require<"u"...
L3: [redacted]
...
L9: UQIDAQAB
L10: -----END PUBLIC KEY-----`,ve={version:"1.0.0",cliVersion:"2.1.87",eventTypes:{system:"system",streamEvent:"stream_event",assistant:"assistant",result:"result"},fieldMappings:{sessi...
L11: `);o=y.pop()||"";let m=null;for(let g of y)if(g.startsWith("event: "))m=g.slice(7).trim();else if(g.startsWith("d
```

### 12. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 13. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 14. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 85.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 15. Low: No License
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest does not declare a clear license.

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 1
- **Optional dependencies:** 0
- **Peer dependencies:** 1
- **Development dependencies:** 4
- **Published dependency-graph edges:** 2

### Published dependency entries
- jose ^6.2.2 (Dependency)
- @anthropic-ai/sdk \>=0.50.0 (PeerDependency)

## Package metadata
- **Package:** inference-relay
- **Ecosystem:** npm
- **Version:** 1.6.19
- **License:** SEE LICENSE IN LICENSE
- **Version published:** 2026-11-15T07:01:32.568Z
- **Package first seen:** 2026-10-14T04:07:22.383Z
- **Package last seen:** 2026-11-15T16:17:47.752Z
- **Known versions:** 9
- **Latest version:** 1.6.20
- **Appeal under review:** No
- **Description:** Route AI inference to the user's existing subscription
- **Author:** L2B II LLC
- **Keywords:** ai, inference, claude, openai, anthropic, relay, routing, streaming, fallback, cost-optimization
- **Runtime engines:** node: \>=18.0.0
- **Artifact files:** 27
- **Artifact unpacked size:** 329,456 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/inference-relay>)
- [Homepage](<https://inference-relay.com/>)
