Loading npm security reports…
Loading npm security reports…
@cgh567/agent@2.4.6: AI-agent control-surface risk – flagged | LPM Firewall
Flagged — allowed with a warning
Allowed by default policy, but 32 findings warrant review before installing.
AI security reviewscanned on Jul 1, 2026, 02:02 UTC · by lpm-firewall-ai No install-time exfiltration was confirmed, but source inspection shows a concrete unconsented runtime self-update path that can replace the AI agent’s extensions/skills/agents directory from a remote release. That is blocking for an upstream firewall because it changes the reviewed agent control surface after installation. Product guard normalized a non-low false-positive publish_block request to warn-only suspicious.
Static reason
High-risk behavior combination matched malicious policy.
Trigger
Running the Helios/Pi agent with bundled extensions loaded, causing session_start to fire.
Impact
Remote release content from the GitHub latest-download endpoint can mutate the AI agent control surface and run pi update without explicit user approval in the tarball path.
Mechanism
unconsented remote self-update and agent tree replacement
Policy narrative
On agent session startup, the bundled auto-update extension waits 5 seconds, then calls triggerUpdate. If the agent directory is not a git checkout, preflight directly invokes tarballUpdate, which fetches release files from GitHub, extracts to a staging directory, swaps the live agent directory with the downloaded tree, and runs pi update. This mutates the AI-agent control surface from remote content without the confirmation gate present in the git update path.
Evidence
package.json settings.json extensions/auto-update.ts
postinstall.cjs
bin/helios-rpc.js
extensions/bedrock-login.ts
~/helios-agent/.update-state.json
~/helios-agent/.update-lock
~/helios-agent/.update-log.jsonl
~/helios-agent/.update-tarball.tar.gz
~/helios-agent.staging
~/helios-agent.rollback
~/helios-agent
Network endpoints1
github.com /helios-agi/helios-team-installer/releases/latest/download
Decision evidencepublic snapshot AI identified this as a dangerous AI-agent capability at 84.0% confidence with medium false-positive risk.
Evidence for policy risk
package.json runs postinstall but hook only copies native addon; main risk is runtime extension surface. settings.json auto-loads ~/helios-agent/extensions and bundled extensions. extensions/auto-update.ts registers session_start handler that runs after 5s. extensions/auto-update.ts preflight() calls tarballUpdate(ctx) automatically when AGENT_DIR is not a git repo. extensions/auto-update.ts tarballUpdate downloads from GitHub and swaps AGENT_DIR via renameSync without the later UI confirmation path. extensions/auto-update.ts runs pi update after replacing the agent tree. Evidence against
postinstall.cjs only copies prebuilds/<platform>/better_sqlite3.node into node_modules/better-sqlite3. bin/helios-rpc.js credential reads inject Bedrock env vars for the spawned child; no exfiltration found there. extensions/bedrock-login.ts stores/injects user-provided Bedrock credentials for provider login. lib/triage-core/types.ts inspected as normal type definitions; no Trojan Source behavior visible in reviewed content. bin/file-polyfill.cjs only polyfills File and redirects local .ts requires to .js counterparts. Network APIs mostly align with agent/daemon features such as Bedrock, Gmail, Salesforce, Porkbun, and update checks. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Eval · Filesystem · Network · Shell
Supply chain High entropy strings · Telemetry · URL strings
Manifest No license · Wildcard dependency
Scanned 1,831 files · 18.8 MB of source
50 external domains referenced
10.0.0.1 127.0.0.1 127.0.0.2 127.255.255.255 169.254.169.254 172.16.0.1 192.168.1.1 2captcha.com accounts.google.com accounts.zoho.com acme.vc api.2captcha.com api.anti-captcha.com api.apollo.io api.capsolver.com api.github.com api.guerrillamail.com api.hubapi.com api.hunter.io api.mail.tm api.notion.com api.porkbun.com api.resend.com api.search.brave.com api.slack.com aws.amazon.com calendar.google.com cdn.jsdelivr.net clients2.google.com console.aws.amazon.com console.cloud.google.com deb.nodesource.com docs.example.com docs.google.com en.wikipedia.org example.com external-api.com fetched.example.com first.com fonts.googleapis.com freedesktop.org github.com gmail.googleapis.com graph.microsoft.com hacker-news.firebaseio.com helios.dev hn.algolia.com httpsms.com inbox.dog login.microsoftonline.com Findings3 critical · 10 high · 11 medium · 8 low Source & flagged code22 flagged High Install time lifecycle scripts
Package defines install-time lifecycle scripts.
package.json View on unpkg Medium Ambiguous install lifecycle script
Install-time lifecycle script is not statically allowlisted and needs review.
package.json View on unpkg Shared scanner record · 2 findings · 1 line scripts.postinstall = node postinstall.cjs || echo '[helios-agent] postinstall skipped'
Critical Critical secret
Package contains a critical-looking secret pattern.
extensions/bedrock-login.ts View on unpkg · L141 Critical Secret pattern
AWS access key ID in extensions/bedrock-login.ts
extensions/bedrock-login.ts View on unpkg · L141 Shared code excerpt · 2 findings · 4 lines 141 patternName = aws_access_key
severity = critical
line = 141
matchedText = placehol.....',
High Child process
Package source references child process execution.
bin/helios-rpc.cjs View on unpkg · L36 Code excerpt · 3 lines 36 const fs = require ('fs' );
37 const { spawn } = require ('child_process' );
38
Code excerpt · 3 lines 740 const declRegex = /export \s+(?:declare\s+)?(?:interface|type|function |class |const |let |var |enum)\s+(\w+)/g;
741 let match: RegExpExecArray | null ;
742 while ((match = declRegex.exec (dtsContent)) !== null ) {
Low Eval
Package source references a known benign dynamic code generation pattern.
lib/graph/erd/parse-erd.js View on unpkg · L244 Code excerpt · 3 lines 244 * that define entities/relationships as JS object literals.
245 * Backend Mapping: Pure regex — no eval (), no external deps, safe for CI.
246 * Integration Points: Merges into parseMermaidBlock → mergeResults → Memgraph pipeline.
Medium Dynamic require
Package source references dynamic require/import behavior.
bin/file-polyfill.cjs View on unpkg · L5 Code excerpt · 3 lines 5 if (typeof globalThis.File === 'undefined' ) {
6 const { Blob } = require ('buffer' );
7 globalThis.File = class File extends Blob {
extensions/memgraph-broker-launcher.ts View file Low Weak crypto
Package source references weak cryptographic algorithms.
extensions/memgraph-broker-launcher.ts View on unpkg · L3 Code excerpt · 11 lines 3 *
4 * Uses Node.js fork () with IPC channel for readiness signaling.
5 * The broker sends { type: 'ready' } after its socket is listening.
⋯
22 // HELIOS_SKIP_INFRA=1 or HELIOS_SKIP_MEMGRAPH=1: broker not started
23 if (process.env.HELIOS_SKIP_INFRA === '1' || process.env.HELIOS_SKIP_MEMGRAPH === '1' ) { console.warn ('[WARN][memgraph-broker-launcher] HELIOS_SKIP_INFRA/MEMGRAPH=1 - skipping br...
24 // Fast path: if broker socket already exists and process alive, emit ready immediately.
⋯
61 uid = process.getuid === ? process. () : ;
Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
extensions/session-reaper.ts View on unpkg · L17 Code excerpt · 12 lines 17 import type { ExtensionAPI } from "@helios-agent/pi-coding-agent" ;
18 import { execFile, execFileSync, spawn } from "node:child_process" ;
19 import { join } from "node:path" ;
⋯
59 fs.mkdirSync (dir, { recursive: true , mode: 0o700 });
60 } catch (e) { process.stderr.write (`[extensions] never crash session: ${String(e)}\n` ); }
61 }
⋯
66 const raw = fs. (tombstonePath, );
High Same file environment network execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
extensions/memgraph-autostart.ts View on unpkg · L12 Code excerpt · 8 lines 12 */
13 import { execFile } from 'child_process' ;
14 import { promisify } from 'util' ;
15 import * as net from 'net' ;
16 import { join } from 'path' ;
⋯
23 const require = createRequire (import .meta.url);
24 const QUIET = process.env.PI_QUIET === || process.env.PI_LOG_LEVEL === ;
lib/graph/web-research/auto-capture/queue.test.mjs View file High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
lib/graph/web-research/auto-capture/queue.test.mjs View on unpkg · L21 Code excerpt · 9 lines 21 queue.enqueue ([
22 'https://example.com/a' ,
23 'https://example.com/a' ,
⋯
114 const queue = new CaptureQueue ({ drainDelayMs: 60_000 });
115 queue.enqueue (['http://169.254.169.254/latest/meta-data/' ]);
116 assert.deepEqual (queue.getStats (), { queued: 0 , ingested: 0 , failed: 0 });
Critical Trojan source unicode
Source contains bidi control or invisible Unicode characters associated with Trojan Source attacks.
lib/triage-core/types.ts View on unpkg · L853 Code excerpt · 2 lines 853 contains invisible/control Unicode U+FEFF (zero width no-break space)
<U+FEFF>
High Cross file remote execution context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
extensions/codebase-index.ts View on unpkg · L16 Code excerpt · 11 lines Cross-file remote execution chain: extensions/codebase-index.ts spawns bin/helios-rpc.js; helper contains network access plus dynamic code execution.
16 import { Type } from "@sinclair/typebox" ;
17 import { spawn } from "node:child_process" ;
18 import * as path from "node:path" ;
⋯
129 if (lockAge < LOCK_EXPIRY_MS) return false ;
130 } catch (e) { process.stderr.write (`[codebase-index.ts] operation failed: ${String(e)}\n` ); }
extensions/helios-governance/gates/h65-confidence-gate.ts View file High Runtime package install
Package source invokes a package manager install command at runtime.
extensions/helios-governance/gates/h65-confidence-gate.ts View on unpkg · L503 Code excerpt · 3 lines 503 const { execSync } = require ('node:child_process' );
504 const result = execSync (`npx tsc --noEmit --pretty false "${filePath}" 2>&1` , {
505 timeout: 10000 ,
Medium Ships native binary
Package ships native binary artifacts.
bin/fd View on unpkg Scanner record · 4 lines path = bin/fd
kind = native_binary
sizeBytes = 2953808
magicHex = [redacted]
Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
bin/helios-rpc-wrapper.sh View on unpkg Scanner record · 4 lines path = bin/helios-rpc-wrapper.sh
kind = build_helper
sizeBytes = 789
magicHex = [redacted]
skills/helios-design-system/assets/logo/web/avif/helios-logo-wordmark@4x.avif View file High Ships high entropy blob
Package ships high-entropy non-source blobs.
skills/helios-design-system/assets/logo/web/avif/helios-logo-wordmark@4x.avif View on unpkg Scanner record · 4 lines path = skills/helios-design-[redacted]-logo-wordmark@4x.avif
kind = high_entropy_blob
sizeBytes = 6407
magicHex = [redacted]
extensions/__tests__/session-path-fixes.test.sh View file High Payload in excluded dir
Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.
extensions/__tests__/session-path-fixes.test.sh View on unpkg Scanner record · 4 lines path = extensions/__tests__/session-path-fixes.test.sh
kind = payload_in_excluded_dir
sizeBytes = 4962
magicHex = [redacted]
extensions/__tests__/helpers/test-mail.ts View file Medium Secret pattern
Hardcoded password in extensions/__tests__/helpers/test-mail.ts
extensions/__tests__/helpers/test-mail.ts View on unpkg · L139 Code excerpt · 4 lines 139 patternName = generic_password
severity = medium
line = 139
matchedText = const pa...6 !';
extensions/helios-governance/lib/crawl4ai-client.ts View file Medium Secret pattern
Hardcoded password in extensions/helios-governance/lib/crawl4ai-client.ts
extensions/helios-governance/lib/crawl4ai-client.ts View on unpkg · L884 Code excerpt · 4 lines 884 patternName = generic_password
severity = medium
line = 884
matchedText = SETVAR p..._ME"
AI assessment confidence 84%
Certainty of the verdict, not severity.
Verdict details False-positive risk, Review stage, Firewall policy This finding concerns changes to an AI agent's instructions or configuration without explicit user action. It does not by itself establish malware intent. The CLI warns by default and blocks when configured for this policy.
Package metadata npm Maintainers cgh567
Version 2.4.6
Latest on npm 2.6.68
Published Jun 30, 2026
License none
Dependencies 44
Integrity verified
Package size 17.4 MB
Files 2,843
Keywords pi-package pi-coding-agent helios ai-agent graph-brain
Runtime surface package.json Entrypoints bin → helios, helios-daemon, helios-rpc
Runtime No engine / OS / CPU constraints
Artifact 48.2 MB unpacked · 2,843 files 1 signature
Install lifecycle postinstall
On this report AI security review Decision evidence Findings32 Flagged code22 Remediation extensions/memgraph-autostart.ts2 findings
Package metadata 10 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Medium Wildcard dependency
const
typeof
'function'
getuid
0
62 return join (homedir (), '.helios' , 'run' , `memgraph-broker-${uid}.sock` );
114 // No lock file → broker not running. On POSIX also clean up stale socket.
115 if (process.platform !== 'win32' ) {
readFileSync
"utf-8"
67 return JSON.parse (raw) as SessionTombstone;
83 // /proc/self/fd/0 is Linux-only; macOS uses environment variables
84 if (process.platform === 'darwin' ) {
85 return process.env.TERM_SESSION_ID ?? process.env.TERM_PROGRAM ?? "unknown" ;
'1'
'error'
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
extensions/memgraph-autostart.ts View on unpkg · L12 Code excerpt · 12 lines 12 */
13 import { execFile } from 'child_process' ;
14 import { promisify } from 'util' ;
15 import * as net from 'net' ;
16 import { join } from 'path' ;
⋯
23 const require = createRequire (import .meta.url);
24 const QUIET = process.env.PI_QUIET === '1' || process.env.PI_LOG_LEVEL === 'error' ;
25
⋯
53 if (!driver) {
54 process.stderr.write ('[memgraph-autostart] ⚠️ Driver not available yet — skipping MAGE module load (will retry on next tick)\n' );
55 return ;
⋯
215 const BOLT_PORT = parseInt (_boltUrlParts?.[2 ] || '7687' , 10 );
⋯
125 test ('CaptureQueue SSRF: rejects RFC1918 private IPs' , () => {
126 const queue = new CaptureQueue ({ drainDelayMs: 60_000 });
152 saveManifest (current);
153 if (process.env.DEBUG) {
154 process.stderr.write (`[codebase-index] skip: 0 file changes in ${repoPath}\n` );
229 function runLexicalFallback (query: string, limit: number, project?: string): { text: string; count: number } {
230 const searchRoot = project || findGitRoot (process.cwd ()) || (require ('path'