LLM API Router: 9 of 428 Proxies Inject Code into Agents
An April 2026 study reveals LLM API routers injecting malicious payloads and stealing credentials, highlighting the need for digital signatures.

Stock photo for illustration only, not from the actual event
- An April 2026 study examined 428 LLM API routers and found 9 injecting malicious code.
- Proxy architecture terminates encrypted connections, exposing all prompts and API keys.
- Some proxies use adaptive evasion, triggering malicious payloads after 50 requests.
- Current defense mechanisms lack origin verification, requiring model providers to sign responses.
When developers route AI agent traffic through third-party intermediaries or LLM API routers for convenience and cost-efficiency, they often overlook a critical architectural flaw. Because clients intentionally configure the proxy as an endpoint, the intermediary terminates the encrypted connection and reads all plain-text data passing through, including user prompts, API keys, and tool execution requests without needing complex interception techniques.
An April 2026 research study analyzed 428 routers, comprising 28 paid services purchased from Chinese markets and Shopify shops, alongside 400 free routers from public communities. The findings revealed that one paid router and eight free routers actively injected malicious code into tool instructions. In one instance, package names were altered from requests to reqeusts, bypassing domain name checks while executing malicious packages stored on the local machine.

Stock photo for illustration only, not from the actual event
Furthermore, researchers discovered that two routers employed adaptive evasion techniques, deploying malicious code only after 50 requests or within sessions configured for fully autonomous execution without confirmation. This makes short-term testing appear normal. Additionally, 17 routers touched test credentials, and one drained funds from a honeypot cryptocurrency private key.
"ด่านนี้จะยืนได้ก็ต่อเมื่อมันอยู่ในตัวรันของ agent ไม่ใช่ในตัวกลาง"
@bygregorr
The vulnerability stems from inherent trust in centralized routing architectures. Securing this pipeline requires moving beyond simple content inspection toward cryptographic origin verification, such as model providers applying digital signatures to responses so clients can verify instructions haven't been tampered with in transit.
The study tested three client-side defense mechanisms: a high-risk command filter blocking direct injections with a 1.0 percent false-alarm rate, an anomaly detection filter catching 89.0 percent of direct injections with a 6.7 percent false-alarm rate, and an append-only audit log consuming 1.26 kilobytes per entry for post-incident investigations.
Source: Dev.to
Found something wrong in this article? Report an issue with this article
Comments
Leave a Comment