Preflight:针对 Python 依赖的程序级预执行安全验证工具
Preflight: Agentic Last-Mile Verification for AI Software Supply Chains
arXiv 上的新论文 Preflight,专门查 Python 依赖在你自己程序里会不会干坏事。100 个良性包零误报,在 Ultralytics、ctx 等真实攻击里都能抓到,仅 import 检测则完全漏掉。写 Python、管依赖安全的人都该看看这套函数级 harness 的思路。
arXiv 论文 Preflight 提出一种程序作用域的依赖预执行验证方法,专门解决 Python 软件供应链中依赖包在特定应用中如何实际运行的问题。传统 provenance、静态分析和包级行为分析无法判断发布的制品对某个具体程序的行为,Preflight 通过提取应用引用的符号、迭代合成并验证函数级 harness、在受限环境中执行制品并记录行为指纹来给出裁决。
实验覆盖 4 起真实供应链攻击事件下的 5 个应用上下文、100 个良性包语料库,以及函数级与仅导入的消融对比。Preflight 在 4 个事件上下文中返回恶意裁决,在 LiteLLM 客户端上下文中返回干净裁决(因为受影响的 proxy-server 路径未被调用);100 个良性包全部干净,零误报。消融实验显示,在 Ultralytics 和 ctx 两个事件中,函数级 harness 都能暴露恶意行为,仅导入探测则两者都发现不了。
对开发者和企业安全团队而言,这项工作说明把行为验证限定在下游程序上,可以在保持良性工作负载低误报的同时,暴露与安全相关的依赖行为。
Preflight: Agentic Last-Mile Verification for AI Software Supply Chains
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.
This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Preflight, Python, static analysis.
Source attribution: curated from arXiv cs.AI (@Yaman Jandali, Nojan Sheybani, Farinaz Koushanfar, Tara Javidi).