arXiv cs.AI· Yanju Chen, Ying Li, Bosi Zhang, Hanzhi Liu, Hongbo Wen, Yufei Ding, Yuan Tian, Yu Feng·· 3 小时前AI 评分55
Apsis:部署前静态检测智能体工作流缺陷的安全分析器
Automated Safety Analysis for Agentic Workflows
AI 导读
论文提出静态安全分析器 Apsis,在部署前检测智能体工作流的设计缺陷。它把框架代码提升为统一中间表示,将常见失败模式形式化为声明式规则进行匹配。基于从 13 个主流框架的真实报告提炼的缺陷语料,Apsis 达到 91% 精确率和 84% 召回率,并发现 36 个此前未知的真实工作流缺陷。
正文 · 原文
Abstract:LLM applications are increasingly built as agentic workflows: programs that combine model calls, external tools, and control logic to act autonomously on a user's behalf. Because these workflows execute real-world actions, logical flaws in how a workflow is wired can cause severe harm in deployed systems. Unlike prompt injections or malformed API calls, these workflow bugs stem from defects in the workflow's design, yet no existing tool can statically validate workflow logic across frameworks prior to deployment. We present Apsis, a static safety analyzer that detects workflow bugs before deployment. To operate across frameworks, Apsis lifts framework-specific code into a common intermediate representation (IR). This IR models a workflow as a semantic graph of steps, data dependencies, and shared state, while annotating each component with behavioral properties such as whether an input is mandatory or how a shared channel merges concurrent writes. Building on this representation, we introduce a bug description language that formalizes recurring classes of agentic failures as declarative patterns over the IR. By matching these patterns against the IR, Apsis detects structural and behavioral flaws and pinpoints the exact step responsible for each bug. To evaluate Apsis, we construct, to our knowledge, the first corpus of workflow bugs, distilled from real-world reports across 13 widely used frameworks. On a reproducible benchmark suite drawn from this corpus, Apsis detects workflow bugs with 91% precision and 84% recall, and uncovers 36 previously unknown bugs in real-world workflows.
| Comments: | Extended version of the paper accepted at ICSE 2027, with appendices |
| Subjects: | Software Engineering (cs.SE); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2611.28469 [cs.SE] |
| (or arXiv:2611.28469v2 [cs.SE] for this version) | |
| https://doi.org/10.48550/arXiv.2611.28469 arXiv-issued DOI via DataCite |
Submission history
From: Yanju Chen [view email]
[v1]
Sat, 21 Nov 2026 01:42:07 UTC (40 KB)
[v2]
Thu, 26 Nov 2026 03:16:33 UTC (41 KB)
来源:arXiv cs.AI · arxiv.org