Agent 与自动化 4.0 · 优秀 2026-11-10 · 论文

From Attack Surface to Defense Architecture: Compositional Security for Agentic Coding Harnesses

论证 agentic coding harness 的安全是架构与权限组合的结构属性:harness 接上 shell文件系统与网络后成为自动化 LotL 平台,注入指令即可把 bashcurl 等双用途二进制变成载荷正则黑名单挡不住结构性绕过,LLM 评审护栏延迟高且误伤提出 ActiveSecHarness 神经符号引用监控:四环 HMAC 能力令牌二维污染格与工作区溯源账本Ring-0 确定性系统护栏与分叉审计日志;252 个样本上 Ring-0 全拦截零误报,单步约 12.7 微秒,比本地 LLM 评审快 11200 倍

打开原文回到归档

From Attack Surface to Defense Architecture: Compositional Security for Agentic Coding Harnesses

  • ID: b61856a4
  • 原文链接: https://arxiv.org/abs/2611.13960
  • PDF: https://arxiv.org/pdf/2611.13960v1
  • 作者: Simon Hegelich, Bardh Prenkaj, Habiba Sarhan, Morteza Shahrezaye, Kolja Hegelich, Christian Montag, Ralf Schneider, Erik Cambria
  • 日期: 2026-11-10
  • 更新: 2026-11-10
  • 分类: agents
  • 来源类型: paper
  • 标签: security, agents, harness, prompt-injection, reference-monitor, capability-tokens, taint-analysis
  • 质量评分: 4/5
  • 抓取时间: 2026-11-13T12:21:36+00:00

中文导读

论证 agentic coding harness 的安全是架构与权限组合的结构属性:harness 接上 shell文件系统与网络后成为自动化 LotL 平台,注入指令即可把 bashcurl 等双用途二进制变成载荷正则黑名单挡不住结构性绕过,LLM 评审护栏延迟高且误伤提出 ActiveSecHarness 神经符号引用监控:四环 HMAC 能力令牌二维污染格与工作区溯源账本Ring-0 确定性系统护栏与分叉审计日志;252 个样本上 Ring-0 全拦截零误报,单步约 12.7 微秒,比本地 LLM 评审快 11200 倍

为什么值得关注

论证 agentic coding harness 的安全是架构与权限组合的结构属性:harness 接上 shell文件系统与网络后成为自动化 LotL 平台,注入指令即可把 bashcurl 等双用途二进制变成载荷正则黑名单挡不住结构性绕过.

该论文于 2026-11-10 提交至 arXiv(分类:cs.CR, cs.AI),本页内容基于 arXiv 官方摘要与条目既有元数据生成,实验细节以论文原文为准。

关键信息

  • 论文标题:From Attack Surface to Defense Architecture: Compositional Security for Agentic Coding Harnesses
  • 作者:Simon Hegelich, Bardh Prenkaj, Habiba Sarhan, Morteza Shahrezaye, Kolja Hegelich, Christian Montag, Ralf Schneider, Erik Cambria
  • arXiv:https://arxiv.org/abs/2611.13960
  • 发布时间:2026-11-10
  • arXiv 分类:cs.CR, cs.AI
  • 关联标签:security, agents, harness, prompt-injection, reference-monitor, capability-tokens, taint-analysis

English Abstract

AI coding harnesses couple language models to shells, filesystems, and network sockets, turning the harness into an automated Living-off-the-Land (LotL) platform: once an adversary injects instructions into retrieved content, dual-use binaries such as bash, curl, and find become the payload. We argue that security in agentic systems is a structural property of the cognitive architecture and permission composition rather than an emergent property of individual models. Static regex blacklists miss structural evasions, whereas LLM-as-a-Judge guardrails incur high latency while over-blocking benign work. We present ActiveSecHarness, a neurosymbolic reference-monitor architecture built around Separation of Intelligence and Authority. It combines (1) Macaroon-inspired HMAC capability tokens across four Trust and Authority Rings, (2) a 2D product taint lattice $\mathcal{L} = \mathcal{L}_{\mathrm{trust}} \times \mathcal{L}_{\mathrm{sens}}$ and a workspace provenance ledger that prevents secret laundering across disk, (3) deterministic Ring-0 OS/tool guards, and (4) bytecode certificates, split-horizon audit logs, self-healing security test synthesis, and an adaptive UserWikiManager. Across $N=252$ fixtures ($120$ attack, $120$ benign, $12$ kill chains), a live local LLM judge (qwen3:4b) refuses $98.3\%$ of benign work at $142.3\,\mathrm{ms}$ latency, whereas Ring 0 achieves $\mathrm{ABR}=1.000$ and $\mathrm{FPR}=0.000$ in $12.7\,μ\mathrm{s}$ ($11{,}200\times$ faster). In a multi-step trajectory ablation, an oracle Conseca-style stateless policy misses $4/12$ kill chains ($\mathrm{ABR}=0.667$) and coarse Boolean taint blocks $83.3\%$ of benign workflows, while our 2D product lattice achieves $\mathrm{ABR}=1.000$ and $\mathrm{FPR}=0.000$ at $\approx 20\,μ\mathrm{s}$ per step.

English Summary

Argues security in AI coding harnesses is a structural property of cognitive architecture and permission composition rather than of individual models: harnesses wired to shells, filesystems, and sockets become Living-off-the-Land platforms where injected instructions turn dual-use binaries like bash and curl into the payload. Regex blacklists miss structural evasions; LLM-judge guardrails are slow and over-block. ActiveSecHarness is a neurosymbolic reference monitor built on Separation of Intelligence and Authority: HMAC capability tokens across four Trust/Authority Rings, a 2D taint lattice with a provenance ledger, deterministic Ring-0 OS/tool guards, and split-horizon audit logs. On 252 fixtures including 12 kill chains, Ring-0 guards reached ABR 1.000 / FPR 0.000 at 12.7 microseconds, 11,200x faster than an LLM judge; an oracle stateless policy missed 4/12 kill chains.

Obsidian Notes

  • 内容由 opencli arxiv paper 拉取 arXiv 元数据与摘要生成。
  • 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充论文摘要之外的实验细节。