CyberGuardAI 安全情报工作区
AI 安全知识情报
LJH 管理员
返回首页 学术论文

从工具连接到执行控制:在MCP风格代理运行时中基准测试安全不变量

摘要与解读

论文提出八项执行层不变量,并在ChainCaps与Playwright MCP服务器上测试工具型代理的越权与数据外泄防护。

六维情报分析

6 个维度 · 原文可溯源

影响范围

  • 来源报告聚焦MCP风格Agent运行时中的执行控制:HCP(带managed handles与tasks的内存运行时)与独立gateway/server ACL(B3)在相同grants和labels下执行同一I1-I8契约。影响对象是承载工具调用、会话授权与数据流控制的Agent运行时及其MCP后端;必要条件是存在按调用授予的权限、会话级预算或句柄/密封读机制。信任边界落在“授权调用”与“参数内容”之间:来源显示授权sink仍可接收作为普通参数传入的secret,后果是敏感数据经合法通道外流。

    原文依据 · 2
    riants themselves, we compare HCP, an in-memory runtime with managed handles and tasks, against an independent gateway/server ACL (B3) enforcing the same I1-I8 contract over identical grants and labels. Both block 18 modeled violations and complete 25 workflows, while 16 source-code ablations pinpoint the checks responsible. Outside our scripted corpus, we test three boundaries. First, on 24 held-out AgentDojo tasks with live models, DeepSeek reaches attacker goals in 4 direct sessions while both controllers deny every attacker call; however, strict reference-derived grants also deny 40 non-at
    查看原文 · v1
    e-all control reaches 4 new attacker goals. Second, across 132 conditions on unmodified ChainCaps and Playwright MCP servers, per-call grants block ungranted writes but cannot stop a secret passed as an ordinary argument to an authorized sink; session source budgets block that copy but refuse unrelated actions; and explicit handle pipes or sealed reads block handle-mediated exfiltration while preserving unrelated workflows. Third, on a matched MCP backend, HCP adds 0.13 ms per workflow outside MCP calls while retaining 7.7 MB of state over one thousand workflows versus 0.7 MB for B3. Identical
    查看原文 · v1

关联资产

  • 原文明确关联的组件与接口包括:HCP内存运行时(managed handles、tasks)、独立gateway/server ACL(B3)、I1-I8契约、grants与labels、per-call grants、session source budgets、handle pipes、sealed reads,以及ChainCaps、Playwright MCP servers和匹配MCP后端;测试对象含AgentDojo任务与live models(DeepSeek)。适用前提是部署采用MCP风格工具调用并配置上述授权与数据流控制;未提供本地资产清单,未与任何本地资产匹配。

    原文依据 · 2
    riants themselves, we compare HCP, an in-memory runtime with managed handles and tasks, against an independent gateway/server ACL (B3) enforcing the same I1-I8 contract over identical grants and labels. Both block 18 modeled violations and complete 25 workflows, while 16 source-code ablations pinpoint the checks responsible. Outside our scripted corpus, we test three boundaries. First, on 24 held-out AgentDojo tasks with live models, DeepSeek reaches attacker goals in 4 direct sessions while both controllers deny every attacker call; however, strict reference-derived grants also deny 40 non-at
    查看原文 · v1
    e-all control reaches 4 new attacker goals. Second, across 132 conditions on unmodified ChainCaps and Playwright MCP servers, per-call grants block ungranted writes but cannot stop a secret passed as an ordinary argument to an authorized sink; session source budgets block that copy but refuse unrelated actions; and explicit handle pipes or sealed reads block handle-mediated exfiltration while preserving unrelated workflows. Third, on a matched MCP backend, HCP adds 0.13 ms per workflow outside MCP calls while retaining 7.7 MB of state over one thousand workflows versus 0.7 MB for B3. Identical
    查看原文 · v1

风险评估

  • 已报道的风险机制有三类:其一,per-call grants能阻止未授权写入,却拦不住secret作为普通参数传给已授权sink;其二,session source budgets能阻止该复制,但会拒绝无关动作,形成可用性与安全的取舍;其三,显式handle pipes或sealed reads可阻断经句柄中介的外泄并保留无关工作流。触发条件是攻击者获得一次直接会话或找到新的攻击目标路径;来源在24个held-out AgentDojo任务上记录DeepSeek在4个直接会话中达成攻击者目标,而两种控制器拒绝每次攻击者调用。防护优先级应放在参数级数据流约束与句柄密封读,而非仅依赖调用级授权。

    原文依据 · 2
    riants themselves, we compare HCP, an in-memory runtime with managed handles and tasks, against an independent gateway/server ACL (B3) enforcing the same I1-I8 contract over identical grants and labels. Both block 18 modeled violations and complete 25 workflows, while 16 source-code ablations pinpoint the checks responsible. Outside our scripted corpus, we test three boundaries. First, on 24 held-out AgentDojo tasks with live models, DeepSeek reaches attacker goals in 4 direct sessions while both controllers deny every attacker call; however, strict reference-derived grants also deny 40 non-at
    查看原文 · v1
    e-all control reaches 4 new attacker goals. Second, across 132 conditions on unmodified ChainCaps and Playwright MCP servers, per-call grants block ungranted writes but cannot stop a secret passed as an ordinary argument to an authorized sink; session source budgets block that copy but refuse unrelated actions; and explicit handle pipes or sealed reads block handle-mediated exfiltration while preserving unrelated workflows. Third, on a matched MCP backend, HCP adds 0.13 ms per workflow outside MCP calls while retaining 7.7 MB of state over one thousand workflows versus 0.7 MB for B3. Identical
    查看原文 · v1

相关研究

  • 研究方法是对比HCP与独立gateway/server ACL(B3)在相同grants和labels下执行I1-I8契约,并用16项源码消融定位负责的检查;在脚本语料之外测试三类边界:24个held-out AgentDojo任务配live models、132种条件下未修改的ChainCaps与Playwright MCP服务器、以及匹配MCP后端上的性能测量。贡献在于把“工具连接”推进到“执行控制”的可度量不变量,并给出各控制手段的覆盖边界。材料仅提供摘要片段,未读取链接中的完整方法细节。

    原文依据 · 2
    riants themselves, we compare HCP, an in-memory runtime with managed handles and tasks, against an independent gateway/server ACL (B3) enforcing the same I1-I8 contract over identical grants and labels. Both block 18 modeled violations and complete 25 workflows, while 16 source-code ablations pinpoint the checks responsible. Outside our scripted corpus, we test three boundaries. First, on 24 held-out AgentDojo tasks with live models, DeepSeek reaches attacker goals in 4 direct sessions while both controllers deny every attacker call; however, strict reference-derived grants also deny 40 non-at
    查看原文 · v1
    e-all control reaches 4 new attacker goals. Second, across 132 conditions on unmodified ChainCaps and Playwright MCP servers, per-call grants block ungranted writes but cannot stop a secret passed as an ordinary argument to an authorized sink; session source budgets block that copy but refuse unrelated actions; and explicit handle pipes or sealed reads block handle-mediated exfiltration while preserving unrelated workflows. Third, on a matched MCP backend, HCP adds 0.13 ms per workflow outside MCP calls while retaining 7.7 MB of state over one thousand workflows versus 0.7 MB for B3. Identical
    查看原文 · v1

验证资料

  • 来源给出的实验数据:两种控制器均阻断18个建模违规并完成25个工作流;16项源码消融定位检查;24个held-out AgentDojo任务中DeepSeek在4个直接会话达成攻击者目标而控制器拒绝每次攻击者调用,但严格由参考推导的grants也拒绝了40个非攻击者动作;132种条件下per-call grants、session source budgets、handle pipes/sealed reads表现各异;匹配MCP后端上HCP每个工作流在MCP调用外增加0.13 ms,一千个工作流后保留7.7 MB状态,B3为0.7 MB。防御性核查可围绕grants来源是否过严、会话预算拒绝率、句柄/密封读覆盖与状态内存增长设置观察指标。

    原文依据 · 2
    riants themselves, we compare HCP, an in-memory runtime with managed handles and tasks, against an independent gateway/server ACL (B3) enforcing the same I1-I8 contract over identical grants and labels. Both block 18 modeled violations and complete 25 workflows, while 16 source-code ablations pinpoint the checks responsible. Outside our scripted corpus, we test three boundaries. First, on 24 held-out AgentDojo tasks with live models, DeepSeek reaches attacker goals in 4 direct sessions while both controllers deny every attacker call; however, strict reference-derived grants also deny 40 non-at
    查看原文 · v1
    e-all control reaches 4 new attacker goals. Second, across 132 conditions on unmodified ChainCaps and Playwright MCP servers, per-call grants block ungranted writes but cannot stop a secret passed as an ordinary argument to an authorized sink; session source budgets block that copy but refuse unrelated actions; and explicit handle pipes or sealed reads block handle-mediated exfiltration while preserving unrelated workflows. Third, on a matched MCP backend, HCP adds 0.13 ms per workflow outside MCP calls while retaining 7.7 MB of state over one thousand workflows versus 0.7 MB for B3. Identical
    查看原文 · v1

处置建议

  • 建议按序推进:先梳理Agent运行时的grants与labels来源,评估严格参考推导grants造成的非攻击者动作拒绝(来源记录40个),在安全与可用间调整;再对已授权sink增加参数级secret检测或改用sealed reads/handle pipes,因per-call grants无法阻止secret作为普通参数外流;随后为会话预算设置监测指标,观察其对无关动作的拒绝;最后在匹配MCP后端回归验证性能与状态占用(0.13 ms/工作流、7.7 MB对0.7 MB),并结合AgentDojo类任务复测攻击者目标达成情况。

    原文依据 · 2
    riants themselves, we compare HCP, an in-memory runtime with managed handles and tasks, against an independent gateway/server ACL (B3) enforcing the same I1-I8 contract over identical grants and labels. Both block 18 modeled violations and complete 25 workflows, while 16 source-code ablations pinpoint the checks responsible. Outside our scripted corpus, we test three boundaries. First, on 24 held-out AgentDojo tasks with live models, DeepSeek reaches attacker goals in 4 direct sessions while both controllers deny every attacker call; however, strict reference-derived grants also deny 40 non-at
    查看原文 · v1
    e-all control reaches 4 new attacker goals. Second, across 132 conditions on unmodified ChainCaps and Playwright MCP servers, per-call grants block ungranted writes but cannot stop a secret passed as an ordinary argument to an authorized sink; session source budgets block that copy but refuse unrelated actions; and explicit handle pipes or sealed reads block handle-mediated exfiltration while preserving unrelated workflows. Third, on a matched MCP backend, HCP adds 0.13 ms per workflow outside MCP calls while retaining 7.7 MB of state over one thousand workflows versus 0.7 MB for B3. Identical
    查看原文 · v1
模型与引文记录
模型
deepseek-flash
生成时间
记录编号
REQ-50d92b7eaf0a4df1acf32fff85b062e4
分析原文
查看原文 · v1

图片与附件

1 项关联材料
  • cs.CR已归档 · 289.0 KB
    采集与来源记录
    文件名称
    cs.CR
    记录大小
    295946 字节
    文件格式
    text/plain
    关联登记时间
    2026-11-11 04:41 UTC
    关联原文
    v1
    保存时校验
    f5144ff7a46dd23da5bb76171d7782c646729f12313f71c34c60d64785f2a1d9

资料档案

文献来源与参考链接

当前保存的来源版本 · v1

文献与标准标识
arxiv:2606.29073
采集来源格式
arxiv_feed_metadata
结构化格式
arxiv_rss
原始标题与分类记录

From Tool Connection to Execution Control: Benchmarking Security Invariants in MCP-Style Agent Runtimes

研究方向
待人工确认
影响维度
机密性
风险类型
隐私泄露
相关技术
Agent、工具调用

当前为离线关键词规则模式。

分类规则与原始字段
隐私泄露 · exfiltration
cit handle pipes or sealed reads block handle-mediated exfiltration while preserving unrelated workflows. Third, on a matched MCP backend, HCP adds 0.13 ms per workflo
机密性 · secret
r-call grants block ungranted writes but cannot stop a secret passed as an ordinary argument to an authorized sink; session source budgets block that copy but re
Agent · agent
Control: Benchmarking Security Invariants in MCP-Style Agent Runtimes arXiv:2606.29073v2 Announce Type: replace Abstract: Tool-connected agents need execution-
工具调用 · mcp
Execution Control: Benchmarking Security Invariants in MCP-Style Agent Runtimes arXiv:2606.29073v2 Announce Type: replace Abstract: Tool-connected agents nee
{
  "ai_relevance": {
    "evidence": [],
    "matches": [],
    "method": "explainable_keyword_rules",
    "reason": "No explicit AI evidence; requires review",
    "relevant": false
  },
  "entity_ids": [],
  "facts": [],
  "method": "source_grounded_extraction",
  "unknown_fields": [
    "affected_products",
    "affected_versions",
    "fixed_versions",
    "cvss",
    "mitigations",
    "references",
    "papers",
    "poc"
  ]
}
原始采集文本
arXiv:2606.29073v2 Announce Type: replace 
Abstract: Tool-connected agents need execution-time invariants that hold even when a model follows an adversarial instruction. We formulate eight execution-layer invariants (I1-I8) covering structured authority, canonical resource resolution, principal and delegation binding, handle lifecycle, explicit source-to-target transfer, request-correlated denial evidence, and single-use approval state. To test whether these protections require a centralized runtime or follow from the invariants themselves, we compare HCP, an in-memory runtime with managed handles and tasks, against an independent gateway/server ACL (B3) enforcing the same I1-I8 contract over identical grants and labels. Both block 18 modeled violations and complete 25 workflows, while 16 source-code ablations pinpoint the checks responsible. Outside our scripted corpus, we test three boundaries. First, on 24 held-out AgentDojo tasks with live models, DeepSeek reaches attacker goals in 4 direct sessions while both controllers deny every attacker call; however, strict reference-derived grants also deny 40 non-attacker calls, and first-divergence replay under an approve-all control reaches 4 new attacker goals. Second, across 132 conditions on unmodified ChainCaps and Playwright MCP servers, per-call grants block ungranted writes but cannot stop a secret passed as an ordinary argument to an authorized sink; session source budgets block that copy but refuse unrelated actions; and explicit handle pipes or sealed reads block handle-mediated exfiltration while preserving unrelated workflows. Third, on a matched MCP backend, HCP adds 0.13 ms per workflow outside MCP calls while retaining 7.7 MB of state over one thousand workflows versus 0.7 MB for B3. Identical decisions across HCP and B3 show that enforcing explicit I1-I8 invariants at controlled entrances secures tool execution across centralized and gateway designs.
采集信息与校验
完整来源元数据
{
  "authors": [],
  "content_level": "feed_metadata",
  "feed_url": "https://rss.arxiv.org/rss/cs.CR",
  "identifiers": [
    "arxiv:2606.29073"
  ],
  "source_updated_at": ""
}
{
  "format": "arxiv_rss",
  "source_format": "arxiv_feed_metadata"
}
原文版本历史与校验
版本入库更新时间来源发布日期校验标识
v1 · 正在查看2026-11-10 09:52 UTC2026-11-10 05:00 UTC54c80ce61a9303aa96caef5afd1bd5e54f8c3eb4fcf537fd0b4d52f5fea9f954
可引用分片 · 2 段

CHK-8d840cf923d941b63e79c86c

arXiv:2606.29073v2 Announce Type: replace 
Abstract: Tool-connected agents need execution-time invariants that hold even when a model follows an adversarial instruction. We formulate eight execution-layer invariants (I1-I8) covering structured authority, canonical resource resolution, principal and delegation binding, handle lifecycle, explicit source-to-target transfer, request-correlated denial evidence, and single-use approval state. To test whether these protections require a centralized runtime or follow from the invariants themselves, we compare HCP, an in-memory runtime with managed handles and tasks, against an independent gateway/server ACL (B3) enforcing the same I1-I8 contract over identical grants and labels. Both block 18 modeled violations and complete 25 workflows, while 16 source-code ablations pinpoint the checks responsible. Outside our scripted corpus, we test three boundaries. First, on 24 held-out AgentDojo tasks with live models, DeepSeek reaches attacker goals in 4 direct sessions while both controllers deny every attacker call; however, strict reference-derived grants also deny 40 non-attacker calls, and first-divergence replay under an approve-all control reaches 4 new attacker goals.

CHK-5420ad123bd6439038835143

however, strict reference-derived grants also deny 40 non-attacker calls, and first-divergence replay under an approve-all control reaches 4 new attacker goals. Second, across 132 conditions on unmodified ChainCaps and Playwright MCP servers, per-call grants block ungranted writes but cannot stop a secret passed as an ordinary argument to an authorized sink; session source budgets block that copy but refuse unrelated actions; and explicit handle pipes or sealed reads block handle-mediated exfiltration while preserving unrelated workflows. Third, on a matched MCP backend, HCP adds 0.13 ms per workflow outside MCP calls while retaining 7.7 MB of state over one thousand workflows versus 0.7 MB for B3. Identical decisions across HCP and B3 show that enforcing explicit I1-I8 invariants at controlled entrances secures tool execution across centralized and gateway designs.
补充资料

中文译文

正文译文暂缺,以下仅为中文摘要。

中文摘要

论文提出八项执行层不变量,并在ChainCaps与Playwright MCP服务器上测试工具型代理的越权与数据外泄防护。

已采集原文

访问来源网页

arXiv:2606.29073v2 Announce Type: replace Abstract: Tool-connected agents need execution-time invariants that hold even when a model follows an adversarial instruction. We formulate eight execution-layer invariants (I1-I8) covering structured authority, canonical resource resolution, principal and delegation binding, handle lifecycle, explicit source-to-target transfer, request-correlated denial evidence, and single-use approval state. To test whether these protections require a centralized runtime or follow from the invariants themselves, we compare HCP, an in-memory runtime with managed handles and tasks, against an independent gateway/server ACL (B3) enforcing the same I1-I8 contract over identical grants and labels. Both block 18 modeled violations and complete 25 workflows, while 16 source-code ablations pinpoint the checks responsible. Outside our scripted corpus, we test three boundaries. First, on 24 held-out AgentDojo tasks with live models, DeepSeek reaches attacker goals in 4 direct sessions while both controllers deny every attacker call; however, strict reference-derived grants also deny 40 non-attacker calls, and first-divergence replay under an approve-all control reaches 4 new attacker goals. Second, across 132 conditions on unmodified ChainCaps and Playwright MCP servers, per-call grants block ungranted writes but cannot stop a secret passed as an ordinary argument to an authorized sink; session source budgets block that copy but refuse unrelated actions; and explicit handle pipes or sealed reads block handle-mediated exfiltration while preserving unrelated workflows. Third, on a matched MCP backend, HCP adds 0.13 ms per workflow outside MCP calls while retaining 7.7 MB of state over one thousand workflows versus 0.7 MB for B3. Identical decisions across HCP and B3 show that enforcing explicit I1-I8 invariants at controlled entrances secures tool execution across centralized and gateway designs.

原文依据