← Lab /AI/ML

Program-scoped pre-execution verifier detects malicious Python dependencies without false positives

Preflight can identify malicious behavior in supply-chain incidents while producing no false positives on benign packages

AI/ML arXiv 23 Nov 2026 Method Prototype evidence

Published as “Preflight: Agentic Last-Mile Verification for AI Software Supply Chains”

Why it matters

Preflight can be deployed as a pre-execution gate to block malicious dependencies with negligible false-positive risk for typical AI/ML workloads.

Summary

Preflight detects malicious behavior in four real supply-chain incidents while producing zero false positives on a 100-package benign corpus, and a function-level harnessing approach reveals attacks that import-only probing misses; the evidence comes from four incidents across five application contexts, a 100-package evaluation, and a controlled ablation, but the paper does not provide a full threat model or scalability analysis beyond these cases.

What they found 2

  1. Preflight returns malicious verdicts in four incident contexts and a clean verdict for the LiteLLM client workload.

    “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.”

  2. All 100 evaluated benign packages receive clean verdicts with zero false positives.

    “All 100 evaluated benign packages receive clean verdicts, with zero observed false positives.”

Caveats 5

  • DurableTask’s target-only malicious verdict is issued without a benign predecessor, so the system cannot establish that the malicious behavior is newly introduced by the version change.
  • Reflection, dynamically constructed imports, callbacks, plugins, input-sensitive branches, and environment-dependent behavior can fall outside the extracted or exercised surface.
  • The current canonical representation does not provide complete phase attribution among installation, import, and explicit API execution.
  • Target-only cases such as DurableTask support claims about observed behavior but not about capabilities newly introduced by a particular version.
  • The ablation isolates function-level versus import-only execution. It does not establish an advantage of LLM-generated harnesses over deterministic function-level harnesses supplied with equivalent API knowledge.

What’s new here 4

  • Program-scoped verification that ties the decision to the downstream application’s referenced API surface.
  • Automated synthesis of function-level harnesses using a bounded LLM loop to exercise those symbols.
  • Behavioral fingerprinting with version-differencing to detect newly introduced capabilities.
  • Signed pre-execution certificates that bind the verdict to the specific program and dependency state.