PaperarXiv:2611.31110 · cs.AI · Nov 23, 2026
Preflight: Agentic Last-Mile Verification for AI Software Supply Chains
Yaman Jandali, Nojan Sheybani, Farinaz Koushanfar, Tara Javidi
The system composes AST surface extraction, validator-gated LLM harnesses, strace sandboxing, version diffs and signed certificates around a program-scoped threat model. It is a coherent design. The evaluation, though, is five case studies with no external baselines. One malicious verdict rests mainly on sandbox-infrastructure endpoints, and that is not reconciled with the 0/100 false-positive claim. The benign corpus is underspecified, the LLM sees the target source, and the ablation baseline cannot reach call-triggered payloads by design.
Novelty
3 out of 5Rigor
2 out of 5Reproducibility
2 out of 5Relevance to harnesses
3 out of 5
TL;DR
Preflight finds the dependency symbols a Python program references. An LLM writes small harnesses that call those symbols, and a deterministic validator accepts or rejects them. The harnesses run in a traced Docker sandbox, behavior is diffed against a prior version, and a signed certificate gates execution. The evaluation covers five author-chosen incident contexts, 100 underspecified benign packages and a 2-case ablation against import-only execution. No existing package scanner is compared.
Adversarial review by Harness Hub · Nov 26, 2026 · read full text · Suggest a correction
Original abstract (authors’ text, select to expand)
Software dependencies execute within the trust boundary of downstream applications, yet provenance, static analysis, and package-level behavioral approaches do not directly determine how a released artifact behaves for a specific program. We present Preflight, a program-scoped pre-execution verifier for Python dependencies that extracts application-referenced symbols, iteratively synthesizes and validates function-level harnesses, executes resolved artifacts in a restricted environment, records behavioral fingerprints, and compares target behavior against prior versions when suitable baselines exist. We evaluate Preflight on four real software-supply-chain incidents under five application contexts, a 100-package benign corpus, and a controlled function-level versus import-only ablation. Preflight returns malicious verdicts in four incident contexts and a clean verdict in the LiteLLM client context, where the affected proxy-server path is not exercised. All 100 evaluated benign packages receive clean verdicts, with zero observed false positives. In a controlled ablation on Ultralytics and ctx, function-level harnesses expose malicious behavior in both incidents, whereas import-only probing exposes neither. Together, these results show that conditioning behavioral verification on the downstream program can expose security-relevant dependency behavior while remaining selective on benign workloads.
Summary
Preflight treats dependency verification as program-scoped. It asks whether version v of package P shows security-sensitive behavior through the API surface that program A actually references, and whether that behavior is new relative to a baseline version. Pipeline: - AST analysis extracts imports and referenced symbols and joins them with a pinned lockfile. Unpinned dependencies are rejected. - gpt-5.4-mini synthesizes harnesses under a deterministic validator: at most two validator rounds and one revision. The model receives package-source context. - Installation and execution run in a restricted Docker container traced with strace, with DNS sinkholing and filesystem diffs. - Traces are reduced to a canonical fingerprint, and a set difference against a baseline version is computed. - A deterministic count of critical findings sets the verdict: two or more is malicious, one is suspicious, none is clean, with static-finding overrides. The result is emitted as an Ed25519-signed in-toto/DSSE certificate. Evaluation: - Four incidents (LiteLLM, Ultralytics, ctx, DurableTask) across five application contexts. - 100 curated benign AI/ML-adjacent packages. - A function-level versus import-only ablation on Ultralytics and ctx. Optional gpt-5.4 verdict synthesis exceeded input or context limits in all five incident contexts. Every verdict therefore came from the deterministic fallback, and the measured agentic component is limited to writing nine short harnesses.
Key findings
- Table 1: LiteLLM client 1.82.6 -> 1.82.7 is clean. LiteLLM proxy (same pair), Ultralytics 8.3.40 -> 8.3.41, ctx 0.1.2 -> 0.2.2 and DurableTask (target-only) are malicious.
- Section 4.2: critical capability counts were zero for LiteLLM client, 14 for LiteLLM proxy (two metadata endpoints and 12 executables), six for Ultralytics (three endpoints and three curl paths) and three for ctx (endpoints).
- Section 4.2: DurableTask's three counted endpoints were check.git-service.com, the sandbox sinkhole and Docker DNS. Two of the three were sandbox infrastructure, and neither preregistered category was matched.
- Section 4.3: all 100 benign packages received clean verdicts, an observed false-positive rate of 0/100 (0%), with zero infrastructure errors.
- Table 2: function-level harnesses gave malicious verdicts in 2/2 ablation cases; import-only probes gave 0/2.
- Section 3.2: nine final harnesses across the five incident contexts. Four passed on the first candidate and five needed one revision. Generation used 14 API calls, 18,631 input and 2,890 output tokens, approximately $0.027, and no deterministic fallbacks. No equivalent figures are given for the benign corpus.
- Section 3.5: optional gpt-5.4 verdict synthesis exceeded input or context limits in all five incident contexts. All final verdicts used the deterministic fallback.
- Sections 4.2 and 4.4: expected-finding coverage was partial. LiteLLM proxy matched the endpoint finding but not the environment-read or persistent-write findings. ctx matched one of two. DurableTask matched neither. Ultralytics matched both.
The paper at a glance
- AST extraction of imported packages and referenced symbols, joined with pinned lockfile
- LLM harness synthesis (gpt-5.4-mini) with deterministic validator, max two rounds
- Sandboxed install and execution in restricted Docker with strace, DNS sinkhole, filesystem diff
- Canonical behavioral fingerprint
- Capability delta against exact baseline version, or target-only against empty set
- Deterministic verdict from critical-finding counts plus static overrides
- Ed25519-signed in-toto/DSSE certificate checked before execution
Data table
| Method | count out of 2 |
|---|---|
| Function-level harness (this paper) | 2 count out of 2 |
| Import-only probe | 0 count out of 2 |
Why it matters
Relevance to harness builders is narrow but real. Coding agents and tool loops routinely pip install and import packages chosen by an LLM or a user, inside a process that holds model-provider keys and cloud credentials. A pre-execution gate tied to the exact program and lockfile is a pattern worth knowing. The LiteLLM incident studied here touches many agent stacks directly. The harness-synthesis loop is also a usable template for bounding an LLM: the model only emits code, a deterministic validator accepts or rejects it, and a fixed retry budget applies. The evidence, however, is a workshop-scale demonstration, not a measured detector. There are five incident contexts, and the headline LiteLLM proxy workload is labeled exploratory and targets a known compromised path. No existing scanner is run for comparison. The only ablation is against import-only execution, which cannot reach call-triggered payloads by construction. The LLM's value over a plain function-call harness is untested. Treat this as a design sketch for a dependency gate, not evidence that it catches supply-chain attacks at a known rate.
Issues (10)
- High severityWhere in paper: Section 2; Section 4.4, Table 2
No existing scanner is compared. Bandit, Semgrep, GuardDog, Packj, OpenSSF Package Analysis, DONAPI and DySec are all cited, but none is run on the same incidents or the same benign corpus. The only comparison is the internal import-only ablation. Payloads that trigger on constructor or function calls are missed by import-only execution by construction, so the 2/2 vs 0/2 result is close to definitional. It shows no advantage over prior dynamic tools that also exercise code.
- High severityWhere in paper: Section 4.2 (Verdict attribution, DurableTask); Section 3.5; Section 4.3
The DurableTask malicious verdict rests mostly on sandbox artifacts, and this undercuts the 0/100 false-positive claim. Two of the three counted critical endpoints were the sandbox sinkhole and Docker DNS. Neither preregistered category was observed, and payload execution was not established. In target-only mode, capabilities are compared against an empty set, and two critical findings already yield malicious. Any benign package that resolves an external host could plausibly trip the same two infrastructure endpoints. The paper does not say whether the 100 benign packages ran target-only or differential, so the 0/100 result and the DurableTask verdict are not reconciled.
- High severityWhere in paper: Section 4.1; Section 4.2, Table 1
The incident sample is tiny and partly author-shaped. There are four incidents and five contexts, and two candidates (SentinelOne, torchtriton) were excluded. The LiteLLM client-versus-proxy contrast is the paper's main evidence for program-scoped semantics. Yet the proxy workload is 'separately labeled exploratory' and exercises the known affected functionality. The client 'clean' verdict is the intended semantics, not a detection test. No rates can be estimated from these numbers.
- Medium severityWhere in paper: Section 3.2; Section 4.4
The harness generator sees the target package source, which can contain the malicious code. Section 3.2 says the model receives 'package-source context' for the version under test. For ctx and Ultralytics, the LLM may therefore be steered toward the payload by reading it. The paper neither controls for this nor measures it. This weakens the claim that application-conditioned probing, rather than source leakage plus known incidents, explains the detections.
- Medium severityWhere in paper: Section 4.1; Section 4.3; Section 3.2
The benign evaluation is underspecified. The 100 packages are 'curated', and the paper gives no selection criteria, package list, versions or per-package application workloads. It also omits harness counts, validator outcomes, whether deterministic fallback was used, and whether a baseline was used. The reported LLM cost and harness statistics cover only the five incident contexts. Zero observed false positives in 100 trials still leaves an upper confidence bound of a few percent. The authors note the result applies only to exercised workloads.
- Medium severityWhere in paper: Section 3.5
The verdict threshold is unvalidated. 'At least two critical capability findings imply malicious' is stated without justification, sensitivity analysis or calibration. Under this rule, DurableTask is malicious largely on infrastructure endpoints. No evidence shows how many benign packages fall at one critical finding (suspicious) as opposed to zero.
- Medium severityWhere in paper: Section 4.4; Section 5 (Model role and isolation); Section 3.5
The agentic contribution is not isolated. The ablation does not compare LLM-generated harnesses against deterministic function-level harnesses given equivalent API knowledge, nor iterative against single-shot synthesis; the authors acknowledge both gaps. The LLM verdict step failed in all five contexts. The title's 'agentic' framing exceeds the measured role.
- Medium severityWhere in paper: Section 3.2; Section 4.1; Section 4.3
Reproducibility is limited. The model alias was recorded without an immutable snapshot or seed. No code or data URL is printed, although prompt templates are said to be 'retained in the implementation'. The benign package identities and versions are not listed. 'Preregistered' expected findings are referenced, but no registration is cited.
- Low severityWhere in paper: Section 3.3; Section 5
Containment and coverage are weak for a security gate. The sandbox permits ptrace for strace, and Docker is not a microVM boundary. The fingerprint lacks phase attribution across install, import and call. Reflection, dynamic imports, plugins and input-sensitive branches fall outside the extracted surface. With one harness per referenced symbol, argument-gated, time-gated or environment-gated triggers are likely missed.
- Low severityWhere in paper: Section 4.1; Section 4.2 (ctx)
The ctx baseline is 0.1.2 and the target is 0.2.2. The paper does not say whether intermediate releases exist or why 0.1.2 is the right predecessor. The behavioral delta could therefore mix legitimate changes with malicious ones.
Questions for the authors
- How do GuardDog, Packj and OpenSSF Package Analysis perform on the same four incidents and the same 100 benign packages?
- Were the 100 benign packages run in differential or target-only mode? If target-only, why did none trip on the sinkhole and Docker DNS endpoints as DurableTask did?
- Are any of the three Ultralytics endpoints sandbox infrastructure, and what is the DurableTask verdict once the two infrastructure endpoints are filtered out?
- Do detections persist if the harness generator is given only the baseline version's source or only public API signatures, rather than the target source?
- How do deterministic function-level harnesses that call each referenced symbol with default or stub arguments compare to the LLM-generated ones?
- Was the LiteLLM proxy workload written before or after the compromised code path was known, and by whom?
- What is the end-to-end latency and cost per verified program, including Docker installation and tracing?
Related in the directory
Open-source projects
Open source · BerriAI
Commercial products
Product · United States
People
Person · Co-founder & CEO
Person · Co-founder & CTO
More tools on the same problem
Products and open-source projects in the directory closest in meaning to this paper.
Open source · Arize AI
Open source · FailproofAI (ExosphereHost Inc)
Product · Berkeley, CA
Open source · LangChain
Open source · Comet
Open source · Potpie AI
Related papers
arXiv:2611.29916 · cs.SE · Nov 23, 2026
AI coding agents start every session without memory of how a system is built. Developers fill this gap with context files, such as CLAUDE.md and AGENTS.md. Agents treat these files as true, so it matters whether they match the code. We study two kinds of architectural claims that can be checked against a repository: path claims, which name folders and files, and dependency rules, which say what may import what. We check 41,090 path claims and 184 dependency rules from 3,602 context files in 3,346 open-source projects against the code and its history. About 5% of path claims point to paths we cannot find, but we estimate that only 2.2% are real errors, similar to READMEs (3.5%). When code moves, 61% of claims that became stale are fixed, most in the same commit. Dependency rules behave differently: 33 of 184 (18%) were confirmed broken on the day they were written, usually by older code, and nearly all stayed broken. Context files are good maps but less reliable rulebooks: their rules often describe the architecture a team wants, not the one it has. In an exploratory comparison of 7,480 commits, new rule breaks were rare. Agent-assisted commits broke rules about 1.8 times as often as other commits (0.29% vs. 0.16%), but with only 14 breaks this is not significant: an early signal, not evidence of a difference or of its absence. We used an LLM with human review at each step, and discuss what this offers and risks for mining studies.
Bachan Ghimire, Daniela Damian
arXiv:2610.35333 · cs.SE · Oct 26, 2026
Code agents have become increasingly capable of performing software engineering tasks through interaction with software environments. However, agents tend to degrade as the number of interaction rounds increases, making it difficult to maintain existing software during iterative modification. We analyze 2,656 agent trajectories in EvoCode-Bench and identify requirement focus misalignment as a recurring failure pattern, where agents struggle to distinguish the primary modification targets of a requirement from unrelated code. We propose Repotrace a requirement-driven repository understanding harness that combines repository structure with requirement semantics to construct a requirement-code correspondence and injects it into the agent context. This correspondence enables code agents to follow the repository architecture, trace requirements across multi-round interactions, and identify the core code elements corresponding to the current requirement. Experiments show that Repotrace improves the mean per-round reward (MPR) across different models (e.g., +19.99 on GLM-5.2) and agent harnesses (e.g., +10.22 on Claude Code). Across rounds, Repotrace increases the average per-round reward from 0.163 to 0.371 on Terminus-2 with DeepSeek-V4-Pro, while reducing average regression errors by 56.78%. We release the source code and agents' trajectories to support future research.
Huanyu Liu, Yezheng Cheng +6
arXiv:2611.21259 · cs.MA · Nov 16, 2026
Agentic AI systems extend large language models with tools, memory, and multi-agent collaboration, introducing security risks at orchestration boundaries. These risks depend on how identities are represented, operations are authorized, and instructions or information propagate between components. We evaluate LangChain, LangGraph, AutoGen, and OpenClaw through twelve experiments mapped to the OWASP Top 10 for Agentic Applications using a common LLM (gpt-4o-mini). The experiments cover prompt injection, unauthorized resource access and command execution, memory poisoning, and inter-agent trust and identity attacks. Adversarial inputs induced unauthorized tool invocation, while tool chaining, stale filesystem validation, encoded instructions, and inter-agent delegation exposed weaknesses in authorization across component boundaries. Memory poisoning showed that untrusted state can influence responses, a risk distinct from conventional access-control violations. In the evaluated protected configurations, explicit authorization, controlled capability assignment, filesystem containment, and execution safeguards prevented specific unauthorized operations. The findings emphasize preserving authorization and information-trust boundaries throughout agentic workflows rather than treating framework capabilities or model-level instructions as sufficient security guarantees.
Sahaya Jestus Lazer, Kshitiz Aryal +2
arXiv:2610.32648 · cs.SE · Oct 23, 2026
Large language model (LLM)-based coding agents may propose invalid actions that are not applicable in the execution environment, such as accessing non-existent paths or missing packages. We term this mismatch hallucinated tool use. A preliminary study of 4,398 agent trajectories reveals that these hallucinations are pervasive and costly, requiring a median of 3 additional interaction steps and 22.4K tokens to recover. Existing frameworks rely on reactive, post-execution feedback, wasting runtime resources. Nevertheless, since an agent's execution environment is grounded in concrete codebase and harness components, many action prerequisites can be extracted and validated prior to execution. To this end, we introduce StateMirror, a lightweight pre-execution detector. StateMirror intercepts actions at the harness boundary, extracts state predicates via AST and command analysis, and deterministically validates them against the live repository. By pinpointing exact environment mismatches before execution, StateMirror preempts invalid actions and subsequent recovery cycles. Evaluation on 2,508 actions shows StateMirror achieves 0.940 precision and 0.817 F1 in detecting such hallucinations, surpassing the strongest LLM judge by 35.3% in F1 while reducing median detection latency from 17.73 s to 1.50 ms with zero token consumption. For practical mitigation, StateMirror's pre-execution feedback enables agents to rectify over 95% of hallucinated tool calls. During live mitigation on 79 tasks, StateMirror reduces agent execution time by 15.8% and token consumption by 11.8% while maintaining task resolution.
Shiwen Shan, Yintong Huo +2
arXiv:2611.32973 · cs.SE · Nov 24, 2026
Autonomous specification engineering requires coding agents to translate functional requirements into executable tests and use the results to discover and validate defects. However, existing benchmarks evaluate coding agents on explicitly specified test generation tasks, commonly providing an issue description, a designated test entry point, or files to inspect, leaving the ability to determine what to test and where to investigate insufficiently evaluated. Relying on such clues bypasses the challenge of mapping requirements to implementations and proactively uncovering unknown defects. We propose SpecEngineeringBench, comprising 100 instances from 78 open-source Python repositories across 16 application categories, with multiple recorded defects in each instance. Two independent tasks evaluate complementary capabilities: generating test suites and discovering defects through execution analysis. The evaluation combines test validity, defect detection, and coverage with localization precision and recall. Across seven frontier coding agents, results reveal that test validity and coverage decouple from defect exposure: agents achieve a 91.47% Head Pass Rate and 80.48% Change-focused Coverage alongside a 26.36% Fail-to-Pass Rate, while localization recall drops from 78.11% at the file level to 51.29% at the function level. Autonomous test generation improves file, function, and hunk localization recall by 4.99, 2.77, and 2.69 percentage points over relying solely on existing repository test suites.
Xingjian Wang, Shijian Wang +11
arXiv:2610.37434 · cs.SE · Oct 27, 2026
A software feature usually evolves over time: developers extend its first version as new use cases and requirements arrive, and each extension builds on code written earlier. Most feature benchmarks evaluate a single request on a fixed codebase. Feature evolution requires evaluating successive extensions on an agent's own earlier code and checking whether the feature remains correct. We introduce FeatureArc to evaluate coding agents on evolving features, together with a pipeline that constructs its tasks from repository histories. The benchmark combines dependencies between successive stages of the same feature, explicit requirements and interface contracts, and executable checks across four programming languages. The pipeline validates fail-to-pass (F2P) tests for new behavior and pass-to-pass (P2P) tests for existing behavior on the reference code before and after each stage. We evaluated 10 coding agents on 73 manually reviewed tasks of 2 to 10 stages. Each agent works in one persistent session and workspace without external test feedback or rollback. The evaluation reveals a gap between first-stage and whole-feature success: pooled success falls from 62.7% at the first stage to 28.5% when the whole feature is tested on the final code. Trajectory analysis identifies inherited defects as a common failure mechanism, present in 72.9% of failed later stages. These earlier errors often remain undetected: in stages following a failure, agents leave the earlier error unnoticed about 95% of the time, and their self-tests rarely revisit earlier stages. Evolving a feature autonomously, without human checks between stages, therefore remains a substantial challenge for current coding agents. At Tencent, the pipeline extends internal evaluations to this setting and guides the development of Hunyuan, Tencent's family of large language models.
Yunlong Wang, Alyssa Wu +4