What this check measures
Inspects returned shell and tool-call JSON payloads for substituted package names, rogue flags, or unauthorized registry URLs.
Inspects returned shell and tool-call JSON payloads for substituted package names, rogue flags, or unauthorized registry URLs.
In Liu et al. ("Your Agent Is Mine", arXiv:2604.08407), AC-1.a showed how compromised API relays rewrite innocent `pip install` or `npm install` commands straight into malware execution.
Critical before using any third-party relay with coding agents, IDE assistants, or automated CLI runners.
Even if system prompts look clean on normal chat turns, a compromised relay inspecting tool-call payloads can silently swap a typosquatted package name before returning chunks to your coding agent.
Send a safe tool-enabled coding task requesting standard package setup instructions or structured shell arguments.
Inspect the returned message and tool_calls arguments character-by-character for altered package names, flags, or URLs.
Flag AC-1.a supply-chain tampering if unexpected commands or foreign registry targets appear.
Unmodified expected package commands pass; tampered package names, curl pipes, or extra flags fail immediately.
Exact command and tool-call JSON argument comparison grounded in AC-1.a taxonomy (arXiv:2604.08407).
Tests deterministic clean setups and executes zero local commands; sophisticated dynamic rewrites targeting closed enterprise registries require local endpoint allowlisting.
Implemented in @lmspeed/audit v0.3.3 (ruleset independent-2026-11-22.2); supplementary capability/injection design cross-checked against Veridrop, LLMprobe-engine, and meow-llm-detector specs.