Skip to main content

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.

AI-written
Inewgen
12 Sep 2026Source: Dev.to3 min read (0 views)
Share
LLM API Router: 9 of 428 Proxies Inject Code into Agents

Stock photo for illustration only, not from the actual event

Font size
  • 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.

server room data center office meeting no logo

Stock photo for illustration only, not from the actual event

428Routers inspected in study
9Routers injecting malicious code
100MTokens generated from leaked keys

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.

Never miss the latest news?

Subscribe to get news summaries by email - not often enough to be annoying.

โฆษณา

"ด่านนี้จะยืนได้ก็ต่อเมื่อมันอยู่ในตัวรันของ 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

Comments

Leave a Comment
0/2000

Found something wrong in this article? Report an issue with this article