Loading npm security reports…
Loading npm security reports…
audit-tools@0.34.3: AI-agent control-surface risk – flagged | LPM Firewall
Soft block: AI-agent control surface
Warn by default; block when configured. The installed instructions and agent configuration become available to AI tools, with some agent actions granted automatically.
AI security reviewscanned on Nov 12, 2026, 18:03 UTC · by lpm-firewall-ai The default install hook writes AI-agent instructions, skills, and global configuration outside the package directory, including OpenCode agent permissions. The assets serve the package's own features, but the install-time control-surface changes are unrequested and meet the package firewall's AI-agent control-hijack rule.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; source fingerprint signature matched known malicious package; routed for review
Trigger
npm install runs the package postinstall hook without a separate agent-setup command.
Impact
The installed instructions and agent configuration become available to AI tools, with some agent actions granted automatically.
Mechanism
The hook installs Claude and Codex instructions and skills, registers package plugins, and merges an OpenCode global command, agent, and permissions into the user's configuration.
Policy narrative
During npm installation, the default postinstall deploys the package's instructions and plugins into user-level AI-agent directories and edits global OpenCode configuration, including agent permissions. This is an automatic change to AI-agent control surfaces outside the package directory.
Evidence
package.json scripts/postinstall.mjs scripts/audit/postinstall.mjs
scripts/remediate/postinstall.mjs
scripts/shared/install-host-assets.mjs
~/.claude/commands/audit-code.md
~/.claude/commands/remediate-code.md
~/.codex/skills/audit-code/**
~/.codex/skills/remediate-code/**
~/.config/opencode/opencode.json
~/.gemini/config/plugins/audit-code/**
~/.gemini/config/plugins/remediate-code/**
~/.claude/plugins/marketplaces/claude-plugins-official/external_plugins/audit-code/**
Decision evidencepublic snapshot AI identified this as a dangerous AI-agent capability at 94.0% confidence with low false-positive risk.
Evidence for policy risk
The manifest runs scripts/postinstall.mjs automatically during installation. The postinstall launches both audit and remediation host-asset installers. The audit installer writes a Claude command and Codex skill into the user's home directory. It also writes an OpenCode global config and merges in an agent and command configuration. The shared helper creates directories and writes generated files to the supplied paths. The OpenCode agent configuration automatically allows auditor_* tools, question, and task. Evidence against
The installed assets are named for this package's own audit-code and remediate-code features. The OpenCode settings add a named auditor agent and package-specific command; the configured shell defaults include ask and deny rules. No automatic credential exfiltration was identified; the NVIDIA-compatible endpoint is used through user-configured provider settings. Behavioral surface
Source Child process · Crypto · Dynamic require · Environment variables · Filesystem · Network · Shell
Supply chain High entropy strings · URL strings
Manifest No manifest risk signals triggered.
Scanned 537 files · 4.14 MB of source
8 external domains referenced
api.anthropic.com api.github.com chatgpt.com cloudcode-pa.googleapis.com console.anthropic.com github.com json-schema.org opencode.ai Findings1 critical · 10 high · 5 medium · 6 low Source & flagged code14 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 scripts/postinstall.mjs
High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
wrapper/audit-code-wrapper-lib.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = audit-tools@0.34.1
matchedPath = wrapper/audit-code-wrapper-lib.mjs
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.34.1
similarity = 1.000
summary = normalized source hash matched finalized malicious source
Medium Dynamic require
Package source references dynamic require/import behavior.
wrapper/audit-code-wrapper-lib.mjs View on unpkg · L274 Code excerpt · 3 lines 274 const distUrl = new URL (`file:///${distCliEntry.replace(/\\/g, '/')}` );
275 const cli = await import (distUrl.href);
276 await cli.runCli ([process.execPath, distCliEntry, commandName, ...commandArgs]);
dist/audit/orchestrator/reviewPackets.js View file Low Weak crypto
Package source references weak cryptographic algorithms.
dist/audit/orchestrator/reviewPackets.js View on unpkg · L119 Code excerpt · 9 lines 119 * `isolateAlone` /`onIsolate` /`onBeforeFlush` so behavior — including the
120 * exact stderr wording — is unchanged.
121 */
122 function chunkPacketTasks (tasks, options) {
123 const verbose = Boolean (process.env.AUDIT_CODE_VERBOSE);
124 const sortedTasks = tasks.sort (compareTasksForPacket);
⋯
137 const taskEstimatedTokens = taskContentTokens (task, options.sizeIndex, options.lineIndex);
138 process.stderr.write (
Critical AI agent control hijack
Source creates an unconsented AI-agent control surface through install-time mutation or a default unauthenticated remote skill channel.
scripts/audit/postinstall.mjs View on unpkg · L1 Code excerpt · 16 lines 1 Install-time code directly mutates a foreign AI-agent control surface:
150 grep: 'allow' ,
151 edit: { ...OPENCODE_AUDIT_EDIT_PERMISSION },
152 bash: { ...OPENCODE_AUDIT_BASH_PERMISSION },
153 };
⋯
195 function claudePluginExternalDir () {
196 return join (homedir (), '.claude' , 'plugins' , 'marketplaces' , 'claude-plugins-official' , 'external_plugins' , 'audit-code' );
High Semantic analysis limited
A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
dist/audit/cli/args.js View on unpkg Scanner record · 1 line stage = ast_semantic_analysis; reason = ast_alias_growth_limit_exceeded; limitedFiles = 1
dist/shared/providers/spawnLoggedCommand.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/shared/providers/spawnLoggedCommand.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = audit-tools@0.34.1
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.34.1
similarity = 1.000
summary = normalized source hash matched finalized malicious source
High Known malware source fingerprint signature
Source fingerprint signature matches a known malicious package signature; route for source-aware review.
dist/shared/providers/spawnLoggedCommand.js View on unpkg Scanner record · 10 lines matchType = malicious_source_fingerprint_signature
signature = 9bcfd43efa495954
dist/audit/orchestrator/runtimeCommand.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/audit/orchestrator/runtimeCommand.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = audit-tools@0.34.1
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.34.1
similarity = 1.000
summary = normalized source hash matched finalized malicious source
wrapper/audit-code-wrapper-build.mjs View file High Known malware source similarity
Source file is highly similar to a previously finalized malicious package; route for source-aware review.
wrapper/audit-code-wrapper-build.mjs View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = audit-tools@0.34.1
matchedPath = wrapper/audit-code-wrapper-build.mjs
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.34.1
similarity = 1.000
summary = normalized source hash matched finalized malicious source
dist/shared/quota/antigravityQuotaSource.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/shared/quota/antigravityQuotaSource.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = audit-tools@0.34.1
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.34.1
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/shared/quota/errorParsing.js View on unpkg Scanner record · 6 lines matchType = normalized_sha256
matchedPackage = audit-tools@0.34.1
matchedPath = dist/shared/quota/errorParsing.js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.34.1
similarity = 1.000
summary = normalized source hash matched finalized malicious source
AI assessment confidence 94%
Certainty of the AI review, 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 Version 0.34.3
Latest on npm 0.55.20
Published Jul 20, 2026
License ISC
Dependencies 5
Integrity verified
Package size 2.32 MB
Files 2,108
Keywords audit remediation cli code-audit static-analysis orchestration agents
Runtime surface package.json Entrypoints exports map bin → audit-code, remediate-code
Runtime node >=20
Artifact 9.41 MB unpacked · 2,108 files 1 signature · provenance
Install lifecycle postinstall prepublishOnly
On this report AI security review Decision evidence Findings22 Flagged code14 Remediation High Known malware source similarity Code↓
Package metadata 8 findings
Medium Network
Medium Environment variables
Medium Structural risk force deep review
Low Non install lifecycle scripts
`[audit-code:packet-planning] isolated large-file chunk: task="${task.task_id}" file="${task.file_paths[0]}" estimatedTokens=${taskEstimatedTokens} targetPacke...
213 label: 'Claude command' ,
214 path: join (homedir (), '.claude' , 'commands' , 'audit-code.md' ),
215 sourcePath: promptSourceFile,
220 path: join (homedir (), '.codex' , 'skills' , 'audit-code' , 'SKILL.md' ),
Write operation from scripts/shared/install-host-assets.mjs:
12 import { dirname, join } from "node:path" ;
13 import { mkdirSync, existsSync, readFileSync, writeF
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = audit-tools@0.34.1
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.34.1
summary = package final verdict is malicious