arXiv cs.AI· Donghao Fu, Jingxin Li, Xue Jiang, Yihong Dong·· 4 小时前AI 评分58
第三方 API 路由在智能体软件开发中的代价在哪里
Where Is the Cost of Third-Party API Routers in Agentic Software Development?
AI 导读
论文实证研究了第三方 API 路由在编码智能体工作流中的路由侧注入问题,设置 Response Substitution(L1)、Response Append(L2)、LLM-Polished Injection(L3)和 LLM-Polished with Distribution Alignment Injection(L4)四个递进干预级别。
正文 · 原文
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 this https URL.
| Subjects: | Software Engineering (cs.SE); Artificial Intelligence (cs.AI); Computation and Language (cs.CL) |
| Cite as: | arXiv:2607.23624 [cs.SE] |
| (or arXiv:2607.23624v4 [cs.SE] for this version) | |
| https://doi.org/10.48550/arXiv.2607.23624 arXiv-issued DOI via DataCite |
Submission history
From: Donghao Fu [view email]
[v1]
Sun, 26 Jul 2026 12:15:09 UTC (812 KB)
[v2]
Wed, 29 Jul 2026 14:49:58 UTC (812 KB)
[v3]
Sat, 5 Sep 2026 16:58:45 UTC (812 KB)
[v4]
Tue, 17 Nov 2026 09:43:52 UTC (2,173 KB)
来源:arXiv cs.AI · arxiv.org