AIToday
Large Language ModelsAI Safety & AlignmentITmedia AI+Published: Nov 19, 2026, 13:01 JST

428 API routers tested: 9 inject malicious code, steal keys

Send on LINE
428 API routers tested: 9 inject malicious code, steal keys

3 Key Points

  1. What happened

    A UC Santa Barbara-led team examined 428 API routers (28 paid, 400 free) that sit between AI agents and model providers; 9 injected malicious code and one drained a small Ethereum decoy key.

  2. Why it matters

    Because TLS is terminated at the router, operators can read and rewrite prompts, API keys and tool calls, and current provider APIs lack signatures to prove responses are unaltered.

WHO IT HITSDevelopers and platform teams who route AI-agent traffic through third-party API routers are exposed, since credentials and tool calls pass through an intermediary that can alter them.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The study, titled "Your Agent Is Mine: Measuring Malicious Intermediary Attacks on the LLM Supply Chain," focuses on a layer that has grown quietly as AI agents such as Claude Code and Codex became common. These agents write code, run commands and touch cloud environments, and they often reach OpenAI or Anthropic models through third-party routers that pick a provider and relay the request.

The structural weakness the paper describes is that the user chooses the router, so encrypted traffic is decrypted at that relay. Prompts, authentication credentials and the tool calls the model returns are all visible to the operator and can be edited. The researchers note that major AI providers' APIs currently offer no digital signature to prove a response was not altered in transit.

Beyond outright malicious routers, the paper points to a subtler supply-chain problem. Even a well-intentioned router can reuse keys that leaked elsewhere or pass traffic through a weakly secured relay, making it an equivalent attack route. The team's own decoy relay was incorporated into outside routing without their consent, which the paper presents as evidence that the path can be compromised without the user's knowledge.

FAQ
What exactly can a malicious API router do?
It can rewrite commands returned by the AI, swapping a legitimate URL for a malware link or a package name for a lookalike such as 'reqeusts' instead of 'requests'. It can also silently harvest API keys, AWS access keys, GitHub tokens and crypto private keys.
How did the researchers test the routers?
They examined 28 paid and 400 free routers. They planted decoy AWS credentials and a decoy Ethereum private key, and found the AWS decoys were later misused on 17 free routers.
Can a legitimate router still be risky?
Yes. The paper says a good router that reuses leaked API keys or passes through a poorly secured relay server can become the same attack path. A decoy relay the team set up was added to outside routing without permission, exposing 99 credentials from 440 development sessions.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleTencent Holdings' AI spending stalls profit growth as sales rise 8%