
Share
Researchers uncover a critical security flaw in LLM systems: malicious intermediaries exploiting API routers to inject code and steal secrets, highlighting vulnerabilities in the unsecured supply chain.
The increasing reliance on third-party API routers for dispatching tool-calling requests in large language model (LLM) agents has exposed a significant security vulnerability. These routers act as application-layer proxies with full plaintext access to JSON payloads, but no cryptographic integrity is enforced between the client and upstream models. A new study by researchers from various institutions presents the first systematic analysis of this attack surface.
The researchers formalized a threat model for malicious LLM API routers, defining two core attack classes:
Additionally, they identified two adaptive evasion variants:
The study involved a comprehensive analysis of both paid and free routers. Key findings include:

Two poisoning studies further demonstrated the vulnerability:
Leaked OpenAI Key:
Weakly Configured Decoys:
To address these vulnerabilities, the researchers developed Mine, a research proxy that implements all four attack classes against four public agent frameworks. They evaluated three deployable client-side defenses:
The study highlights the critical need for enhanced security measures in the LLM supply chain. As more applications rely on third-party API routers, ensuring cryptographic integrity and implementing robust client-side defenses are essential to mitigate the risk of payload injection and secret exfiltration.
Tags
Original Sources
About the author
Kai built ML infrastructure at a Bay Area startup before developing an obsession with transformer architectures and inference optimisation that eventually pulled him out of product work entirely. A stint at a compute research lab sharpened his instinct for what actually matters in a model release versus what is marketing. He writes from the inside — from the perspective of someone who has debugged the systems he is describing at three in the morning. He is allergic to hype and instinctively drawn to the unglamorous plumbing questions that everyone else skips over.
More from The Engineer →This Week's Edition
13 April 2026
133 articles
Related Articles
Related Articles
More Stories