Loading npm security reports…
Loading npm security reports…
@0xmaxma/claude-gateway@2.1.14: npm security report – allowed | LPM Firewall
Allowed — no malicious behavior detected
24 low-signal patterns reviewed and cleared.
AI security reviewscanned on Nov 19, 2026, 03:47 UTC · by lpm-firewall-ai The install hook performs optional setup of the package's MCP dependencies. The flagged Telegram code sends scrubbed task status to Telegram, while skill notifications are gated by configuration and use configured recipients.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
Install runs the optional Bun dependency setup; messaging behavior runs during gateway use when configured.
Impact
No unauthorized collection, credential theft, or unrelated account action was identified.
Mechanism
The reviewed paths perform package setup and send scrubbed status or skill notifications through configured messaging services.
Evidence
package.json dist/orchestration/telegram-tool-status.js dist/agent/skill-learning/notifier.js mcp/tools/telegram/receiver-server.ts
public snapshot
Evidence for AI clean decision
The postinstall script only runs Bun to install the package's MCP dependencies when Bun is available; otherwise it prints setup guidance. Telegram status messages are built from task details and scrubbed against the bot token and environment secrets before sending. Status updates go to Telegram's Bot API using the configured bot token. Skill notifications require notification to be enabled and a configured transport; Telegram delivery targets configured recipients. Telegram outbound actions check that the chat is on the allowlist. Evidence against
The package has a postinstall lifecycle script. Gateway startup can send task status and skill notifications to configured messaging channels. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Telemetry · URL strings
Manifest No license
Scanned 597 files · 6.94 MB of source
29 external domains referenced
127.0.0.1 api.cartesia.ai api.deepgram.com api.elevenlabs.io api.line.me api.openai.com api.paxalabs.com api.telegram.org api.typesafe.ai cdn.discordapp.com cdn.jsdelivr.net chatgpt.com discord.com example.test files.pythonhosted.org fixture.invalid generativelanguage.googleapis.com github.com graph.facebook.com ilinkai.weixin.qq.com media.discordapp.net novac2c.cdn.weixin.qq.com openrouter.ai raw.githubusercontent.com registry.npmjs.org slack.com telegram.org www.npmjs.com www.w3.org Findings5 critical · 9 high · 4 medium · 6 low Source & flagged code15 flagged The lines the automated scan flagged. The review checked them and cleared this version.
Critical Red install lifecycle scriptCleared
Install-time lifecycle script matches a deterministic static-gate block pattern.
package.json View on unpkg High Install time lifecycle scriptsCleared
Package defines install-time lifecycle scripts.
package.json View on unpkg Shared scanner record · 2 findings · 1 line scripts.postinstall = if command -v bun >/dev/null 2>&1; then bun install --cwd mcp; else echo 'Warning: bun not found. Run `cd mcp && bun install` manually to enable MCP tools.'; fi
High Child processCleared
Package source references child process execution.
dist/connectors/proxy.js View on unpkg · L67 Code excerpt · 3 lines 67 const crypto_1 = require ("crypto" );
68 const child_process_1 = require ("child_process" );
69 const fs = __importStar (require ("fs" ));
High ShellCleared
Package source references shell execution.
dist/apps/agent-manager.js View on unpkg · L294 Code excerpt · 3 lines 294 //
295 // Paths are double-quoted inside the single-quoted `sh -c` argument: homeDir
296 // is host-derived and may contain spaces, which would otherwise split into
High EvalCleared
Package source references dynamic code evaluation.
dist/jev/browser-module-import.js View on unpkg · L4 Code excerpt · 3 lines 4 // Preserve native import for optional ESM packages when gateway is compiled as CJS.
5 exports.importBrowserModule = new Function ('url' , 'return import(url)' );
6 //# sourceMappingURL=browser-module-import.js.map
Medium Dynamic requireCleared
Package source references dynamic require/import behavior.
dist/webhook/manager.js View on unpkg · L48 Code excerpt · 3 lines 48 exports.getWebhookInfo = getWebhookInfo;
49 const https = __importStar (require ("https" ));
50 const http = __importStar (require ("http" ));
scripts/orchestration/audit-codex-context.cjs View file High Same file environment network executionCleared
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
scripts/orchestration/audit-codex-context.cjs View on unpkg · L7 Code excerpt · 7 lines 7 const {resolveWorkerHarness}=require ('../../src/orchestration/worker-harness' );
8 const fs=require ('fs/promises' ),path=require ('path' ),os=require ('os' ),http=require ('http' );
9 const {execFileSync}=require ('child_process' ),{once}=require ('events' );
High Cross file remote execution contextCleared
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/orchestration/container.js View on unpkg · L13 Code excerpt · 10 lines Cross-file remote execution chain: dist/orchestration/container.js spawns dist/session/process.js; helper contains network access plus dynamic code execution.
13 const checkpoint_hook_1 = require ("./tasks/checkpoint-hook" );
14 const child_process_1 = require ("child_process" );
15 const util_1 = require ("util" );
⋯
31 throw new types_1.OrchestrationError ('CONTAINER_REQUIRED' );
32 const { stdout } = ( , [ , agent.container], { timeout: });
High Runtime package installCleared
Package source invokes a package manager install command at runtime.
dist/packages/registry.js View on unpkg · L206 Code excerpt · 3 lines 206 try {
207 (0 , child_process_1.execSync)(`npm install -g ${spec}` , { stdio: ['pipe' , 'pipe' , 'pipe' ], timeout: 300000 });
208 return null ;
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/apps/socket-server.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @0xmaxma/claude-gateway@1.8.14
matchedPath = dist/apps/socket-server.js
matchedIdentity = npm:QDB4bWF4bWEvY2xhdWRlLWdhdGV3YXk:1.8.14
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/cli/commands/gateway.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @0xmaxma/claude-gateway@1.8.14
matchedPath = dist/cli/commands/gateway.js
matchedIdentity = npm:QDB4bWF4bWEvY2xhdWRlLWdhdGV3YXk:1.8.14
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Critical Previous version dangerous deltaCleared
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/agent/runner.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @0xmaxma/claude-gateway@2.1.13
matchedIdentity = npm:QDB4bWF4bWEvY2xhdWRlLWdhdGV3YXk:2.1.13
similarity = 0.992
summary = stored previous version shares package body but lacks this dangerous source file
Package metadata 9 findings
Medium Network Cleared
Medium Environment variables Cleared
Medium Structural risk force deep review Cleared
Low Scripts present Cleared
Low High entropy strings Cleared
10 const args=process.argv.slice (2 );
17 const directory=await fs.mkdtemp (path.join (os.tmpdir (),'gateway-context-audit-' ));
18 const previous=process.env.GATEWAY_CONTEXT_AUDIT_KEY;
19 process.env.GATEWAY_CONTEXT_AUDIT_KEY='local-fixture-only' ;
0
0
`${mins}m ${secs}s`
`${mins}m`
`${secs}s`
132 const secrets = Object.entries (process.env).filter (([k, v]) => /TOKEN|SECRET|PASSWORD|API_KEY/i.test (k) && v && v.length >= 8 ).map (([, v]) => v);
133 const text = (0 , incident_1.scrubText)([...last.map (d => `☑️ : ${d}` ), last.length ? `🕐 : ${current}` : current, ...panels, `(elapsed: ${elapsed})` ].join ('\n' ), [token, ...secrets]...
145 status.moveAttemptAt = Date.now ();
Critical Trigger reachable dangerous capabilityCleared
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/orchestration/telegram-tool-status.js View on unpkg · L112 Code excerpt · 6 lines Trigger-reachable chain: manifest.main -> dist/index.js -> dist/agent/runner.js -> dist/orchestration/runtime.js -> dist/orchestration/telegram-tool-status.js
112 for (const event of events.slice ().reverse ()) {
113 const e = JSON.parse (String (event.payload_json)).payload;
114 if (e.type !== 'tool_use' || e.name === 'StructuredOutput' || seen.has (e.id))
⋯
131 const elapsed = hours > 0 ? `${hours}h ${mins}m` : mins > 0 ? (secs > 0 ? `${mins}m ${secs}s` : `${mins}m` ) : `${secs}s` ;
132 const secrets = Object.entries (process.env).filter (([k, v]) => /TOKEN|SECRET|PASSWORD|API_KEY/i.test (k) && v && v.length >= 8 ).map (([, v]) => v);
133 const text = (0 , incident_1.scrubText)([...last.map (d => `☑️ : ${d}` ), last.length ? `🕐 : ${current}` : current, ...panels, `(elapsed: ${elapsed})` ]
import
from
'child_process'
44 import { createWorkingStateManager, drainOrphanForwards, chunkText, htmlToPlain } from './typing'
59 // Standalone fallback: default state dir to ~/.claude/channels/telegram
60 const STATE_DIR = process.env.TELEGRAM_STATE_DIR ?? join (homedir (), '.claude' , 'channels' , 'telegram' )
61 const ACCESS_FILE = join (STATE_DIR, 'acc
await
exec
'docker'
'inspect'
10000
33 await validateContainerInspection (agent, JSON.parse (stdout)[0 ]);
57 const h = c.HostConfig;
58 if ((options.requireRunning !== false && !c.State?.Running) || !h || h.Privileged || (h.NetworkMode === 'host' || String (h.NetworkMode).startsWith ('container:' )) || h.PidMode || ![...