Loading npm security reports…
Loading npm security reports…
@indigoai-us/hq-cli@5.345.166: Agent extension lifecycle risk | 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 24, 2026, 01:26 UTC · by lpm-firewall-ai Source inspection found a guarded agent sync step that writes synced instructions into Codex configuration, which warrants a warning about the resulting configuration risk. The flagged scaffold receiver only normalizes paths, and the inspected Cognito requests target AWS Cognito as part of machine-token operations.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
A post-sync run for an agent identity when the Codex materialization flag is enabled.
Impact
Synced instructions can affect later Codex sessions under that configuration.
Mechanism
The runner passes the HQ root to a materializer that composes agent sections and writes the result to the Codex instructions file.
Evidence
.lpm-dependency-evidence-355f150f-be62-4fa5-b82b-519e8b9d38ec/1/npm-linux/dist/bin/sync-runner.js .lpm-dependency-evidence-355f150f-be62-4fa5-b82b-519e8b9d38ec/1/npm-linux/dist/agent-codex-instructions.js .lpm-dependency-evidence-355f150f-be62-4fa5-b82b-519e8b9d38ec/1/npm-linux/dist/bin/sync-runner-post-sync-flags.js ~/.codex/AGENTS.md
Decision evidencepublic snapshot Evidence for warning
After a sync for an agent identity, the runner calls a Codex instruction materializer when its post-sync flag is enabled. The materializer builds a Codex instructions file from agent sections and writes it to the Codex configuration location; the package source also shows it skips an empty overlay. The flag is named for agent Codex materialization and has an operator opt-out setting. The scaffold receiver at the flagged location only normalizes comma-separated paths; it does not establish a harmful runtime operation. The manifest’s postinstall installs the package’s hook engine, while prepare invokes Husky. Evidence against
The Codex materialization is limited to agent syncs and guarded by a post-sync flag; inspected excerpts do not establish malicious instruction content or credential disclosure. The inspected credential transport sends Cognito requests to the regional AWS Cognito service, and the cited callers use the package’s machine-token minting flow. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell
Supply chain High entropy strings · Minified · URL strings
Manifest No manifest risk signals triggered.
Scanned 1,035 files · 14.5 MB of source
23 external domains referenced
127.0.0.1 a.co api.anthropic.com api.github.com api.indigo-hq.com api.openai.com api.slack.com cli-chat-proxy.grok.com console.anthropic.com docs.hq.computer example.com github.com gmailmcp.googleapis.com hq.computer hq.getindigo.ai hq.indigo.ai hqapi.hq.computer json-schema.org nodejs.org onboarding.hq.computer registry.npmjs.org schemas.microsoft.com www.apple.com Oversized source lightweight scan
dist/hq-cloud-sync-runner/bin/sync-runner.js 6.05 MB file, sampled 256 KB
Filesystem Environment variables High entropy strings URL strings a.co github.com hqapi.hq.computer
Findings3 critical · 22 high · 8 medium · 6 low Source & flagged code31 flagged Critical Red install lifecycle script
Install-time lifecycle script matches a deterministic static-gate block pattern.
package.json View on unpkg High Install time lifecycle scripts
Package defines install-time lifecycle scripts.
package.json View on unpkg Shared scanner record · 2 findings · 1 line scripts.postinstall = node scripts/install-hook-engine.mjs || node -e "process.exit(0)"
High Child process
Package source references child process execution.
dist/startup-registration.js View on unpkg · L18 Code excerpt · 3 lines 18 */
19 import { spawnSync } from "node:child_process" ;
20 import { stringDerivedPackageRoot } from "./utils/hq-roots.js" ;
dist/utils/self-update.js#virtual:normalized:round1 View file High Shell
Package source references shell execution.
dist/utils/self-update.js#virtual:normalized:round1 View on unpkg · L208 Code excerpt · 3 lines 208 // pnpm needs its global bin path on PATH. Corepack must also ignore a
209 // packageManager pin in the caller"s working directory so this install uses\n // the system-wide package manager without changing its selected version.\n const updateEnv = i...
210 // manual retry above hits the same layout and fails the same way; point at
dist/utils/update-command-supervisor.cjs View file Medium Dynamic require
Package source references dynamic require/import behavior.
dist/utils/update-command-supervisor.cjs View on unpkg · L2 Code excerpt · 2 lines 3 const { spawn: nativeSpawn } = require ("node:child_process" );
4 const fs = require ("node:fs" );
Low Weak crypto
Package source references weak cryptographic algorithms.
dist/lib/daemon/sync-runner.js View on unpkg · L2 Code excerpt · 12 lines 2 import * as crypto from "node:crypto" ;
3 import { spawnSync } from "node:child_process" ;
4 import * as fs from "node:fs" ;
⋯
20 /** The status file path used by hq-cloud's watch-owner lease. */
21 export function watchRunnerOwnerStatusPath (hqRoot, home = os.homedir (), env = process.env) {
22 let canonicalRoot = path.resolve (hqRoot);
dist/lib/mesh/live/daemon/install.js View file High Trigger reachable persistence
A manifest entrypoint or package-local install chain reaches persistence behavior.
dist/lib/mesh/live/daemon/install.js View on unpkg · L7 Medium Install persistence
Source writes installer persistence such as shell profile or service configuration.
dist/lib/mesh/live/daemon/install.js View on unpkg · L7 Shared code excerpt · 2 findings · 12 lines Trigger-reachable persistence chain: manifest.main -> dist/index.js -> dist/main.js -> dist/utils/self-update.js -> [redacted].js
7 * - Windows: per-user Scheduled Task ai.getindigo.hq-mesh-daemon registered
8 * from a rendered task XML via schtasks.exe (no native dependencies)
9 *
⋯
16 import * as path from "node:path" ;
17 import { spawnSync } from ;
dist/commands/core-job-probe-native.js 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.
dist/commands/core-job-probe-native.js View on unpkg · L129 Code excerpt · 7 lines 129 : "hq" ;
130 const plan = planResolvedCommandSpawn (executable, args, process.env);
131 const r = spawnSync (plan.cmd, plan.args, { encoding: "utf8" , stdio: ["ignore" , "pipe" , "ignore" ], shell: plan.shell, ...(plan.windowsVerbatimArguments ? { windowsVerbatimArguments:...
132 return Promise.resolve ({ code: r.status ?? (r.error ? 127 : 1 ), stdout: r.stdout ?? "" });
⋯
dist/lib/capacity/collectors/claude-oauth.js View file Critical Credential exfiltration
Source appears to send environment or credential material to an external endpoint.
dist/lib/capacity/collectors/claude-oauth.js View on unpkg · L6 Code excerpt · 12 lines 6 * or the credentials JSON under ~/.claude/ on Linux). GETs
7 * https://api.anthropic.com/api/oauth/usage with the oauth-2025-04-20 beta
8 * header. This module does not invoke the claude CLI except
⋯
31 */
32 import { execFile, spawnSync } from "node:child_process" ;
33 import * as crypto from "node:crypto" ;
⋯
81 }
82 export function defaultClaudeCredentialsPath (home = os. ()) {
High Cloud metadata access
Source reaches cloud instance metadata or link-local credential endpoints.
dist/lib/lanes/machine-identity.js View on unpkg · L11 Code excerpt · 12 lines 11 */
12 import { spawnSync } from "node:child_process" ;
13 import * as os from "node:os" ;
14 export const IMDS_HOST = "169.254.169.254" ;
15 export const IMDS_TOKEN_URL = `http://${IMDS_HOST}/latest/api/token` ;
16 export const IMDS_INSTANCE_ID_URL = `http://${IMDS_HOST}/latest/meta-data/instance-id` ;
⋯
30 return ;
assets/lanes-hooks/hq-lanes-drain.sh View file Medium Ships build helper
Package ships non-JavaScript build or shell helper files.
assets/lanes-hooks/hq-lanes-drain.sh View on unpkg Scanner record · 4 lines path = assets/lanes-hooks/hq-lanes-drain.sh
kind = build_helper
sizeBytes = 620
magicHex = [redacted]
assets/scaffold/.claude/hooks/validate-policy-frontmatter.sh View file High Payload in excluded dir
Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.
assets/scaffold/.claude/hooks/validate-policy-frontmatter.sh View on unpkg Scanner record · 4 lines path = assets/scaffold/.claude/hooks/validate-policy-frontmatter.sh
kind = payload_in_excluded_dir
sizeBytes = 21475
magicHex = [redacted]
dist/hq-cloud-sync-runner/bin/sync-runner.js View file Medium Oversized source file
Package contains source files above the normal full-analysis size ceiling.
dist/hq-cloud-sync-runner/bin/sync-runner.js View on unpkg Scanner record · 4 lines path = dist/hq-cloud-sync-runner/bin/sync-runner.js
kind = oversized_source_file
sizeBytes = 6347668
magicHex = [redacted]
Medium Oversized CLI entrypoint
Package contains an oversized executable-looking CLI entrypoint.
dist/hq-cloud-sync-runner/bin/sync-runner.js View on unpkg Scanner record · 4 lines path = dist/hq-cloud-sync-runner/bin/sync-runner.js
kind = oversized_cli_entrypoint
sizeBytes = 6347668
magicHex = [redacted]
assets/scaffold/core/scripts/lib/codex-output-schema.mjs#virtual:normalized:round1 View file High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
assets/scaffold/core/scripts/lib/codex-output-schema.mjs#virtual:normalized:round1 View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 53
dist/lib/lanes/outpost-worktree-pruner.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/lib/lanes/outpost-worktree-pruner.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @indigoai-us/hq-cli@5.345.145
matchedPath = dist/lib/lanes/outpost-worktree-pruner.js
matchedIdentity = npm:QGluZGlnb2FpLXVzL2hxLWNsaQ:5.345.145
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/lib/search-index/index.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @indigoai-us/hq-cli@5.345.145
matchedPath = dist/lib/search-index/index.js
matchedIdentity = npm:QGluZGlnb2FpLXVzL2hxLWNsaQ:5.345.145
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/utils/version-gate.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @indigoai-us/hq-cli@5.345.145
matchedPath = dist/utils/version-gate.js
matchedIdentity = npm:QGluZGlnb2FpLXVzL2hxLWNsaQ:5.345.145
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/lib/lanes/legacy-pool.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @indigoai-us/hq-cli@5.345.145
matchedPath = dist/lib/lanes/legacy-pool.js
matchedIdentity = npm:QGluZGlnb2FpLXVzL2hxLWNsaQ:5.345.145
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/lib/lanes/models.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @indigoai-us/hq-cli@5.345.145
matchedPath = dist/lib/lanes/models.js
matchedIdentity = npm:QGluZGlnb2FpLXVzL2hxLWNsaQ:5.345.145
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/lib/lanes/monitor.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @indigoai-us/hq-cli@5.345.145
matchedPath = dist/lib/lanes/monitor.js
matchedIdentity = npm:QGluZGlnb2FpLXVzL2hxLWNsaQ:5.345.145
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/lib/lanes/worker-process.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @indigoai-us/hq-cli@5.345.145
matchedPath = dist/lib/lanes/worker-process.js
matchedIdentity = npm:QGluZGlnb2FpLXVzL2hxLWNsaQ:5.345.145
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dist/lib/work-context/windows-acl.js View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/lib/work-context/windows-acl.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @indigoai-us/hq-cli@5.345.145
matchedPath = dist/lib/work-context/windows-acl.js
matchedIdentity = npm:QGluZGlnb2FpLXVzL2hxLWNsaQ:5.345.145
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/commands/lanes-hold.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @indigoai-us/hq-cli@5.345.145
matchedPath = dist/commands/lanes-hold.js
matchedIdentity = npm:QGluZGlnb2FpLXVzL2hxLWNsaQ:5.345.145
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Code↓
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
40 parsed = JSON.parse (fs.readFileSync (statusPath, "utf8" ));
128 const variants = new Set ([pathApi.resolve (hqRoot)]);
129 if (platform === process.platform) {
"node:child_process"
18 import semver from "semver" ;
55 stdout: r.stdout ?? "" ,
56 stderr: r.error ? r.error.message : (r.stderr ?? "" ),
62 const raw = readFileSync (file);
63 const buf = Buffer.isBuffer (raw) ? raw : Buffer.from (String (raw));
64 if ((buf.length >= 2 && buf[0 ] === 0xff && buf[1 ] === 0xfe) || buf.includes (0 )) {
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
dist/lib/mesh/live/daemon/install.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = @indigoai-us/hq-cli@5.345.145
matchedPath = [redacted].js
matchedIdentity = npm:QGluZGlnb2FpLXVzL2hxLWNsaQ:5.345.145
similarity = 1.000
summary = normalized source hash matched finalized malicious source
142
commandExists: (name) => hasProbeCommand (name, env),
143 fetcher: stubs ? async () => { throw new Error ("HQ_JOB_TEST_STUB blocked real network fetch" ); } : (url, init) => fetch (url, init) };
High Command output exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/commands/core-job-probe-native.js View on unpkg · L130 Code excerpt · 9 lines 130 const plan = planResolvedCommandSpawn (executable, args, process.env);
131 const r = spawnSync (plan.cmd, plan.args, { encoding: "utf8" , stdio: ["ignore" , "pipe" , "ignore" ], shell: plan.shell, ...(plan.windowsVerbatimArguments ? { windowsVerbatimArguments:...
132 return Promise.resolve ({ code: r.status ?? (r.error ? 127 : 1 ), stdout: r.stdout ?? "" });
133 }
⋯
139 statSize, isFile, isDirectory, realpath, readText: (f) => fs.readFileSync (f, "utf8" ), writeState,
140 writeStderr: (line) => process.stderr.write (line),
141 listSecrets: stubs ? async () => { throw new Error ("HQ_JOB_TEST_STUB blocked real hq secrets list" ); } : listSecrets,
142 commandExists: (name) => hasProbeCommand (name, env),
143 fetcher: stubs ? async () => { throw new Error ("HQ_JOB_TEST_STUB blocked re
homedir
83 return path.join (home, ".claude" , ".credentials.json" );
279 retryAfter = response.headers?.get ("retry-after" ) ?? null ;
280 text = status === 200 ? await response.text () : "" ;
Critical Trigger reachable dangerous capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/lib/capacity/collectors/claude-oauth.js View on unpkg · L6 Code excerpt · 11 lines Trigger-reachable chain: manifest.main -> dist/index.js -> dist/commands/mcp-serve.js -> dist/utils/resident-package-preload.js -> dist/commands/lanes.js -> dist/lib/lanes/claude-credential.js -> [redacted]-oauth.js
6 * or the credentials JSON under ~/.claude/ on Linux). GETs
7 * https://api.anthropic.com/api/oauth/usage with the oauth-2025-04-20 beta
8 * header. This module does not invoke the claude CLI except
⋯
31 */
32 import { execFile, spawnSync } from "node:child_process" ;
33 import * as crypto from "node:crypto" ;
⋯
81 }
82 export function defaultClaudeCredentialsPath (home = os.homedir ()) {
83 return path.join (home, ".claude" , ".credentials.json" );
⋯
279 retryAfter = response.headers?.get ("retry-after" ) ?? null ;
280 text = status === 200 ? await response.
High Trigger reachable credential exfiltration
A manifest entrypoint or package-local install chain reaches credential exfiltration behavior.
dist/lib/capacity/collectors/claude-oauth.js View on unpkg · L6 Code excerpt · 11 lines Trigger-reachable credential exfiltration chain: manifest.main -> dist/index.js -> dist/commands/mcp-serve.js -> dist/utils/resident-package-preload.js -> dist/commands/lanes.js -> dist/lib/lanes/claude-credential.js -> [redacted]-oauth.js
6 * or the credentials JSON under ~/.claude/ on Linux). GETs
7 * https://api.anthropic.com/api/oauth/usage with the oauth-2025-04-20 beta
8 * header. This module does not invoke the claude CLI except
⋯
31 */
32 import { execFile, spawnSync } from "node:child_process" ;
33 import * as crypto from "node:crypto" ;
⋯
81 }
82 export function defaultClaudeCredentialsPath (home = os.homedir ()) {
83 return path.join (home, ".claude" , ".credentials.json" );
⋯
279 retryAfter = response.headers?.get ("retry-after" ) ?? null ;
280 text = status =
null
31 const body = (result.stdout ?? "" ).trim ();
32 return body.length > 0 ? body : null ;
35 process.stderr.write (`hq lanes: IMDS request failed for ${url}: ${err instanceof Error ? err.message : String(err)}\n` );