Loading npm security reports…
Loading npm security reports…
@desplega.ai/agent-swarm@2.14.1: npm security report – allowed | LPM Firewall
npm / @desplega.ai/agent-swarm / 2.14.1
@desplega.ai/agent-swarm@2.14.1 agent-swarm.dev — an open-source operating system for AI work: a lead agent breaks goals into tasks, routes them to specialized workers such as Claude Code or Codex, runs each worker in an isolated container, and preserves shared memory, tools, schedules,
Allowed — no malicious behavior detected
36 low-signal patterns reviewed and cleared.
AI security reviewscanned on Nov 20, 2026, 03:28 UTC · by lpm-firewall-ai The credential lead resolves to OpenAI requests using OPENAI_API_KEY at the provider URL, while package-side outcome reports use the package’s own API key and send credential metadata. The reviewed eval() is bundled Discord.js sharding functionality, and the manifest identifies an AI agent orchestration CLI; these findings do not establish malicious behavior.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
Provider requests occur when agents use the configured model; credential outcome reports run when agent sessions report key or rate-limit outcomes.
Impact
No evidence in the inspected paths shows another service’s credential being sent to the package publisher or an unrelated host, or remote code being executed as a concealed payload.
Mechanism
The OpenAI SDK uses OPENAI_API_KEY for requests to its configured provider URL. Outcome reporting sends the package API key and credential metadata to the package API URL. The observed eval call is part of Discord.js child-process sharding support.
Evidence
dist/cli-132h67ps.js .lpm-dependency-evidence-9124b0df-89ca-42e0-b96a-47a51a66f987/2/npm-linux/dist/index.js dist/index-g7rthzrv.js
api.openai.com /v1
apiUrl from getMcpBaseUrl()
Decision evidencepublic snapshot Evidence for AI clean decision
The OpenAI SDK helper defaults to https://api.openai.com/v1 and loads OPENAI_API_KEY for its Authorization header. Credential outcome reports send the package API key and key type, suffix, index, and rate-limit details to apiUrl; they do not send the full provider key. The agent runner obtains apiUrl from getMcpBaseUrl() and apiKey from getApiKey() before running agent tasks. The package exposes an agent-swarm CLI and identifies itself as an AI agent orchestration system. Evidence against
The cited OpenAI helper targets the OpenAI API by default; its base URL can also be supplied through SDK options. Credential outcome reports are sent to the package API URL using the package API key, and include key metadata rather than the provider credential. The eval() match is in bundled Discord.js sharding support, where a parent process sends an evaluation request to a child process. No install, preinstall, or postinstall script appears in the inspected manifest excerpt. 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 Wildcard dependency
Scanned 2,577 files · 61.4 MB of source
50 external domains referenced
0.0.0.0 0177.0.0.1 0x7f.1 1.1.1.1 10.0.0.5 10.0.0.8 10.0.4.2 10.1.2.3 100.127.255.255 100.128.0.0 100.63.255.255 100.64.0.1 127.0.0.1 127.8.9.10 169.254.169.254 172.15.255.255 172.16.0.1 172.31.255.255 172.32.0.1 192.0.0.8 192.168.1.1 192.168.1.10 192.169.0.1 198.18.0.1 224.0.0.1 255.255.255.255 8.8.8.8 93.184.216.34 93.184.216.35 a.b.agent-swarm.cloud a.b.agent-swarm.dev a.com a.test abc-def.lt.desplega.ai abc.lt.desplega.ai accounts.google.com acme.atlassian.net acme.co.uk acme.com acme.example acme.ghe.com acme.slack.com adaptivecards.io admin-choice.example.test agent-fs.example.com agent-fs.example.test agent-fs.invalid agent-fs.test agent-swarm-mcp.desplega.sh agent-swarm.cloud Oversized source lightweight scan
dist/cli-5xjdft4s.js 4.42 MB file, sampled 256 KB
Filesystem Environment variables High entropy strings URL strings json-schema.org
dist/cli-phantfg3.js 9.31 MB file, sampled 256 KB
Filesystem Network Environment variables High entropy strings
dist/cli-rb1z91g8.js 4.53 MB file, sampled 256 KB
Filesystem Network Child process Environment variables Crypto High entropy strings URL strings github.com pi.dev
Findings4 critical · 14 high · 11 medium · 7 low Source & flagged code26 flagged The lines the automated scan flagged. The review checked them and cleared this version.
High Child processCleared
Package source references child process execution.
dist/cli-v3jxx8dv.js View on unpkg · L525 Code excerpt · 3 lines 525 var import_cross_spawn = __toESM (require_cross_spawn (), 1 );
526 import { spawn } from "node:child_process" ;
527 import process2 from "node:process" ;
Critical Remote response code executionCleared
Source passes code obtained from a remote response into a dynamic execution sink.
dist/index-g7rthzrv.js View on unpkg · L78 High Command output exfiltrationCleared
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/index-g7rthzrv.js View on unpkg · L78 High Obfuscated payload loaderCleared
Source contains an obfuscated payload loader that reconstructs and executes hidden code.
dist/index-g7rthzrv.js View on unpkg · L78 Shared code excerpt · 3 findings · 12 lines 78 range: () => range,
79 [redacted]: () => [redacted],
80 version: () => version
⋯
201 var __importDefault;
202 var __classPrivateFieldGet;
203 var __classPrivateFieldSet;
⋯
803 kBodyUsed: ( ),
High Remote agent bridgeCleared
Source exposes local file and command tools to a remote model endpoint.
dist/claude-sdk-session-11vhz1hc.js View on unpkg · L76 Code excerpt · 9 lines 76 import { delimiter as Eae, dirname as bae, extname as Cae, isAbsolute as Aae, join as Rae, resolve as Oae } from "path" ;
77 import { execFile as sDe } from "child_process" ;
78 import { promisify as iDe } from "util" ;
⋯
6913 }
6914 }, readFileSync (e, t) {
6915 r = [];
Medium Unsafe vm contextCleared
Package source executes code through a VM context API.
src/tests/page-proxy.test.ts View on unpkg · L14 Code excerpt · 12 lines 14 import { unlink } from "node:fs/promises" ;
15 import net from "node:net" ;
16 import { runInNewContext } from "node:vm" ;
⋯
39 },
40 body: JSON.stringify ({
41 name,
⋯
49 if (res.status !== 201 && res.status !== 200 ) {
50 throw ( );
High Same file environment network executionCleared
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/index-q60mhcpd.js View on unpkg · L107426 Code excerpt · 9 lines 107426 await i (n.loginUrl), s = true ;
107427 else if (i && (o = n.loginUrl, !process.env.NO_OPEN_BROWSER && !Boolean (process.env.SSH_CONNECTION ?? process.env.SSH_CLIENT ?? process.env.SSH_TTY) && lt (o)))
107428 try {
⋯
107432 const r = process.platform;
107433 return r === "darwin" ? { cmd: "open" , args: [t] } : r === "win32" ? { cmd: ct.join (process.env.SYSTEMROOT ?? "C:\\Windows" , "System32" , , ,
Critical Hardcoded runtime data exfiltrationCleared
Source sends credentials or rich application records to a package-controlled external receiver enabled by default.
dist/http-7y9dbfrr.js View on unpkg · L7 Critical Trigger reachable dangerous capabilityCleared
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/http-7y9dbfrr.js View on unpkg · L7 Shared code excerpt · 2 findings · 12 lines 7 placeholderForConfigKey,
8 isPrivateAddress,
9 assertUrlSafe,
⋯
1549 import {
1550 import_websocket,
1551 import_websocket_server,
⋯
2173 end: () => {
2174 bestEffortTelemetry ("span.end" , () => span. ());
High Cloud metadata accessCleared
Source reaches cloud instance metadata or link-local credential endpoints.
dist/cli-6prwz0zn.js View on unpkg · L1331 Code excerpt · 12 lines 1331 if (reason?.$responseBodyText) {
1332 return `${status ? status + ": " : ""}Deserialization error for body: ${reason.$responseBodyText}` ;
1333 }
⋯
2247 var getHomeDir = () => {
2248 const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;
2249 if (HOME) {
⋯
2259 if (!homeDirCache[homeDirCacheKey]) {
2260 homeDirCache[homeDirCacheKey] = homedir ();
2261 }
⋯
2278
High Base64 obscured URLCleared
Source decodes a Base64-obscured HTTP endpoint at runtime.
dist/index-m6g8q65g.js View on unpkg · L13 Code excerpt · 12 lines 13 var supportsRequestInitExt = () => {
14 return typeof process === "object" && Number.parseInt (process?.versions?.node?.substring (0 , 2 )) >= 18 && process.versions.undici;
15 };
⋯
57 const serializedBody = body === undefined ? undefined : bodySerializer (body, mergeHeaders (baseHeaders, headers, params.header));
58 const finalHeaders = mergeHeaders (serializedBody === undefined || serializedBody FormData ? {} : {
Medium Ships WASM moduleCleared
Package ships WebAssembly modules.
dist/quickjs-r1pq2107.wasm View on unpkg Scanner record · 4 lines path = dist/quickjs-r1pq2107.wasm
kind = wasm_module
sizeBytes = 637405
magicHex = [redacted]
templates/official/ux-principles/start-up.sh View file Medium Ships build helperCleared
Package ships non-JavaScript build or shell helper files.
templates/official/ux-principles/start-up.sh View on unpkg Scanner record · 4 lines path = templates/official/ux-principles/start-up.sh
kind = build_helper
sizeBytes = 582
magicHex = [redacted]
src/tests/fixtures/sheets/tracker-export.xlsx View file High Ships high entropy blobCleared
Package ships high-entropy non-source blobs.
src/tests/fixtures/sheets/tracker-export.xlsx View on unpkg Scanner record · 4 lines path = [redacted]-export.xlsx
kind = high_entropy_blob
sizeBytes = 18752
magicHex = [redacted]
High Payload in excluded dirCleared
Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.
src/tests/fixtures/sheets/tracker-export.xlsx View on unpkg Scanner record · 4 lines path = [redacted]-export.xlsx
kind = payload_in_excluded_dir
sizeBytes = 18752
magicHex = [redacted]
High Semantic analysis limitedCleared
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/cli-5xjdft4s.js View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_path_work_budget_exceeded; limitedFiles = 9
Medium Oversized source fileCleared
Package contains source files above the normal full-analysis size ceiling.
dist/cli-5xjdft4s.js View on unpkg Scanner record · 4 lines path = dist/cli-5xjdft4s.js
kind = oversized_source_file
sizeBytes = 4637781
magicHex = [redacted]
Medium Remote tarball dependencyCleared
Package manifest contains a dependency pinned to a remote tarball URL.
package.json View on unpkg Scanner record · 1 line Remote tarball dependency specs: xlsx@https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz
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/cli-z0c98h7h.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @desplega.ai/agent-swarm@2.13.5
matchedIdentity = npm:[redacted]:2.13.5
similarity = 0.542
summary = stored previous version shares package body but lacks this dangerous source file
Code↓ Cleared
Package metadata 10 findings
High Shell Cleared
Medium Environment variables Cleared
Medium Structural risk force deep review Cleared
Medium Wildcard dependency Cleared
Low Scripts present Cleared
Low High entropy strings Cleared
Symbol
"used"
804 kBody: Symbol ("abstracted request body" ),
805 kRunning: Symbol ("running" ),
1359 const code = this .code = key.charCodeAt (index);
Code excerpt · 3 lines 72388 _eval (script) {
72389 return eval (script);
72390 }
let
29189 var U8e = new Set ([...[], "ENABLE_BETA_TRACING_DETAILED" , "OTEL_LOG_RAW_API_BODIES" ]);
29190 var F8e = /auth|key|token|cookie|secret|credential|session|signature|passw|jwt|assertion|cert|oidc|org|tenant|account|project|workspace|user|email|identity|principal|consumer|clien...
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/claude-sdk-session-11vhz1hc.js View on unpkg · L8 Code excerpt · 12 lines Cross-file remote execution chain: dist/claude-sdk-session-11vhz1hc.js spawns dist/cli-5pyes68e.js; helper contains network access plus dynamic code execution.
8 trackErrorFromJson,
9 parseStderrForErrors
10 } from "./cli-8crn0510.js" ;
⋯
76 import { delimiter as Eae, dirname as bae, extname as Cae, isAbsolute as Aae, join as Rae, resolve as Oae } from "path" ;
77 import { execFile as sDe } from "child_process" ;
78 import { promisify as iDe } from "util" ;
⋯
118 import { posix as tJe, win32 as nJe } from "path" ;
119 import { isIPv4 as B3e, isIPv6 as j3e } from "net" ;
120 import { join as R5 } from "path" ;
⋯
300 function hb (e, t) {
301 let n = Buffer.from (t.replace (/-/g, "" ), "hex" ), r = TI ("sha1" ).update (n).update (Buffer.from (e, "utf8" )).digest ();
302 r[6 ] = r[6 ]
Medium Dynamic requireCleared
Package source references dynamic require/import behavior.
dist/claude-sdk-session-11vhz1hc.js View on unpkg · L12166 Code excerpt · 3 lines 12166 if (e.$async)
12167 a = i.scopeValue ("Error" , { ref: oBe.default , code: Ht._`require("ajv/dist/runtime/validation_error").default` });
12168 let l = i.scopeName ("validate" );
Low Weak cryptoCleared
Package source references weak cryptographic algorithms.
dist/claude-sdk-session-11vhz1hc.js View on unpkg · L8 Code excerpt · 12 lines 8 trackErrorFromJson,
9 parseStderrForErrors
10 } from "./cli-8crn0510.js" ;
⋯
76 import { delimiter as Eae, dirname as bae, extname as Cae, isAbsolute as Aae, join as Rae, resolve as Oae } from "path" ;
77 import { execFile as sDe } from "child_process" ;
78 import { promisify as iDe } from "util" ;
⋯
118 import { posix as tJe, win32 as nJe } from "path" ;
119 import { isIPv4 as B3e, isIPv6 as j3e } from "net" ;
120 import { join as R5 } from "path" ;
⋯
300 function hb (e, t) {
301 let n = Buffer.from (t.replace (/-/g, "" ), "hex" ), r = TI ("sha1" ).update (n).update (Buffer.from (e, "utf8" )).digest ();
302 r[6 ] = r[6 ] & 15 | 80 , r[8 ] = r[8 ] & 63 | 128 ;
new
Error
`Failed to register agent: ${res.status} ${await res.text()}`
65 // signPageSession() in-process validate at the proxy.
66 process.env.PAGE_SESSION_SECRET = PAGE_SECRET;
"WindowsPowerShell"
"v1.0"
"powershell.ex...
107434 }(t), i = (0 , ut.spawn)(n, s, { stdio: "ignore" , windowsHide: true });
107437 }), i.once ("spawn" , () => r ()), i.unref ();
107438 }) : Promise.reject (new Error (`Invalid URL: only http:// and https:// links can be opened. Received: ${t}` ));
107439 }(n.loginUrl), s = true ;
High Sandbox evasion gated capabilityCleared
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/index-q60mhcpd.js View on unpkg · L3 Code excerpt · 12 lines 3 protoInt64,
4 protoBase64,
5 isMessage,
⋯
633 import * as u from "fs" ;
634 import * as c from "http" ;
635 import * as l from "http2" ;
⋯
639 import * as p from "node:buffer" ;
640 import * as h from "node:child_process" ;
641 import * as g from "node:constants" ;
⋯
1256 for (const [e, n] of Object.entries (t))
1257 typeof n == "string" ? r[e] = new J ({ data: { case : "stringValue" , value: n } }) : typeof n == "number" ? r[e] = new J ({ data: { case : "doubleValue" , value: n } }) : typeof n == "b...
1258 return r;
end
2192 function readPositiveIntEnv (key, env = process.env) {
2193 const raw = env[key]?.trim ();
const ssoTokenText = await readFile$1 (ssoTokenFilepath, "utf8" );
2279 return JSON.parse (ssoTokenText);
instanceof
59 "Content-Type" : "application/json"
175 let error = await response.text ();
1432 const dv = new DataView (new ArrayBuffer (8 ));
1433 const ok = typeof BigInt === "function" && typeof dv.getBigInt64 === "function" && typeof dv.getBigUint64 === "function" && typeof dv.setBigInt64 === "function" && typeof dv.setBig...
Medium Ships compressed blobCleared
Package ships compressed or archive-like blobs.
src/tests/fixtures/sheets/tracker-export.xlsx View on unpkg Scanner record · 4 lines path = [redacted]-export.xlsx
kind = compressed_blob
sizeBytes = 18752
magicHex = [redacted]
Low Nested archive needs inspectionCleared
Package ships a nested archive or MCP bundle that was inventoried but not recursively analyzed.
src/tests/fixtures/sheets/tracker-export.xlsx View on unpkg Scanner record · 4 lines path = [redacted]-export.xlsx
kind = nested_archive_needs_inspection
sizeBytes = 18752
magicHex = [redacted]