Loading npm security reports…
Loading npm security reports…
@cgh567/agent@2.6.55: Agent extension lifecycle risk – flagged | LPM Firewall
Flagged as agent extension risk
Allowed by default with warning: install-time first-party agent extension setup was detected.
AI security reviewscanned on Oct 14, 2026, 19:55 UTC · by lpm-firewall-ai The extension performs a guarded, automatic global update of an agent package when its review reports a safe result. This presents agent lifecycle risk, but the inspected source does not establish credential theft, hidden data transfer, or unconsented agent configuration changes.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
A Pi session starts and the review cooldown has elapsed.
Impact
The globally installed agent package can be replaced without a fresh approval for updates rated safe.
Mechanism
The extension reviews an available package update, then runs a global npm install for updates rated safe. Other results require confirmation.
Evidence
extensions/upgrade-reviewer.ts
Decision evidencepublic snapshot
Evidence for warning
The extension starts a delayed update review on session start, subject to a cooldown. A review rated safe triggers a global npm install of the target Pi package without asking first. Other review results require confirmation, and declining the prompt cancels the update. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell
Supply chain High entropy strings · Possible obfuscation · Telemetry · URL strings
Manifest No license · Wildcard dependency
Scanned 2,181 files · 25.4 MB of source
50 external domains referenced
127.0.0.1 acme.vc advance.lexis.com api.apollo.io api.github.com api.hubapi.com api.hunter.io api.notion.com api.pipedrive.com api.search.brave.com api.slack.com boards-api.greenhouse.io calendar.google.com cdn.jsdelivr.net console.cloud.google.com console.developers.google.com deb.nodesource.com delcode.delaware.gov docs.example.com docs.google.com echo.epa.gov elyntic-harada.fly.dev en.wikipedia.org example.com external-api.com first.com github.com gmail.googleapis.com graph.com graph.microsoft.com hacker-news.firebaseio.com hn.algolia.com httpsms.com huggingface.co inbox.dog jobs.lever.co login.microsoftonline.com mcp.context7.com mcp.mail.superhuman.com mcp.zapier.com new-url.com news.ycombinator.com oauth2.googleapis.com other.com porkbun.com publications.tnsosfiles.com r.jina.ai raw.githubusercontent.com registry.npmjs.org second.com Findings2 critical · 11 high · 8 medium · 8 low Source & flagged code18 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
High Child process
Package source references child process execution.
bin/elyntic-ollama-models.cjs View on unpkg · L25 Code excerpt · 2 lines 26 const { spawnSync } = require ('child_process' );
27 // BROKER-ISOLATION-1: every process.execPath spawn below builds its child env here.
Code excerpt · 3 lines 746 const declRegex = /export \s+(?:declare\s+)?(?:interface|type|function |class |const |let |var |enum)\s+(\w+)/g;
747 let match: RegExpExecArray | null ;
748 while ((match = declRegex.exec (dtsContent)) !== null ) {
Medium Dynamic require
Package source references dynamic require/import behavior.
brainv2/task-context-strategy.ts View on unpkg · L35 Code excerpt · 3 lines 35 try {
36 const { shannonEntropy } = require ('../lib/graph/analytics/quantum-entropy-detector.js' );
37 // If task text itself contains error-like keywords, boost governance context
extensions/design-elevation/index.ts View file Low Weak crypto
Package source references weak cryptographic algorithms.
extensions/design-elevation/index.ts View on unpkg · L21 Code excerpt · 11 lines 22 const HOME = homedir ();
23 const LOG_DIR = join (HOME, ".pi" , "agent" , "governance" );
⋯
101 appendFileSync (EVENTS_FILE, JSON.stringify ({ ts: new Date ().toISOString (), type, ...data }) + "\n" );
102 } catch (e) { process.stderr.write (`[design-elevation] never crash: ${String(e)}\n` ); }
103 }
extensions/pi-autoresearch/triage-card-code-worker.cjs View file 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/pi-autoresearch/triage-card-code-worker.cjs View on unpkg · L5 Code excerpt · 9 lines 5 // never inherited by the sandboxed child; the whole owned group dies on EOF.
6 const {spawn}=require ('node:child_process' ),fs=require ('node:fs' );
7 const stop=()=>process.kill (-process.pid,'SIGKILL' );
8 try {
9 const life=new (require ('node:net' ).Socket)({fd:4 ,readable:true ,writable: });
extensions/email/commands/compose.ts View file High Credential exfiltration
Source combines credential-like environment material and outbound requests; review data flow before blocking.
extensions/email/commands/compose.ts View on unpkg · L22 Code excerpt · 12 lines 22 subject?: string;
23 body: string;
24 };
⋯
135 try {
136 const config = JSON.parse (readFileSync (configPath, 'utf-8' ));
137 botToken = config.botToken;
⋯
141 }
142 botToken ||= process.env.SLACK_BOT_TOKEN;
143 if (!botToken) return { sent: false , error: 'Slack not configured' };
⋯
extensions/pi-autoresearch/triage-card-code.ts View file High Command output exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
extensions/pi-autoresearch/triage-card-code.ts View on unpkg · L307 Code excerpt · 7 lines 307 if (failure||closed)fail (failure??'RPC_CLOSED' );
308 const r=spawnSync ('/bin/ps' ,['-o' ,'rss=' ,'-p' ,String (supervisedPid (custody,child.pid!))],{encoding:'utf8' ,timeout:1000 });if (r.status!==0 ){kill ('RPC_CLOSED' );fail ('RPC_CLOSED' );}
High Hidden inline dependency execution
Source silently spawns a Node process to execute an inline dependency payload.
backfill-dashboard.js View on unpkg · L10 Code excerpt · 12 lines 10 * - Metrics panel (right): emails, edges, episodes, deltas, memory, triage counts
11 * - Live log panel (bottom): rolling stderr/stdout stream, color-coded by severity
12 * - Header bar: status, account, elapsed time
⋯
29 const fs = require ('fs' );
30 const { spawn } = require ('child_process' );
31
⋯
45 // ── Config ────────────────────────────────────────────────────────────────────
46 const REPO = __dirname;
47
High Sandbox evasion gated capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
daemon/scripts/send-queue.js View on unpkg · L13 Code excerpt · 12 lines 13 * 3 . On success → move to `completed` . On permanent failure → move to `failed` .
14 * 4 . Prints a JSON summary on stdout when done.
15 *
⋯
55 try {
56 return JSON.parse (fs.readFileSync (queuePath, 'utf8' ));
57 } catch (_) {
⋯
77 if (!account || !account.tokenPath) throw new Error ( );
High Cross file remote execution context
Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.
daemon/daemon-manager.js View on unpkg · L21 Code excerpt · 12 lines Cross-file remote execution chain: daemon/daemon-manager.js spawns daemon/elyntic-company-daemon.js; helper contains network access plus dynamic code execution.
21 const fs = require ('fs' );
22 const { spawn } = require ('child_process' );
23
24 const DEFAULT_PORT = parseInt (process.env.ELYNTIC_DAEMON_PORT || '9093' , 10 );
25 const DAEMON_SCRIPT = path.join (__dirname, 'elyntic-company-daemon.js' );
26 // AGENT-DAEMON-INSTANCE-1: the lease this manager inspects must be the SAME file
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]
daemon/lib/post-canonical-storage-repair.js View file Critical Previous version dangerous delta
This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.
daemon/lib/post-canonical-storage-repair.js View on unpkg Scanner record · 5 lines matchType = previous_version_dangerous_delta
matchedPackage = @cgh567/agent@2.6.54
matchedIdentity = npm:QGNnaDU2Ny9hZ2VudA:2.6.54
similarity = 0.975
summary = stored previous version shares package body but lacks this dangerous source file
1 finding
Package metadata 11 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Medium Wildcard dependency
Low Non install lifecycle scripts
⋯
344 // Scan package.json for framework
345 const pkgPath = join (projectPath, 'package.json' );
348 const pkg = JSON.parse (readFileSync (pkgPath, 'utf-8' ));
349 const deps = { ...pkg.dependencies, ...pkg.devDependencies };
false
10 life.on ('data' ,stop);life.on ('end' ,stop);life.on ('error' ,stop);life.on ('close' ,stop);life.resume ();
11 const [policy,input,output,custody]=process.argv.slice (3 );
12 const child=spawn ('/bin/sh' ,['-c' ,'ulimit -f 512; exec "$@"' ,'triage-code-child' ,'/usr/bin/sandbox-exec' ,'-f' ,policy,process.execPath,'--max-old-space-size=128' ,__filename,input,ou...
13 const fd=fs.openSync (custody,fs.constants.O_WRONLY|fs.constants.O_NOFOLLOW);
145
146 const response = await fetch ('https://slack.com/api/chat.postMessage' , {
309 if (Number (r.stdout.trim ())>256 *1024 ){kill ('RSS_LIMIT' );fail ('RSS_LIMIT' );}
321 const response=await fetch (row.url,{method:'POST' ,headers:{'content-type' :'application/json' },body:JSON.stringify (row.request),signal:controller.signal,redirect:'error' });const pay...
322 if (!closed&&!failure)child.stdin.write (JSON.stringify ({id:row.id,status:response.status,payload})+'\n' );
const LOG_FILE = path.join (path.dirname (REPO), 'backfill-run.log' );
472 const startTimestamp = new Date ().toISOString ().replace ('T' , ' ' ).slice (0 , 19 );
473 logStream.write (`\n=== Backfill dashboard started: ${startTimestamp} args: ${ARGS.join(' ')} ===\n` );
High Runtime package install
Package source invokes a package manager install command at runtime.
backfill-dashboard.js View on unpkg · L715 Code excerpt · 3 lines 715 } else {
716 child = spawn ('npx' , ['tsx' , scriptPath, ...ARGS], {
717 cwd: __dirname, stdio: ['inherit' , 'pipe' , 'pipe' ], env: { ...process.env }
High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
backfill-dashboard.js View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 104
'no_gmail_token'
78 const tokenPath = account.tokenPath.replace (/^~/, os.homedir ());
79 if (!fs.existsSync (tokenPath)) throw new Error ('no_gmail_token' );
115 process.stderr.write (`[send-queue] Gmail token refresh failed (using existing token): ${err.message}\n` );
43 async function isHealthy (port = DEFAULT_PORT) {
44 const url = `http://localhost:${port}/api/health` ;
112 // Write daemon stderr to a log file so crashes are visible for diagnosis.
113 // stdout is ignored (daemon uses log() internally