Loading npm security reports…
Loading npm security reports…
@0xmaxma/claude-gateway@2.1.0: npm security report – allowed | LPM Firewall
Allowed — no malicious behavior detected
28 low-signal patterns reviewed and cleared.
AI security reviewscanned on Oct 16, 2026, 05:19 UTC · by lpm-firewall-ai Source inspection resolves the strongest scanner flag as ordinary Telegram status delivery to the configured chat with token scrubbing. The postinstall hook performs dependency setup for the bundled MCP directory, and the reviewed API and agent integration excerpts establish no concrete attack; similarity labels alone do not establish malicious behavior.
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
The gateway is installed or the operator starts the gateway with Telegram task status enabled.
Impact
No unconsented credential disclosure or other concrete attack was established.
Mechanism
The postinstall hook conditionally installs dependencies in the bundled MCP directory. The status reporter uses the agent's configured bot token and scrubs token-like environment values before sending task status.
Evidence
package.json mcp/package.json dist/orchestration/telegram-tool-status.js
public snapshot
Evidence for AI clean decision
package.json runs Bun install only for the bundled MCP directory; its manifest has no install lifecycle hook and does not depend on this package. Telegram task status uses the configured bot token and sends to the task chat; token-like environment values are scrubbed from the message. Dashboard login and sensitive gateway routes require configured API key or dashboard authentication. Reviewed agent, workspace, OAuth, migration, registry, socket, CLI, and orchestration paths show package features; the inspected excerpts establish no concrete attack. Evidence against
Scanner flags labeled the Telegram status reporter as data exfiltration and several files as similar to known malware, but source inspection did not establish an unrelated recipient or malicious behavior. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell · Web socket
Supply chain High entropy strings · Minified · Telemetry · URL strings
Manifest No license
Scanned 556 files · 6.33 MB of source
26 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.jsdelivr.net chatgpt.com discord.com example.test fixture.invalid generativelanguage.googleapis.com github.com graph.facebook.com ilinkai.weixin.qq.com novac2c.cdn.weixin.qq.com openrouter.ai raw.githubusercontent.com registry.npmjs.org slack.com telegram.org www.npmjs.com www.w3.org Findings4 critical · 13 high · 4 medium · 7 low Source & flagged code19 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/discord/receiver.js View on unpkg · L36 Code excerpt · 3 lines 36 exports.DiscordReceiver = void 0 ;
37 const child_process_1 = require ("child_process" );
38 const path = __importStar (require ("path" ));
High ShellCleared
Package source references shell execution.
dist/apps/agent-manager.js View on unpkg · L229 Code excerpt · 3 lines 229 //
230 // Paths are double-quoted inside the single-quoted `sh -c` argument: homeDir
231 // is host-derived and may contain spaces, which would otherwise split into
Low EvalCleared
Package source references a known benign dynamic code generation pattern.
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' );
dist/connectors/mcp-oauth.js#virtual:normalized:round1 View file High Cloud metadata accessCleared
Source reaches cloud instance metadata or link-local credential endpoints.
dist/connectors/mcp-oauth.js#virtual:normalized:round1 View on unpkg · L4 Code excerpt · 12 lines 4 * "custom" MCP connectors whose only auth option is a real OAuth sign-in (no
5 * static API key) — e.g. Firecrawl"s `https://mcp.firecrawl.dev/v2/mcp-oauth`.\n *\n * This module never touches Express or the pending-flow store — pure discovery\n * + token func...
6 *
⋯
36 *
37 * Node"s fetch defaults to `redirect: "follow"`, and a followed redirect goes\n * wherever the answering server names — without passing through\n * `assertFetchableUrl`, which only...
38 if (!location)
⋯
50 ? init
51 : { ...init, method: "GET", body: undefined };
52 }
⋯
144 if (!resourceMetadataUrl) {
145 throw new Error(`${mcpUrl} returned 401 but no "resource_metadata" in its WWW-Authenticate header — can"t discover its OAuth server.`);\n }\n const prm = await fetchFollowing...
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" );
⋯
30 throw new types_1.OrchestrationError ('CONTAINER_REQUIRED' );
31 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 · L188 Code excerpt · 3 lines 188 try {
189 (0 , child_process_1.execSync)(`npm install -g ${packageName}@latest` , { stdio: ['pipe' , 'pipe' , 'pipe' ], timeout: 300000 });
190 return null ;
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/packages/registry.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
dist/agent/dreaming/migrate.js#virtual:normalized:round1 View file High Semantic analysis limitedCleared
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/agent/dreaming/migrate.js#virtual:normalized:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 23
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
High Known malware source similarityCleared
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/api/skills-router.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @0xmaxma/claude-gateway@1.8.14
matchedPath = dist/api/sk[redacted]
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/apps/compose-generator.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @0xmaxma/claude-gateway@1.8.14
matchedPath = dist/apps/compose-generator.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/api/router.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @0xmaxma/claude-gateway@2.0.21
matchedIdentity = npm:QDB4bWF4bWEvY2xhdWRlLWdhdGV3YXk:2.0.21
similarity = 0.925
summary = stored previous version shares package body but lacks this dangerous source file
dist/apps/agent-manager.js1 finding
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})` ]
await
exec
'docker'
'inspect'
10000
32 await validateContainerInspection (agent, JSON.parse (stdout)[0 ]);
56 const h = c.HostConfig;
57 if ((options.requireRunning !== false && !c.State?.Running) || !h || h.Privileged || (h.NetworkMode === 'host' || String (h.NetworkMode).startsWith ('container:' )) || h.PidMode || ![...
matchedPackage = @0xmaxma/claude-gateway@1.8.14
matchedPath = dist/packages/registry.js
matchedIdentity = npm:QDB4bWF4bWEvY2xhdWRlLWdhdGV3YXk:1.8.14
summary = normalized source hash matched finalized malicious source