Manuscript Offprint

arXiv:2609.07754

Do AI Coding Assistants Check Before They Install? A Pre-Registered Demand-Side Audit of Trust Signals in the Research Software Supply Chain

Pengyin Shan

ABSTRACT

AI coding assistants now select, install, and configure software as part of ordinary development work, and attackers have exploited that position through invented package names, compromised maintainer accounts, and manipulated repository text. In response, the software supply-chain community has developed machine-checkable trust signals that allow consumers to verify where software comes from. These include software bills of materials (SBOMs), signed releases, build provenance attestations, and declared official distribution channels, some of which are now required by regulation. However, whether AI coding assistants read or act on those signals when they are present has not been measured for any of these signal classes on research software. We pre-registered and ran a controlled study on six open-source research software projects, three from high-performance computing and three from quantum computing, drawn by a seeded, screened procedure from an 87-project corpus, and we deposited the protocol, seed, panel, and analysis plan with a DOI before any trial. For each project we created nine modified copies: one with no signal, one per signal class, two with a signature or attestation from the wrong issuer, one with all four signals, and one reproducing documented conflicts in the project's own metadata. We ran three models under two ways of operating an assistant, with and without an approval step, for 1,920 registered trials, plus a smaller supplement on three frontier models. We scored what each trial did from container logs rather than from what the assistant said, and we recorded the cost of every trial. We found that verification was rare under every condition. In 9 of 1,920 registered trials (0.5%) the assistant opened any provenance signal before installing, and in 0 of 384 control trials, and no trial in any model ran a verification command. Signal presence therefore had no measurable effect (registered fallback test, p = 0.50). We drew three conclusions: publishing provenance signals is necessary but not sufficient, because the assistants we measured did not read them, whether the signals were valid, forged, combined, or contradicted by the project's own metadata; price did not buy verification, as the model that verified most often costs 0.10 US dollars per trial, and the most capable model, at 1.00 US dollars per trial, verified nothing; verification has to be built into the program that runs the assistant, because neither the model nor the approval step supplied it. We release the full per-trial cost ledger, the deposited protocol, and every log.

Keywords software supply chain · provenance · AI coding assistants · research software · software bill of materials · signed releases · build attestation · pre-registered measurement · cost accounting

1 Introduction

When an AI coding assistant installs a package for a researcher, does it check where that package came from? We measured this on research software and found that it rarely does. We ran 1,920 pre-registered trials, where a trial is one session in which an assistant receives a copy of a project and is asked to install it, across six real projects, three models, and two ways of running them. In 9 of those trials, the AI coding assistants (from here on, assistants) opened a signature, attestation, software bill of materials, or channel declaration before installing the software. In none of the trials did an assistant actually check or verify any of these trust signals. This paper reports that measurement, the instrument we built to produce it, and what it cost.

The question matters because assistants often sit where software enters a project. They resolve dependencies, run installations, and edit build files inside production tools used at scale, and attackers have already exploited that position. Code-generating models can emit plausible but nonexistent package names at measurable rates, and registering one of those names can then turn the hallucination into an attack. The npm ecosystem compromise that CISA reported as "Widespread Supply Chain Compromise Impacting npm Ecosystem" (September 23, 2025) spread through maintainer accounts and automation [1] and follow-on campaigns through 2026 carried the pattern to other ecosystems. On the other side, public policy has started to respond to these attacks. The EU Cyber Resilience Act requires a software bill of materials (SBOM) in a machine-readable format, with reporting obligations from September 2026 [2]. NIST's Center for AI Standards and Innovation launched an agent security and identity standards initiative [3]. OWASP's Top 10 for Agentic Applications names supply-chain and provenance failures among its categories [4], and joint Five Eyes guidance urges careful adoption of agentic AI services [5].

The defenses from the cybersecurity community do exist, usually through a form of information that a project publishes about its software. For example, a signed release is a release artifact accompanied by a cryptographic signature, so that anyone holding the project's published key can confirm the artifact is the one the maintainers produced. A build provenance attestation is a signed statement, produced by the build system, recording which source and which builder produced an artifact. A software bill of materials (SBOM) lists the components an artifact contains. A channel declaration is a statement, usually in a project's SECURITY.md file, of which communication channels and identities speak for the project. They all have established infrastructure support: Sigstore provides signing for released artifacts [6], SLSA grades build provenance [7], OpenSSF Scorecard scores repository practice [8], and SBOM formats are standardized and increasingly mandated, though adoption studies find practice uneven [9]. All of these concern what a project publishes. We call that the supply side. Two earlier measurements by the present author show that the supply is thin on research software: In a hand-verified set of 30 HPC and quantum-computing projects, 2 published signed releases, 1 carried an attestation, and none published an SBOM [10]. Across 117 projects, citation metadata published in different places disagrees in 83.9% of cases where it can be cross-checked [11].

However, publishing signals is only half of a trust mechanism. The other half is consumption: whether whatever decides to install a package reads the signals first. We call that the demand side, and it is unmeasured. The nearest prior measurement studied whether production coding agents detect install-time attacks, using package name, source, and version cues on mainstream registry packages, and found that detection depends on the program that runs the model as much as on the model itself [12]. We know of little published work that measures whether assistants read or act on the positive, defense-side signals above at install time, on research software or anywhere else. Our own observational pilot on research software pointed the same way. Assistants referenced an official-channel statement in 0 of 60 decision traces, although six of the ten pilot projects published one, and hiding a single piece of evidence changed the decision in 9 of 80 runs, including 4 changes toward installing [13]. This paper supplies the controlled measurement as the demand-side companion to the supply-side audit [11]. The supply side measures what research software declares. This study measures what assistants do with those declarations when they are unambiguously present, absent, forged, or self-contradictory.

This paper contributes:

  • A pre-registered instrument. We froze the complete protocol (hypotheses, project screening rules, seeded draw, nine-condition matrix, harnesses and models, outcome definitions, analysis plan, exclusion and stopping rules) and deposited it with a DOI before any experimental run (10.5281/zenodo.22062503, deposited 2026-08-22, first trial 2026-08-30). We record every departure from it in a released deviations log.

  • A controlled demand-side measurement on research software. A signal-injection study over 6 HPC and quantum-computing projects, 9 conditions, 2 ways of running the assistant, and 3 models (1,920 registered trials), with a three-model frontier supplement, in which we score what each trial did from the container's logs rather than from what the assistant said about itself.

  • A complete cost accounting. Every trial carries its token counts, its cost computed against a rate card frozen with the protocol, and its wall-clock time. We report cost per verification-positive trial for each model and release the full ledger, so that the cost of verification is measured rather than assumed.

  • Released artifacts. We release the protocol, the tooling, the modified project copies or their generators, the raw transcripts, the uncoded coding sheet with coded outcomes and an agreement statistic to follow in the next version, and the cost ledger (Section 8).

References (27)