REVIEW 27 references
When a third-party API router sits between a coding agent and the model, it can rewrite responses so the agent runs attacker-chosen repository actions that client safeguards never see coming.
Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →
T0 review · grok-4.5
2026-07-30 17:23 UTC pith:VW2ICC6J
load-bearing objection End-to-end evidence that on-path API routers can force 0% defense success on autonomous coding agents; the measurement is real, the generality claim needs tighter bounds.
Where Is the Cost of Third-Party API Routers in Agentic Software Development?
The pith
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Router-side intervention can systematically change what coding agents execute in a real repository while remaining hard for ordinary client-side checks to stop. Across four agents and four increasing-subtlety injection levels, defense success rate is 0% without extra mitigations: the injected tool call reaches execution, so provider output and agent action diverge whenever an untrusted router mediates the path.
What carries the argument
SIDEL, a record–replay–inject harness that freezes provider traces and applies a four-level router intervention taxonomy (L1 full substitution, L2 append, L3 polished rewrite, L4 next-token distribution mixing) so downstream repository actions can be attributed to the delivered response rather than model sampling noise.
Load-bearing premise
That testing agents in their most autonomous permission settings, on three SWE-bench Lite tasks, with a hand-built set of 400 malicious injections, is enough to show existing client-side permission mechanisms fail in real practice.
What would settle it
Re-run the same four agents on a broader set of live multi-repo workflows with default non-bypass permission UX and independently attested provider responses: if injected tool calls are blocked or never executed at high rates once the response path is integrity-checked end-to-end, the claimed practical control gap shrinks or disappears.
If this is right
- High-autonomy coding-agent deployments that route through third-party gateways inherit a device-level integrity risk even when the upstream model is honest.
- Client permission modes alone cannot restore control if they only gate what the agent already received from the router.
- Whitelist and LLM-review gates reduce but do not eliminate successful injection and can block benign tools, so they are incomplete fixes.
- Deployments that need trustworthy repository actions are pushed toward provider-supported output-integrity (signed or attested responses) rather than router-transparent trust.
- Security evaluations of coding agents must treat the response path as an adversarial surface, not only prompts and tool outputs.
Where Pith is reading between the lines
- Enterprises standardizing on one multi-provider gateway may be concentrating supply-chain risk: a single compromised router becomes a universal tool-call injector across every connected agent.
- Distribution-aligned (L4-style) rewriting foreshadows attacks that leave almost no edit boundary for human or LLM reviewers, raising the bar for any purely textual audit.
- The same control-gap logic likely extends beyond coding agents to any tool-using agent whose actions are authorized from an unauthenticated intermediary response.
- A practical next measurement would compare attested direct provider channels against the same agents and payloads to quantify how much integrity guarantees buy in DSR terms.
Editorial analysis
A structured set of objections, weighed in public.
Circularity Check
No significant circularity: empirical DSR measurements do not reduce to fitted inputs or self-defined success criteria.
full rationale
This paper is an end-to-end empirical security study, not a first-principles derivation. The central claim (0% DSR without mitigations across agents, modes, backends, and L1–L4) is defined operationally as Malicious Denied / Total Malicious Samples on observed repository-level executions under SIDEL replay-inject (§4.4.1, Eq. 12), with a fixed 400-sample hand-built payload set and three SWE-bench Lite tasks. That quantity is measured against replayed provider baselines, not predicted from a theory whose parameters were fit to the same outcomes. L4’s mixing weight α=0.75 is an experimental hyperparameter with a separate rewrite-quality appendix (App. B); it does not force attack success by construction. Whitelist and LLM-review mitigations report independent DSR/WBR tradeoffs. Related-work citations support context (malicious routers in the wild, prompt injection) but are not load-bearing uniqueness theorems by the same authors that forbid alternatives. Manual dataset balance and autonomous-mode configuration are scope/external-validity choices, not circular reductions of the headline result to its inputs. No self-definitional loop, fitted-input-as-prediction, or renaming of a known closed-form result appears in the derivation chain.
Axiom & Free-Parameter Ledger
free parameters (4)
- L4 mixing weight α =
0.75
- Injection turn window =
uniform over first 15 turns
- Task instance count =
3 tasks
- LLM review token budget (stage 1) =
64
axioms (5)
- domain assumption Upstream provider is honest and generates per its own safety policies; the only integrity break under study is router-mediated delivery.
- domain assumption The router has authorized application-layer plaintext access to requests/responses (terminates TLS to client and re-originates to provider).
- domain assumption Defense success is correctly operationalized as denying the malicious injected tool call before repository execution (DSR).
- domain assumption Replaying recorded provider traces and injecting on matched turns isolates router effects from upstream sampling noise.
- ad hoc to paper High-autonomy / auto-approve permission settings are the relevant default for measuring practical coding-agent risk.
invented entities (3)
-
SIDEL framework
independent evidence
-
L1–L4 router-side intervention taxonomy (incl. distribution-alignment L4)
no independent evidence
-
400-sample malicious tool-call dataset
no independent evidence
Cite this review
Pith. "Pith review of Where Is the Cost of Third-Party API Routers in Agentic Software Development?." pith.science (2026). https://pith.science/paper/VW2ICC6J
@misc{pith2026260723624,
author = {Pith},
title = {Pith review of: Where Is the Cost of Third-Party API Routers in Agentic Software Development?},
year = {2026},
howpublished = {\url{https://pith.science/paper/VW2ICC6J}},
note = {Machine review of arXiv:2607.23624}
}
read the original abstract
Third-party API routers have become a common layer that unifies access across increasingly diverse LLM providers. In coding-agent workflows, high-autonomy operation is widely adopted because it reduces interaction overhead. As a result, a third-party API router, which sits between the agent and the upstream provider, inevitably occupies the trusted path. It can inspect and modify every request and response, yet no mechanism verifies alignment between the provider's output and the repository-level actions ultimately executed by the agent. Consequently, client-side permission mechanisms may become ineffective in practice. Whether this control gap produces real, hard-to-detect effects on software development tasks remains empirically unmeasured. In this paper, we conduct an empirical study of router-side injection in coding agents, examining four intervention levels of increasing subtlety: Response Substitution (L1), Response Append (L2), LLM-Polished Injection (L3), and LLM-Polished with Distribution Alignment Injection (L4). Moreover, we develop SIDEL, a framework for trace recording, replay, injection, and defense evaluation, with a curated dataset of 400 samples. We evaluate four representative coding agents, and further evaluate whitelist-based execution control and LLM review. Router-side intervention substantially alters repository-level actions and remains difficult for existing client-side safeguards to detect. Without additional mitigations, all evaluated agents achieved a defense success rate of 0 percent across all injection levels. Client-side mitigations and reactive reviews improve resistance but do not fully restore end-to-end control, motivating provider-side output-integrity guarantees. Our code is available at https://github.com/Riyasushin/SIDEL.
Figures
Reference graph
Works this paper leans on
-
[2]
A. Dehghantanha and S. Homayoun. SoK: The attack surface of agentic AI—tools and autonomy. arXiv preprint arXiv:2603.22928,
-
[3]
Y . Dong, J. He, S. Liu, Y . Hou, D. Du, Z. Xu, S. Yu, B. Yang, Y . Xia, and H. Chen. DeltaBox: Scaling stateful AI agents with millisecond-level sandbox checkpoint/rollback.arXiv preprint arXiv:2605.22781,
-
[4]
Y . Du, Z. Li, N. Li, and B. Ding. Beyond data privacy: New privacy risks for large language models. arXiv preprint arXiv:2509.14278,
-
[7]
C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. Narasimhan. SWE-bench: Can language models resolve real-world GitHub issues?arXiv preprint arXiv:2310.06770,
- [9]
-
[10]
P. Li, S. Wang, Y . Huang, Y . Shi, C. Zhang, Q. Li, Y . Lyu, C. Shan, F. Li, C. Feng, C. Zhu, and L. Chen. AgentCanary: A security evaluation framework for autonomous AI agents in real exe- cutable environments.arXiv preprint arXiv:2606.10484,
-
[11]
Q. Lin, X. Ji, S. Zhai, Q. Shen, Z. Zhang, Y . Fang, and Y . Gao. Life-cycle routing vulnerabilities of LLM router.arXiv preprint arXiv:2503.08704,
-
[12]
X. Lin, Y . Liu, Y . Chen, Y . Wu, Y . Ning, Y . Liu, N. Sun, S. Zhang, B. Chong, C. Zhou, and Y . Cao. SafeHarness: Lifecycle-integrated security architecture for LLM-based agent deployment.arXiv preprint arXiv:2604.13630,
-
[13]
H. Liu, C. Shou, H. Wen, Y . Chen, R. J. Fang, and Y . Feng. Your agent is mine: Measuring malicious intermediary attacks on the LLM supply chain.arXiv preprint arXiv:2604.08407, 2026a. J. Liu, X. Zhao, X. Shang, and Z. Shen. Dive into Claude Code: The design space of today’s and future AI agent systems.arXiv preprint arXiv:2604.14228, 2026b. M. Luo, Z. Z...
-
[14]
16 Preprint, July 2026 Y . Mou, Z. Xue, L. Li, P. Liu, S. Zhang, W. Ye, and J. Shao. ToolSafe: Enhancing tool invoca- tion safety of LLM-based agents via proactive step-level guardrail and feedback.arXiv preprint arXiv:2601.10156,
arXiv 2026
-
[15]
Pedro, M
R. Pedro, M. E. Coimbra, D. Castro, P. Carreira, and N. Santos. Prompt-to-SQL injections in LLM- integrated web applications: Risks and defenses. InProceedings of the 2025 IEEE/ACM 47th International Conference on Software Engineering, pp. 1768–1780. IEEE/ACM,
2025
-
[16]
Y . Qu, Y . Liu, T. Geng, G. Deng, Y . Li, L. Y . Zhang, Y . Zhang, and L. Ma. Supply-chain poisoning attacks against LLM coding agent skill ecosystems.arXiv preprint arXiv:2604.03081,
-
[17]
J. Shi, Z. Yuan, G. Tie, P. Zhou, N. Z. Gong, and L. Sun. Prompt injection attack to tool selection in LLM agents.arXiv preprint arXiv:2504.19793,
-
[18]
W. Takerngsaksiri, J. Pasuksmit, P. Thongtanunam, C. Tantithamthavorn, R. Zhang, F. Jiang, J. Li, E. Cook, K. Chen, and M. Wu. Human-in-the-loop software development agents.arXiv preprint arXiv:2411.12924,
-
[19]
K. Tallam. Authorization propagation in multi-agent AI systems: Identity governance as infrastruc- ture.arXiv preprint arXiv:2605.05440,
-
[20]
H. Tang, Y . Yan, J. Lu, H. Liu, and E. Dai. Route to rome attack: Directing LLM routers to expensive models via adversarial suffix optimization.arXiv preprint arXiv:2604.15022,
-
[21]
M. N. Uddin, A. Saeidi, E. Blanco, and C. Baral. LedgerAgent: Structured state for policy-adherent tool-calling agents.arXiv preprint arXiv:2606.20529,
- [22]
-
[23]
C. Xiao, Z. Jiao, S. Wang, W. Wang, B. Zhao, H. Wei, L. Zhang, and L. Qu. Socratic-SWE: Self- evolving coding agents via trace-derived agent skills.arXiv preprint arXiv:2606.07412,
-
[24]
S. Xie, Q. Wu, H. Lu, Z. Sun, Q. Wu, B. Qin, and Q. Wang. The proxy knows too much: Sealing LLM API routers with attested TEEs.arXiv preprint arXiv:2606.16358,
-
[25]
Y . Xie, M. Luo, Z. Liu, Z. Zhang, K. Zhang, Y . Liu, Z. Li, P. Chen, S. Wang, and D. She. Red- teaming coding agents from a tool-invocation perspective: An empirical security assessment. arXiv preprint arXiv:2509.05755,
-
[26]
J. Yang, C. E. Jimenez, A. Wettig, K. Lieret, S. Yao, K. Narasimhan, and O. Press. SWE- agent: Agent-computer interfaces enable automated software engineering.arXiv preprint arXiv:2405.15793,
-
[27]
W. Zhang, H. Xu, Z. Wang, Z. Li, Z. He, X. Wei, and K. Ren. RerouteGuard: Understanding and mitigating adversarial risks for LLM routing.arXiv preprint arXiv:2601.21380, 2026a. Y . Zhang, X. Deng, J. Wu, Y . Xiao, K. Xu, and Q. Li. AgentWard: A lifecycle security architecture for autonomous AI agents.arXiv preprint arXiv:2604.24657, 2026b. Y . Zhang, Y . ...
arXiv 2026
- [2023]
-
[2024]
J. Kim, X. Liu, Z. Wang, S. Qiu, B. Li, W. Guo, and D. Song. The attack and defense landscape of agentic AI: A comprehensive survey.arXiv preprint arXiv:2603.11088,
-
[2025]
R. Fahey. CacheProbe: Auditing prompt cache isolation in gateway APIs. InProceedings of the 2026 IEEE Symposium on Security and Privacy Workshops (SPW), Secure Agents for Generative Artificial Intelligence (SAGAI). IEEE,
2026
-
[2026]
I. Bouzenia and M. Pradel. Understanding software engineering agents: A study of thought-action- result trajectories.arXiv preprint arXiv:2506.18824, 2025a. I. Bouzenia and M. Pradel. You name it, i run it: An LLM agent to execute tests of arbitrary projects. arXiv preprint arXiv:2412.10133, 2025b. C. Bühler, M. Biagiola, L. Di Grazia, and G. Salvaneschi....
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.