Loading npm security reports…
Loading npm security reports…
@0xmaxma/claude-gateway@2.0.19: npm security report – allowed | LPM Firewall
Allowed — no malicious behavior detected
28 low-signal patterns reviewed and cleared.
AI security reviewscanned on Oct 10, 2026, 21:24 UTC · by lpm-firewall-ai Source inspection found the postinstall hook installs MCP dependencies within the package's own directory and the flagged outbound status traffic is enabled-gated, uses the configured Telegram bot, and scrubs secrets. The inspected agent integration locations and other critical or high finding paths did not establish concrete 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 status component runs when enabled and a configured Telegram bot token is present.
Impact
No malicious impact was established from this behavior.
Mechanism
It selects active Telegram conversations, creates or edits status messages through the Telegram Bot API, and scrubs tokens and other secrets from message text.
public snapshot
Evidence for AI clean decision
The postinstall hook conditionally runs Bun to install the package's MCP dependencies in its own mcp directory. The Telegram status component requires its feature to be enabled and obtains its bot token from the configured Telegram agent. It sends status updates to Telegram's official Bot API and scrubs the bot token and other secrets from message text. Agent integration excerpts show agent prompt files being initialized and workspace filenames being restricted; no unconsented foreign control-surface mutation was identified. Inspected flagged paths show package functionality such as OAuth connectors, container handling, registry updates, and gateway lifecycle commands; no concrete attack behavior was established. 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 532 files · 6.00 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 = 21
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.10
matchedIdentity = npm:QDB4bWF4bWEvY2xhdWRlLWdhdGV3YXk:2.0.10
similarity = 0.658
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`
123 const secrets = Object.entries (process.env).filter (([k, v]) => /TOKEN|SECRET|PASSWORD|API_KEY/i.test (k) && v && v.length >= 8 ).map (([, v]) => v);
124 const text = (0 , incident_1.scrubText)([...last.map (d => `☑️ : ${d}` ), last.length ? `🕐 : ${current}` : current, `(elapsed: ${elapsed})` ].join ('\n' ), [token, ...secrets]).slice (0 , ...
136 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 · L104 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
104 for (const event of events.slice ().reverse ()) {
105 const e = JSON.parse (String (event.payload_json)).payload;
106 if (e.type !== 'tool_use' || e.name === 'StructuredOutput' || seen.has (e.id))
⋯
122 const elapsed = hours > 0 ? `${hours}h ${mins}m` : mins > 0 ? (secs > 0 ? `${mins}m ${secs}s` : `${mins}m` ) : `${secs}s` ;
123 const secrets = Object.entries (process.env).filter (([k, v]) => /TOKEN|SECRET|PASSWORD|API_KEY/i.test (k) && v && v.length >= 8 ).map (([, v]) => v);
124 const text = (0 , incident_1.scrubText)([...last.map (d => `☑️ : ${d}` ), last.length ? `🕐 : ${current}` : current, `(elapsed: ${elapsed})` ].join ('\n' )
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