---
canonical: "https://firewall.lpm.dev/npm/llm-failover-proxy/v/1.3.0"
markdown: "https://firewall.lpm.dev/npm/llm-failover-proxy/v/1.3.0.md"
package: "llm-failover-proxy"
report_status: "published"
title: "llm-failover-proxy@1.3.0 npm security report"
verdict: "malicious"
version: "1.3.0"
---

# llm-failover-proxy@1.3.0 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** — Persistent background process and provider-key-capable proxy run after installation.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Persistence
- **Selected version:** 1.3.0
- **Selected version is latest:** No
- **Analysis source:** AI Security Review (lpm-firewall-ai)

Installation starts a background proxy without an explicit user command. Global installation writes and activates an OS login-persistence entry.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Malicious
- **Confidence:** 97.0%
- **Started:** 2026-08-11T13:03:38.070Z
- **Finished:** 2026-08-11T13:04:17.186Z
- **Download time:** 252 ms
- **Static scan time:** 1142 ms
- **AI review time:** 37720 ms
- **Total time:** 39116 ms

## Security analysis

### Published attack-surface review

- **Summary:** Installation starts a background proxy without an explicit user command. Global installation writes and activates an OS login-persistence entry.

- **Trigger:** npm postinstall, especially global installation

- **Impact:** Persistent background process and provider-key-capable proxy run after installation.

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

- **Review source:** ai\_review

- **Reviewed:** 2026-08-11T13:04:17.186Z

### AI review details

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

- **Mechanism:** daemon launch plus OS login persistence

- **Attack narrative:** The install hook invokes the package CLI to launch a detached daemon for ordinary installs. On global install it invokes enable, which writes and activates a per-user launch-at-login artifact; the daemon copies the package entrypoint into its service directory and runs it in the background. This is unconsented persistence triggered solely by package installation.

- **Rationale:** The package’s proxy behavior is plausible, but automatic daemon startup and login persistence during postinstall are concrete harmful behavior outside an explicit user action.

- **Files touched:** scripts/postinstall.js, scripts/preuninstall.js, dist/index.js, ~/Library/LaunchAgents/com.llm-failover-proxy.plist, $XDG\_CONFIG\_HOME/systemd/user/llm-failover-proxy.service

### Review decision

- **Verdict:** Malicious

- **Confidence:** 97.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for:** package.json runs postinstall automatically., scripts/postinstall.js starts daemon on install., dist/index.js writes login persistence and activates it., Global installs create LaunchAgent/systemd/Startup entry.

- **Evidence against:** Proxy forwarding uses configured provider endpoints., preuninstall.js attempts service cleanup.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/llm-failover-proxy@1.3.0/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall.js
```

### 2. Medium: Ambiguous Install Lifecycle Script
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/llm-failover-proxy@1.3.0/package.json>)

Install-time lifecycle script is not statically allowlisted and needs review.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall.js
```

### 3. Low: Non Install Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 80.0%

Package declares lifecycle scripts that are not normally run for registry tarball installs.

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

Package declares npm scripts.

### 5. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/llm-failover-proxy@1.3.0/dist/index.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L8: `),pm=/^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=(.*)$/,Gf=new Set,kf={}});import hN from"node:crypto";import Yi from"node:fs";import QN from"node:os";import Gn from"node:path"...
L9: `,{mode:384}),Yi.renameSync(a,t);try{Yi.chmodSync(t,384)}catch{}return e.__file=t,t}function ym(e){return{id:e.id||zi("prov"),name:String(e.name||"provider").trim(),type:e.type==="...
L10: `)),t}catch{return Ur}}function Mm(e){try{let{origin:t}=JSON.parse(je.readFileSync(Rm(e),"utf8"));return typeof t=="string"&&!je.existsSync(t)}catch{return!1}}function Yf(e){try{re...
```

### 6. High: Shell
- **Category:** Source
- **Confidence:** 85.0%

Package source references shell execution.

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

Package source references network APIs.

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

Package source references environment variables.

### 9. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/llm-failover-proxy@1.3.0/dist/index.js>)

Source writes installer persistence such as shell profile or service configuration.

Public source snippet (untrusted):

```javascript
L4: var sN=Object.create;var Uf=Object.defineProperty;var lN=Object.getOwnPropertyDescriptor;var uN=Object.getOwnPropertyNames;var cN=Object.getPrototypeOf,gN=Object.prototype.hasOwnPr...
L5: `).replace(/\\r/g,"\r").replace(/\\t/g,"	").replace(/\\(["'\\])/g,"$1");if(t.length>=2&&t.startsWith("'")&&t.endsWith("'"))return t.slice(1,-1);let i=t.indexOf(" #");return(i===-1?...
L6: `).trimEnd()}
L7: `,{mode:384}),br.renameSync(f,e);try{br.chmodSync(e,384)}catch{}if(i)for(let[E,d]of o)process.env[E]=String(d),Gf.add(E),kf[E]=String(d);return{file:e,written:c}}var EN,pm,Gf,kf,Ji...
L8: `),pm=/^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=(.*)$/,Gf=new Set,kf={}});import hN from"node:crypto";import Yi from"node:fs";import QN from"node:os";import Gn from"node:path"...
L9: `,{mode:384}),Yi.renameSyn
```

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

Package source references filesystem APIs.

### 11. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/llm-failover-proxy@1.3.0/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
L4: var sN=Object.create;var Uf=Object.defineProperty;var lN=Object.getOwnPropertyDescriptor;var uN=Object.getOwnPropertyNames;var cN=Object.getPrototypeOf,gN=Object.prototype.hasOwnPr...
L5: `).replace(/\\r/g,"\r").replace(/\\t/g,"	").replace(/\\(["'\\])/g,"$1");if(t.length>=2&&t.startsWith("'")&&t.endsWith("'"))return t.slice(1,-1);let i=t.indexOf(" #");return(i===-1?...
L6: `).trimEnd()}
...
L8: `),pm=/^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=(.*)$/,Gf=new Set,kf={}});import hN from"node:crypto";import Yi from"node:fs";import QN from"node:os";import Gn from"node:path"...
L9: `,{mode:384}),Yi.renameSync(a,t);try{Yi.chmodSync(t,384)}catch{}return e.__file=t,t}function ym(e){return{id:e.id||zi("prov"),name:String(e.name||"provider").trim(),type:e.type==="...
L10: `)),t}catch{return Ur
```

### 12. High: Entrypoint Foreign Package Code Overwrite
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/llm-failover-proxy@1.3.0/dist/index.js>)

Manifest-reachable source overwrites another installed package with package-defined remote behavior.

Public source snippet (untrusted):

```javascript
Manifest-reachable source resolves another installed package, overwrites its runtime code, and injects package-defined remote behavior.
dist/index.js:
`).replace(/\\r/g,"\r").replace(/\\t/g,"	").replace(/\\(["'\\])/g,"$1");if(t.length>=2&&t.startsWith("'")&&t.endsWith("'"))return t.slice(1,-1);let i=t.indexOf(" #");return(i===-1?...
`),pm=/^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=(.*)$/,Gf=new Set,kf={}});import hN from"node:crypto";import Yi from"node:fs";import QN from"node:os";import Gn from"node:path"...
`,{mode:384}),Yi.renameSync(a,t);try{Yi.chmodSync(t,384)}catch{}return e.__file=t,t}function ym(e){return{id:e.id||zi("prov"),name:String(e.name||"provider").trim(),type:e.type==="...
`)),t}catch{return Ur}}function Mm(e){try{let{origin:t}=JSON.parse(je.readFileSync(Rm(e),"utf8"))
```

### 13. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/llm-failover-proxy@1.3.0/dist/index.js>)

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

Public source snippet (untrusted):

```javascript
L8: `),pm=/^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=(.*)$/,Gf=new Set,kf={}});import hN from"node:crypto";import Yi from"node:fs";import QN from"node:os";import Gn from"node:path"...
L9: `,{mode:384}),Yi.renameSync(a,t);try{Yi.chmodSync(t,384)}catch{}return e.__file=t,t}function ym(e){return{id:e.id||zi("prov"),name:String(e.name||"provider").trim(),type:e.type==="...
L10: `)),t}catch{return Ur}}function Mm(e){try{let{origin:t}=JSON.parse(je.readFileSync(Rm(e),"utf8"));return typeof t=="string"&&!je.existsSync(t)}catch{return!1}}function Yf(e){try{re...
L11: `)}catch{}return i}function mu(e,t=process.pid){let i=zf(e);if(i&&i.pid!==t)return!1;try{return je.unlinkSync(pu(e)),!0}catch{return!1}}function Tm(e){if(!Number.isInteger(e)||e<=0...
L12: `)}catch{return""}}async function hu({con
```

### 14. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** scripts/postinstall.js
- **Public source:** [View source](<https://unpkg.com/llm-failover-proxy@1.3.0/scripts/postinstall.js>)

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

Public source snippet (untrusted):

```javascript
Cross-file remote execution chain: scripts/postinstall.js spawns dist/index.js; helper contains network access plus dynamic code execution.
L9: */
L10: import { spawnSync } from "node:child_process";
L11: import fs from "node:fs";
...
L30: const terminal = (() => {
L31: const target = process.platform === "win32" ? "CONOUT$" : "/dev/tty";
L32: let fd = null;
...
L48: const line = `${text}\n`;
L49: if (terminal === null) return void process.stdout.write(line);
L50: try {
...
L59: 
L60: const isGlobal = process.env.npm[redacted] === "true";
L61: const isNpx = process.env.npm_command === "exec" || packageDir.includes("_npx");
```

### 15. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/llm-failover-proxy@1.3.0/dist/index.js>)

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.bin -> dist/index.js
L8: `),pm=/^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=(.*)$/,Gf=new Set,kf={}});import hN from"node:crypto";import Yi from"node:fs";import QN from"node:os";import Gn from"node:path"...
L9: `,{mode:384}),Yi.renameSync(a,t);try{Yi.chmodSync(t,384)}catch{}return e.__file=t,t}function ym(e){return{id:e.id||zi("prov"),name:String(e.name||"provider").trim(),type:e.type==="...
L10: `)),t}catch{return Ur}}function Mm(e){try{let{origin:t}=JSON.parse(je.readFileSync(Rm(e),"utf8"));return typeof t=="string"&&!je.existsSync(t)}catch{return!1}}function Yf(e){try{re...
L11: `)}catch{}return i}function mu(e,t=process.pid){let i=zf(e);if(i&&i.pid!==t)return!1;try{return je.unlinkSync(pu(e)),!0}catch{return!1}}function Tm
```

### 16. High: Trigger Reachable Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/llm-failover-proxy@1.3.0/dist/index.js>)

A manifest entrypoint or package-local install chain reaches persistence behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable persistence chain: manifest.bin -> dist/index.js
L4: var sN=Object.create;var Uf=Object.defineProperty;var lN=Object.getOwnPropertyDescriptor;var uN=Object.getOwnPropertyNames;var cN=Object.getPrototypeOf,gN=Object.prototype.hasOwnPr...
L5: `).replace(/\\r/g,"\r").replace(/\\t/g,"	").replace(/\\(["'\\])/g,"$1");if(t.length>=2&&t.startsWith("'")&&t.endsWith("'"))return t.slice(1,-1);let i=t.indexOf(" #");return(i===-1?...
L6: `).trimEnd()}
L7: `,{mode:384}),br.renameSync(f,e);try{br.chmodSync(e,384)}catch{}if(i)for(let[E,d]of o)process.env[E]=String(d),Gf.add(E),kf[E]=String(d);return{file:e,written:c}}var EN,pm,Gf,kf,Ji...
L8: `),pm=/^\s*(?:export\s+)?([A-Za-z_][A-Za-z0-9_]*)\s*=(.*)$/,Gf=new Set,kf={}});import hN from"node:crypto";import Yi from"node:fs";import QN from"n
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

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

### 20. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/index.js
- **Public source:** [View source](<https://unpkg.com/llm-failover-proxy@1.3.0/dist/index.js>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = llm-failover-proxy@1.2.0
matchedIdentity = npm:bGxtLWZhaWxvdmVyLXByb3h5:1.2.0
similarity = 0.500
summary = stored previous version shares package body but lacks this dangerous source file
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** postinstall, preuninstall
- **Dependencies:** 0
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 4
- **Published dependency-graph edges:** 0

## Package metadata
- **Package:** llm-failover-proxy
- **Ecosystem:** npm
- **Version:** 1.3.0
- **License:** MIT
- **Version published:** 2026-08-11T12:58:34.258Z
- **Package first seen:** 2026-08-11T04:06:41.733Z
- **Package last seen:** 2026-08-14T14:12:02.869Z
- **Known versions:** 10
- **Latest version:** 1.8.0
- **Appeal under review:** No
- **Description:** OpenAI-compatible LLM proxy with automatic provider failover, streaming support, and a terminal UI to manage providers, models and priority order.
- **Author:** Antoine Joly
- **Keywords:** llm, openai, openai-compatible, proxy, gateway, failover, fallback, streaming, sse, anthropic, openrouter, ollama
- **Runtime engines:** node: \>=22
- **Artifact files:** 8
- **Artifact unpacked size:** 602,630 bytes
- **Artifact signatures:** 1
- **Attestations:** Yes

## References
- [HTML security report](<https://firewall.lpm.dev/npm/llm-failover-proxy/v/1.3.0>)
- [Repository](<https://github.com/ajoly21/LLM-Failover-Proxy.git>)
- [Homepage](<https://github.com/ajoly21/LLM-Failover-Proxy#readme>)
- [Issues](<https://github.com/ajoly21/LLM-Failover-Proxy/issues>)
