# Summary: 2026-07-26_12-15-09Z_WhereIstheCostofThird_PartyAPIRoutersinAgenticSoft.md Saved: 2026-07-27 20:19 Source: 2026-07-26_12-15-09Z_WhereIstheCostofThird_PartyAPIRoutersinAgenticSoft.md Model: None --- ## Summary This paper investigates how the cost of third‑party API routers accrues in agentic software development and whether the trust placed on these routers creates exploitable gaps that can silently corrupt repository‑level actions. The authors introduce four progressively subtle injection techniques—Response Substitution (L1), Response Append (L2), LLM‑Polished Injection (L3) and LLM‑Polished with Distribution Alignment Injection (L4)—and evaluate them on a curated set of 400 coding tasks using the SIDEL framework. Their experiments reveal that router‑side attacks can produce real, hard‑to‑detect changes to the final code produced by autonomous agents, even when client‑side permission mechanisms are in place. The study demonstrates that without additional provider‑level safeguards, all evaluated agents achieve a zero defense success rate across every injection level. ## Key Contributions - [Finding 1] Router‑side injection can subtly alter the repository‑level actions executed by coding agents, creating a control gap between client‑side permissions and actual behavior. - [Finding 2] The four injection levels increase in sophistication, with L4 delivering the most effective manipulation while remaining difficult to detect through existing defenses. - [Finding 3] All four representative coding agents fail to achieve any defense success without additional mitigations, indicating a systemic vulnerability in current client‑side controls. ## Methodology The authors conducted an empirical study that systematically applies each injection level to a set of 400 curated coding scenarios using the SIDEL framework. SIDEL records every request and response, enables replay of attacks, injects malicious payloads at four distinct levels, and evaluates defense mechanisms such as whitelist‑based execution control and LLM review. The evaluation includes four representative coding agents (e.g., CodeLlama, GPT‑4‑Code) to assess the robustness of each mitigation approach. ## Results Across all injection levels, every agent achieved a 0 % defense success rate, meaning that router‑side attacks consistently bypass client‑side safeguards. Introducing whitelist‑based execution control or reactive LLM review improves resistance but does not fully restore end‑to‑end control; the best observed improvement is still far from complete protection. The study concludes that provider‑level output‑integrity guarantees are necessary to close the trust gap. ## Significance The findings underscore a critical risk in agentic software: third‑party API routers, while convenient for unifying LLM access, can become attack vectors that silently corrupt code generation without detection. This work motivates the development of provider‑side integrity checks and more robust client‑side policies to ensure that autonomous agents produce only intended repository actions. ## Related Concepts - Third‑party API routers: middleware that mediates requests between agents and LLM providers. - Agentic software development: systems where AI agents perform tasks with high autonomy. - Execution control: mechanisms that restrict which code an agent may execute. - Defense success rate: proportion of attacks successfully blocked by a defense mechanism. - Output‑integrity guarantees: assurances from LLM providers that their responses remain unaltered or aligned with intended behavior.