Loading npm security reports…
Loading npm security reports…
audit-tools@0.33.6: AI-agent control-surface risk – flagged | LPM Firewall
Soft block: AI-agent control surface
Warn by default; block when configured. The installation changes the user's AI-agent control surfaces and makes package-provided commands and skills available globally.
AI security reviewscanned on Nov 12, 2026, 09:46 UTC · by lpm-firewall-ai The package's automatic postinstall hook writes agent instructions and plugins into global user directories and installs an OpenCode command and agent configuration. This is an unconsented install-time change to AI-agent control surfaces, which meets the control-hijack criterion.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
npm install runs the package postinstall hook without a separate user command to configure agents.
Impact
The installation changes the user's AI-agent control surfaces and makes package-provided commands and skills available globally.
Mechanism
The hook copies bundled prompts and skills into user-level agent directories, installs a global OpenCode command and agent configuration, and creates global Antigravity and Claude Desktop plugin files.
Policy narrative
During npm installation, the postinstall hook writes package-provided commands and skills into global Claude and Codex locations, modifies the global OpenCode configuration, and creates global Antigravity and Claude Desktop plugins. These automatic writes alter AI-agent control surfaces outside the package directory without an explicit setup command.
Evidence
package.json scripts/postinstall.mjs scripts/audit/postinstall.mjs scripts/shared/install-host-assets.mjs
~/.claude/commands/audit-code.md
~/.codex/skills/audit-code/SKILL.md
~/.codex/skills/audit-code/audit-code.prompt.md
~/.config/opencode/opencode.json
~/.gemini/config/plugins/audit-code/plugin.json
~/.gemini/config/plugins/audit-code/skills/SKILL.md
~/.claude/plugins/marketplaces/claude-plugins-official/external_plugins/audit-code/.claude-plugin/plugin.json
~/.claude/plugins/marketplaces/claude-plugins-official/external_plugins/audit-code/commands/audit-code.md
~/.claude/plugins/marketplaces/claude-plugins-official/external_plugins/audit-code/skills/audit-code/SKILL.md
Decision evidencepublic snapshot AI identified this as a dangerous AI-agent capability at 97.0% confidence with low false-positive risk.
Evidence for policy risk
package.json runs scripts/postinstall.mjs automatically during installation. The postinstall wrapper runs both audit and remediation deployment scripts. The audit deployer registers a Claude command and copies its skill and prompt into the user's global Claude and Codex directories. The audit deployer writes a global OpenCode configuration containing an audit command and agent configuration. Its shared writer creates destination directories and writes files; the installer also creates a global Antigravity plugin. The package automatically creates a Claude Desktop plugin under the user's global plugin marketplace directory. Evidence against
The deployed commands, skills, and plugins are named for this package and use its own bundled prompt and skill files. The OpenCode configuration includes permission rules; its comments say broad shell and external-directory allows are not seeded. 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 535 files · 4.09 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 · 9 high · 5 medium · 6 low Source & flagged code13 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.33.4
matchedPath = wrapper/audit-code-wrapper-lib.mjs
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.33.4
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.33.4
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.33.4
similarity = 1.000
summary = normalized source hash matched finalized malicious source
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.33.4
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.33.4
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.33.4
matchedPath = wrapper/audit-code-wrapper-build.mjs
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.33.4
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.33.4
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.33.4
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.33.4
matchedPath = dist/shared/quota/errorParsing.js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.33.4
similarity = 1.000
summary = normalized source hash matched finalized malicious source
AI assessment confidence 97%
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.33.6
Latest on npm 0.55.20
Published Jul 18, 2026
License ISC
Dependencies 5
Integrity verified
Package size 2.29 MB
Files 2,100
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.30 MB unpacked · 2,100 files 1 signature · provenance
Install lifecycle postinstall prepublishOnly
On this report AI security review Decision evidence Findings21 Flagged code13 Remediation Dynamic require
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