arXiv(opens in a new tab)cs.SESep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.07360

Scanning the Harness: An Empirical Study of Supply-Chain Defects in AI Coding-Agent Configurations

Benjamin Kapner, Carmel Soceanu, Alicia Petrunin, Hofni Gartner

Abstract

AI coding agents such as Claude Code, Cursor, GitHub Copilot, and OpenAI Codex are configured through persistent artifacts that developers write and share: instruction files, skills, commands, hooks, MCP server declarations, and subagent definitions. This harness is a dependency layer. It is installed from marketplaces and public repositories, runs with the developer's privileges, and persists across sessions, yet it has no lockfile, no install-time check, and no vocabulary for what a component may do. We study this surface over 3,171 public GitHub repositories: 2,660 setups that assemble two or more component types, and 511 published skill collections. We measure only rules whose condition is decidable from bytes and whose consequence is a security exposure, a configuration that cannot work as written, or a departure from the Agent Skills specification, and we validate every finding before it counts: a second implementation of each rule re-derives it from the repository at its pinned commit (8,547 findings), a language-model adjudicator with a released prompt rules on every disagreement, and a second, independent model session outside the pipeline re-checked every counted pair against the repository and the current platform documentation; no human scoring of the verdicts has been done. Three security classes survive validation. 9.8% of setups install an MCP server with no version pinned, the pattern that vendor documentation shows; 3.1% pre-approve arbitrary command execution behind a scoped-looking grant such as Bash (python: *); and 3.8% carry a skill that pre-approves the shell for whoever installs it. Together 16.0% of setups carry a security defect, 0.8% a configuration that cannot work as written, 2.4% a skill outside the specification that Claude Code nevertheless loads; 16.7% of setups carry a confirmed defect and 18.4% a confirmed finding of any class, against a raw instrument rate of 25.5% on the same rules. The first two classes appear only when components are assembled into a setup; the third ships inside published skills, in 3.7% of collections, where a marketplace scan can see it. Every rule that survives reads one file and the tree around it; the rules that compare two files re-derive at the same rate but detect differences that are usually intended, and we report them as observations. The credential exfiltration path that motivated the instrument has no confirmed instance. Two consequences the instrument stated turned out to depend on the platform version, and we report them as such. The instrument, corpus manifest, adjudication prompt, per-finding verdicts, and the independent reading are released.

CCS Concepts

  • Security and privacy → Software and application security;
  • Software and its engineering → Software verification and validation.

References (13)