Loading npm security reports…
Loading npm security reports…
@desplega.ai/agent-swarm@1.134.0: AI-agent capability abuse | LPM Firewall
npm / AI-agent capability abuse / @desplega.ai/agent-swarm / 1.134.0
@desplega.ai/agent-swarm@1.134.0 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,
Flagged as AI-agent capability risk
Allowed by default with warning: agent-facing configuration or capability changes need review before use.
AI security reviewscanned on Aug 21, 2026, 10:49 UTC · by lpm-firewall-ai The package contains an explicit-user-command Claude/MCP control-surface mutation with remote-latest hook execution, warranting a warning. Source inspection found no lifecycle-based or covert malicious behavior.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
User runs `agent-swarm connect` without `--dry-run`.
Impact
Subsequent Claude lifecycle events can execute the package hook command and access its configured MCP server.
Mechanism
Explicit CLI configuration of Claude hooks and an MCP server.
Evidence
package.json src/cli.tsx src/commands/setup.tsx src/commands/shared/client-config.ts src/telemetry.ts .claude/settings.local.json .mcp.json .gitignore
Network endpoints2
agent-swarm-mcp.desplega.sh proxy.desplega.sh /v1/events
Decision evidencepublic snapshot Evidence for warning
Explicit `agent-swarm connect` creates and changes Claude/MCP project configuration. Connect adds wildcard MCP permission and hook configuration to `.claude/settings.local.json`. Configured hooks run `bunx @desplega.ai/agent-swarm@latest hook` on six Claude lifecycle events. Runtime telemetry posts anonymized events to a package-owned endpoint by default, with opt-out. Evidence against
No preinstall, install, or postinstall lifecycle hook is declared. Configuration mutation is reachable only through the explicit `connect` CLI command and supports dry-run/backups. No source-confirmed credential harvesting, covert exfiltration, destructive action, or install-time execution was found. 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 Wildcard dependency
Scanned 1,377 files · 28.5 MB of source
50 external domains referenced
10.0.0.1 127.0.0.1 169.254.169.254 169.254.170.2 172.16.0.1 172.31.255.255 172.32.0.1 192.168.1.1 a.co a.com a.local accounts.google.com acme.atlassian.net acme.example agent-abc-123.swarm.example.com agent-fs.example.test agent-fs.test agent-svc-test.swarm.example.com agent-swarm-mcp.desplega.sh agent-swarm.cloud agent-swarm.cloud.attacker.com agent-swarm.dev agent-swarm.dev.attacker.com ai-gateway.vercel.sh ai-sdk.dev aiplatform.googleapis.com api.acme.test api.agent-swarm.cloud api.agent-swarm.dev api.agentmail.ai api.agentmail.to api.ant-ling.com api.anthropic.com api.anyapi.ai api.atlassian.com api.attio.com api.broken.test api.cerebras.ai api.cloudflare.com api.composio.test api.dark.test api.deepseek.com api.devin.ai api.dormant.test api.e2b.app api.e2b.example api.echo.test api.example-swarm.dev api.example.com api.example.test Oversized source lightweight scan
dist/cli-7bv8nckk.js 5.97 MB file, sampled 256 KB
Filesystem Network Child process Environment variables Shell High entropy strings URL strings api.anyapi.ai api.impossibl.com api.lucidquery.com api.minimaxi.com docs.anyapi.ai docs.databricks.com docs.ebtech.com docs.z.ai impossibl.com lucidquery.com maas-api.ebcloud.com open.bigmodel.cn platform.minimaxi.com
dist/cli-e07exmsb.js 8.51 MB file, sampled 256 KB
Filesystem Network Child process Environment variables High entropy strings
dist/cli-h39xxnq6.js 3.03 MB file, sampled 256 KB
Findings21 critical · 15 high · 7 medium · 6 low Source & flagged code40 flagged src/tests/task-supersede-resume.test.ts View file Critical Critical secret
Package contains a critical-looking secret pattern.
src/tests/task-supersede-resume.test.ts View on unpkg · L642 Critical Secret pattern
GitHub personal access token in src/tests/task-supersede-resume.test.ts
src/tests/task-supersede-resume.test.ts View on unpkg · L642 Shared code excerpt · 2 findings · 4 lines 642 patternName = github_pat
severity = critical
line = 642
matchedText = const fa...aa";
Critical Previous version dangerous delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
dist/cli-f3s9dry0.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @desplega.ai/agent-swarm@1.133.1
matchedIdentity = npm:[redacted]:1.133.1
similarity = 0.608
summary = stored previous version shares package body but lacks this dangerous source file
High Child process
Package source references child process execution.
dist/cli-f3s9dry0.js View on unpkg · L439 Code excerpt · 3 lines 439 var require_cross_spawn = __commonJS (function (exports, module) {
440 var cp = __require ("child_process" );
Critical Credential exfiltration
Source appears to send environment or credential material to an external endpoint.
dist/pi-mono-adapter-yz47kk8e.js View on unpkg · L588 Critical Browser credential phishing
Source appears to collect browser login credentials for exfiltration.
dist/pi-mono-adapter-yz47kk8e.js View on unpkg · L588 High Command output exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/pi-mono-adapter-yz47kk8e.js View on unpkg · L588 High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/pi-mono-adapter-yz47kk8e.js View on unpkg · L588 Shared code excerpt · 4 findings · 12 lines Code excerpt · 3 lines 26015 site.name = fn.name;
26016 var deprecatedfn = new Function ("fn" , "log" , "deprecate" , "message" , "site" , `"use strict"
26017 ` + "return function (" + args + ") {" + ` log.call (deprecate, message, site)
High Remote agent bridge
Source exposes local file and command tools to a remote model endpoint.
dist/cli-grt6qv91.js View on unpkg · L11790 Code excerpt · 6 lines Medium Dynamic require
Package source references dynamic require/import behavior.
dist/cli-akdvwc9v.js View on unpkg · L77 Code excerpt · 3 lines 77 };
78 var importNodeModule = (specifier) => import (__rewriteRelativeImportExtension (specifier));
79 function getProcessEnv () {
High Credential redirect persistence
Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.
dist/cli-7bv8nckk.js View on unpkg Scanner record · 8 lines Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/cli-7bv8nckk.jsimport readline from "readline";
await fs.writeFile(schemaPath, JSON.stringify(schema), "utf8");
baseUrl: this._options.baseUrl,
if (args.baseUrl) {
commandArgs.push("--config", `openai_base_url=${toTomlValue(args.baseUrl, "openai_base_url")}`);
env.CODEX_API_KEY = args.apiKey;
const rl = readline.createInterface({
"global.anthropic.claude-opus-4-8": {
High Entrypoint foreign package code overwrite
Manifest-reachable source overwrites another installed package with package-defined remote behavior.
dist/cli-7bv8nckk.js View on unpkg Scanner record · 8 lines High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
dist/index-yqweff5n.js View on unpkg · L40 Code excerpt · 12 lines 40 });
41 req.end ();
42 });
⋯
59 const requestOptions = await getCmdsUri ({ logger: init.logger });
60 const credsResponse = JSON.parse (await requestFromEcsImds (timeout, requestOptions));
61 if (!isImdsCredentials (credsResponse)) {
⋯
68 }, requestFromEcsImds = async (timeout, options) => {
69 if (process.env[ENV_CMDS_AUTH_TOKEN]) {
70 options.headers = {
High Obfuscated payload loader
Source contains an obfuscated payload loader that reconstructs and executes hidden code.
dist/otel-impl-wp1mfzd2.js View on unpkg · L7402 Code excerpt · 3 lines 7402 setGlobalLoggerProvider (provider) {
7403 if (global_utils_1._global[global_utils_1.GLOBAL_LOGS_API_KEY]) {
7404 return this .getLoggerProvider ();
High Base64 obscured URL
Source decodes a Base64-obscured HTTP endpoint at runtime.
dist/index-t36q2v4t.js View on unpkg · L15 Code excerpt · 12 lines 15 var supportsRequestInitExt = () => {
16 return typeof process === "object" && Number.parseInt (process?.versions?.node?.substring (0 , 2 )) >= 18 && process.versions.undici;
17 };
⋯
59 const serializedBody = body === undefined ? undefined : bodySerializer (body, mergeHeaders (baseHeaders, headers, params.header));
60 const finalHeaders = mergeHeaders (serializedBody === undefined || serializedBody instanceof FormData ? {} : {
templates/official/ux-principles/start-up.sh View file Medium Ships build helper
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]
High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/cli-1cwhyvta.js View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_alias_growth_limit_exceeded; limitedFiles = 3
src/tests/http-api-integration.test.ts View file High Secret pattern
Stripe webhook signing secret in src/tests/http-api-integration.test.ts
src/tests/http-api-integration.test.ts View on unpkg · L1891 Code excerpt · 4 lines 1891 patternName = stripe_webhook_secret
severity = high
line = 1891
matchedText = const WE...cret
Critical Secret pattern
GitHub personal access token in src/tests/queue-stall-alarm.test.ts
src/tests/queue-stall-alarm.test.ts View on unpkg · L205 Code excerpt · 4 lines 205 patternName = github_pat
severity = critical
line = 205
matchedText = const to...CD";
Critical Secret pattern
GitHub personal access token in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L51 Code excerpt · 4 lines 51 patternName = github_pat
severity = critical
line = 51
matchedText = process....89 ";
Critical Secret pattern
GitHub personal access token in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L53 Code excerpt · 4 lines 53 patternName = github_pat
severity = critical
line = 53
matchedText = const ou...d");
Filesystem Child process Environment variables Eval High entropy strings URL strings raw.githubusercontent.com
dist/otel-impl-wp1mfzd2.js 2.34 MB file, sampled 256 KB
Filesystem Environment variables High entropy strings URL strings opentelemetry.io
dist/pi-mono-adapter-yz47kk8e.js 7.08 MB file, sampled 256 KB
Filesystem Network Child process Environment variables Crypto Shell High entropy strings URL strings github.com
High Sandbox evasion gated capability Code↓
Package metadata 9 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Medium Wildcard dependency
441 var parse = require_parse ();
exec
590 this .matcherRe.lastIndex = this .lastIndex;
758 props: ["language" , "code" , "autodetect" ],
956 deprecated ("10.7.0" , `Please use highlight(code, options) instead.
957 https://github.com/highlightjs/highlight.js/issues/2277`);
958 languageName = codeOrlanguageName;
1540 var v7_global_context_methods = "ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов " + "датагод датамесяц датачисло заголов...
1541 var v8_global_context_methods = "acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока " + "xmlтип xmlтипзнч активноеокно безопасныйре...
1542 var v8_global_context_property = "wsссылки библиотекакарти
Critical Trigger reachable dangerous capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/pi-mono-adapter-yz47kk8e.js View on unpkg · L588 Code excerpt · 11 lines Trigger-reachable chain: manifest.bin -> dist/cli.js -> dist/lead-2xq3dxbz.js -> dist/cli-zykjrwcx.js -> dist/pi-mono-adapter-yz47kk8e.js
588 }
589 exec (s) {
590 this .matcherRe.lastIndex = this .lastIndex;
⋯
758 props: ["language" , "code" , "autodetect" ],
759 data: function () {
760 return {
⋯
956 deprecated ("10.7.0" , `Please use highlight(code, options) instead.
957 https://github.com/highlightjs/highlight.js/issues/2277`);
958 languageName = codeOrlanguageName;
⋯
1540 var v7_global_context_methods = "ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов " + "датагод датамесяц датачисло заголов...
1541 var v8_global_context_methods = "acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan
Code excerpt · 2 lines 24753 // node_modules/highlight.js/lib/languages/powershell.js
24754 var require_powershell = __commonJS (function (exports, module) {
High Trigger reachable credential exfiltration
A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.
dist/pi-mono-adapter-yz47kk8e.js View on unpkg · L588 Code excerpt · 11 lines Trigger-reachable credential exfiltration chain: manifest.bin -> dist/cli.js -> dist/lead-2xq3dxbz.js -> dist/cli-zykjrwcx.js -> dist/pi-mono-adapter-yz47kk8e.js
588 }
589 exec (s) {
590 this .matcherRe.lastIndex = this .lastIndex;
⋯
758 props: ["language" , "code" , "autodetect" ],
759 data: function () {
760 return {
⋯
956 deprecated ("10.7.0" , `Please use highlight(code, options) instead.
957 https://github.com/highlightjs/highlight.js/issues/2277`);
958 languageName = codeOrlanguageName;
⋯
1540 var v7_global_context_methods = "ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов " + "датагод датамесяц датачисло заголов...
1541 var v8_global_context_methods = "acos asin atan base64значение base64строка cos exp log
11791 function combineURLs (baseURL, relativeURL) {
11792 return relativeURL ? baseURL.replace (/\/?\/$/, "" ) + "/" + relativeURL.replace (/^\/+/, "" ) : baseURL;
20897 data = node_fs_1.default .readFileSync (node_path_1.default .resolve ("" .concat (installationDir, "/app-latest" )));
20898 installation = JSON.parse (data.toString ());
Low Weak crypto
Package source references weak cryptographic algorithms.
dist/cli-grt6qv91.js View on unpkg · L52 Code excerpt · 12 lines 52 require_stream,
53 require_websocket,
54 require_websocket_server
⋯
186
187 // node_modules/@slack/web-api/package.json
188 var require_package = __commonJS (function (exports, module) {
⋯
244 eventemitter3: "^5.0.1" ,
245 "form-data" : "^4.0.4" ,
246 "is-electron" : "2.2.2" ,
⋯
10410 } else {
10411 dataBuffer = Buffer.concat ([dataBuffer, Buffer.from (this ._streams[i])]);
10412 }
Manifest-reachable source resolves another installed package, overwrites its runtime code, and injects package-defined remote behavior.
dist/cli-7bv8nckk.js// node_modules/@openai/codex-sdk/dist/index.js
await fs.writeFile(schemaPath, JSON.stringify(schema), "utf8");
const codexPackageJsonPath = moduleRequire.resolve(`${CODEX_NPM_NAME}/package.json`);
const platformPackageJsonPath = codexRequire.resolve(`${platformPackage}/package.json`);
api: "https://open.bigmodel.cn/api/paas/v4",
doc: "https://docs.z.ai/guides/overview/pricing",
api: "https://api.lucidquery.com/v1",
doc: "https://lucidquery.com/docs",
High Cross file remote execution context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
dist/cli-7bv8nckk.js View on unpkg · L60 Code excerpt · 12 lines Cross-file remote execution chain: dist/cli-7bv8nckk.js spawns dist/cli-4bc8vmhm.js; helper contains network access plus dynamic code execution.
60 import path from "path" ;
61 import { spawn } from "child_process" ;
62 import { statSync } from "fs" ;
⋯
134 try {
135 parsed = JSON.parse (item);
136 } catch (error) {
⋯
278 } else {
279 for (const [key, value] of Object.entries (process.env)) {
280 if (value !== undefined ) {
⋯
303 }
304 child.stdin.write (args.input);
305 child.stdin.end ();
Medium Oversized source file
Package contains source files above the normal full-analysis size ceiling.
dist/cli-7bv8nckk.js View on unpkg Scanner record · 4 lines path = dist/cli-7bv8nckk.js
kind = oversized_source_file
sizeBytes = 6256593
magicHex = [redacted]
120 }, STATIC_STABILITY_REFRESH_INTERVAL_SECONDS, STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS, STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/f...
121 const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor (Math.random () * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
61 "Content-Type" : "application/json"
177 let error = await response.text ();
1434 const dv = new DataView (new ArrayBuffer (8 ));
1435 const ok = typeof BigInt === "function" && typeof dv.getBigInt64 === "function" && typeof dv.getBigUint64 === "function" && typeof dv.setBigInt64 === "function" && typeof dv.setBig...
Critical Secret pattern
GitHub personal access token in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L102 Code excerpt · 4 lines 102 patternName = github_pat
severity = critical
line = 102
matchedText = "ghp_poo...AB" ;
Critical Secret pattern
GitHub personal access token in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L104 Code excerpt · 4 lines 104 patternName = github_pat
severity = critical
line = 104
matchedText = const ou...0 ");
Critical Secret pattern
GitHub personal access token in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L105 Code excerpt · 4 lines 105 patternName = github_pat
severity = critical
line = 105
matchedText = expect (o...0 ");
Critical Secret pattern
GitHub personal access token in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L110 Code excerpt · 4 lines 110 patternName = github_pat
severity = critical
line = 110
matchedText = process....89 ";
Critical Secret pattern
GitHub personal access token in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L114 Code excerpt · 4 lines 114 patternName = github_pat
severity = critical
line = 114
matchedText = "gh=ghp_...90" ;
Critical Secret pattern
GitHub fine-grained PAT in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L146 Code excerpt · 4 lines 146 patternName = github_fine_grained
severity = critical
line = 146
matchedText = const ou...f");
Critical Secret pattern
GitHub personal access token in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L152 Code excerpt · 4 lines 152 patternName = github_pat
severity = critical
line = 152
matchedText = const ou...d");
Critical Secret pattern
GitHub OAuth access token in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L158 Code excerpt · 4 lines 158 patternName = github_oauth
severity = critical
line = 158
matchedText = const ou...d");
Critical Secret pattern
GitHub server-to-server token in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L163 Code excerpt · 4 lines 163 patternName = github_server_token
severity = critical
line = 163
matchedText = const ou...d");
Critical Secret pattern
GitHub personal access token in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L219 Code excerpt · 4 lines 219 patternName = github_pat
severity = critical
line = 219
matchedText = const ou...D");
Critical Secret pattern
GitHub personal access token in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L297 Code excerpt · 4 lines 297 patternName = github_pat
severity = critical
line = 297
matchedText = process....89 ";
Critical Secret pattern
GitHub personal access token in src/tests/secret-scrubber.test.ts
src/tests/secret-scrubber.test.ts View on unpkg · L299 Code excerpt · 4 lines 299 patternName = github_pat
severity = critical
line = 299
matchedText = const on...9 ");