Loading npm security reports…
Loading npm security reports…
audit-tools@0.34.1: AI-agent control-surface risk – flagged | LPM Firewall
Soft block: AI-agent control surface
Warn by default; block when configured. The install changes the user's global AI-agent setup and can affect later agent sessions.
AI security reviewscanned on Nov 12, 2026, 16:49 UTC · by lpm-firewall-ai The automatic postinstall writes agent commands, skills, plugins, and global configuration outside the package directory without explicit consent. This is an AI-agent control-surface hijack under the stated install-time rule.
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.
Impact
The install changes the user's global AI-agent setup and can affect later agent sessions.
Mechanism
The hook launches deployment scripts that write package-provided agent assets and modify the global OpenCode config without an explicit user command.
Policy narrative
During package installation, the postinstall hook runs deployment scripts that write commands and skills into global Claude, Codex, and Gemini locations and update the global OpenCode configuration. These are AI-agent control surfaces outside the package directory, changed without a separate user request. The assets are for the package's stated audit and remediation features, but their install-time global deployment still meets the control-hijack rule.
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
~/.codex/skills/audit-code/SKILL.md
~/.codex/skills/audit-code/audit-code.prompt.md
~/.config/opencode/opencode.json
~/.claude/commands/remediate-code.md
~/.codex/skills/remediate-code/SKILL.md
~/.codex/skills/remediate-code/remediate-code.prompt.md
~/.gemini/config/plugins/audit-code/
~/.gemini/config/plugins/remediate-code/
Decision evidencepublic snapshot AI identified this as a dangerous AI-agent capability at 98.0% confidence with low false-positive risk.
Evidence for policy risk
package.json runs scripts/postinstall.mjs automatically during installation. The postinstall launches both audit and remediation deployment scripts. The audit deployer writes commands and skills into global Claude and Codex directories. The audit deployer also modifies the global OpenCode configuration. The remediation deployer also writes commands and skills into the global Claude and Codex directories. The shared installer creates directories and writes generated files at the specified paths. Evidence against
The installed agent assets are named for and sourced from this package’s audit and remediation features. 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 · 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.9
matchedPath = wrapper/audit-code-wrapper-lib.mjs
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.33.9
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.9
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.33.9
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.9
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.33.9
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.9
matchedPath = wrapper/audit-code-wrapper-build.mjs
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.33.9
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.9
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.33.9
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.9
matchedPath = dist/shared/quota/errorParsing.js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.33.9
similarity = 1.000
summary = normalized source hash matched finalized malicious source
AI assessment confidence 98%
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.1
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 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