Loading npm security reports…
Loading npm security reports…
audit-tools@0.32.59: AI-agent control-surface risk – flagged | LPM Firewall
Soft block: AI-agent control surface
Warn by default; block when configured. AI-agent control surfaces are changed without an explicit user command, which can alter what agent commands and permissions are available.
AI security reviewscanned on Nov 11, 2026, 02:59 UTC · by lpm-firewall-ai The automatic postinstall hook writes agent instructions and configuration into user-level directories outside the package, including global OpenCode settings. This meets the install-time AI-agent control-surface hijack rule even though the installed assets are package-branded.
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 or another install that runs the package’s postinstall hook.
Impact
AI-agent control surfaces are changed without an explicit user command, which can alter what agent commands and permissions are available.
Mechanism
The hook launches audit and remediation installers that write package commands and skills, merge global OpenCode settings and permissions, and install a Gemini plugin.
Policy narrative
During installation, the postinstall hook launches host installers that write commands, skills, and plugin files into user-level AI-agent directories and merge global OpenCode configuration and permissions. These are AI-agent control-surface changes made without an explicit user command.
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
~/.config/opencode/opencode.json
~/.gemini/config/plugins/audit-code/plugin.json
~/.gemini/config/plugins/audit-code/skills/SKILL.md
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
The package runs scripts/postinstall.mjs automatically during installation. The postinstall launches both audit and remediation host installers. The audit installer writes command and skill files into the user’s Claude and Codex directories. The installer updates the user’s global OpenCode configuration and sets agent permissions. The shared installer writes merged configuration and installs a plugin under the user’s Gemini configuration directory. Evidence against
The installed commands, skills, and plugin are named for this package and match its auditing and remediation purpose. The inspected install code does not show credential collection or network transmission. 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 515 files · 3.75 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.32.58
matchedPath = wrapper/audit-code-wrapper-lib.mjs
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.32.58
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' );
wrapper/audit-code-wrapper-install-hosts.mjs View file High Trigger reachable external AI agent control surface mutation
Manifest-trigger-reachable source writes behavior-bearing configuration into a user or project AI-agent control surface.
wrapper/audit-code-wrapper-install-hosts.mjs View on unpkg Scanner record · 23 lines Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
h,
installmanifestpath,
} = assetpaths;
const results = [];
results.push(...await writecoreinstallassets(root, assetpaths, promptsource, skillsource));
if (profile.writecodex) {
results.push(...await writecodexassets(assetpaths, promptsource, skillsource, promptbody));
}
if (profile.writeopencode) {
results.push(...await writeopencodeassets(assetpaths, root));
}
if (profile.writevscode) {
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.32.58
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.32.58
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 = d4c7f60de275e71d
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.32.58
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.32.58
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.32.58
matchedPath = wrapper/audit-code-wrapper-build.mjs
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.32.58
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.32.58
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.32.58
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.32.59
Latest on npm 0.55.20
Published Jul 12, 2026
License ISC
Dependencies 5
Integrity verified
Package size 2.09 MB
Files 2,020
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 8.60 MB unpacked · 2,020 files 1 signature · provenance
Install lifecycle postinstall prepublishOnly
On this report AI security review Decision evidence Findings22 Flagged code14 Remediation 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
results.push(...await writevscodeassets(assetpaths, promptbody));
if (profile.writeantigravity) {
results.push(...await writeantigravityassets(assetpaths, promptbody, skillsource));
const hostguidance = buildhostcatalog({
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = audit-tools@0.32.58
matchedPath = [redacted].js
matchedIdentity = npm:YXVkaXQtdG9vbHM:0.32.58
summary = package final verdict is malicious