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

Trace:通过终端行为指纹识别揭示 AI 攻击智能体

摘要与解读

来源将影响场景限定为在已失陷网络中自主执行攻击的 AI 渗透测试代理:Trace 从其终端命令序列推断控制活跃会话的模型家族,并据此引导后续防御分析。若防守方能取得相关会话记录,这种跨越终端行为与模型身份的推断可帮助判断攻击意图;来源还报告针对部分会话的系统提示词提取结果,涉及代理内部指令的暴露。

六维情报分析

6 个维度 · 原文可溯源

影响范围

  • 来源将影响场景限定为在已失陷网络中自主执行攻击的 AI 渗透测试代理:Trace 从其终端命令序列推断控制活跃会话的模型家族,并据此引导后续防御分析。若防守方能取得相关会话记录,这种跨越终端行为与模型身份的推断可帮助判断攻击意图;来源还报告针对部分会话的系统提示词提取结果,涉及代理内部指令的暴露。

    原文依据 · 2

    中文译文

    arXiv:2605.01186v2 公告类型:替换 摘要:AI 驱动的渗透测试智能体如今已能在被攻陷的网络中自主执行攻击。识别控制此类智能体活动会话的模型家族,有助于了解攻击意图并进一步制定应对措施。本文介绍 Trace,这是一种利用终端命令序列对 AI 攻击智能体进行归因和取证的新型多阶段框架。Trace 一旦识别出攻击智能体所属的模型家族,便会引导防御性……

    原文引文

    arXiv:2605.01186v2 Announce Type: replace Abstract: AI-driven penetration testing agents are now capable of autonomously executing attacks within compromised networks. Identifying the model family that controls the active sessions of such agents provides valuable information towards understanding the intent of the attack and further developing attack countermeasures. In this paper, we introduce Trace, a novel multi-stage attribution and forensic framework for AI attack agents using terminal command sequences. Once Trace identifies a model family for the attacker agents, it guides a defensive
    查看原文 · v1

    中文译意(有删节)

    未见过的脚手架)。此外,指纹识别有助于针对特定模型系列开展系统提示词提取;在非 Claude 会话中,平均提取成功率为 81.9%(最高达 98.3%),Sentence-BERT 保真度为 0.736,效果是盲目部署的 1.88 倍。最后,为验证 Trace 的稳健性,我们使用一个采用多个模型系列(Gemini 和 Claude Opus)的黑箱专有脚手架对其进行了评估。评估显示,识别模型系列的平均准确率为 78%。此外,对于 Gemini 模型系列,Trace 所用的 DPI 揭示了整个系……

    原文引文

    nseen scaffolds). Besides, the fingerprinting guides the DPI via a crafted payload to certain model families, resulting in system prompt extraction from 81.9% of non-Claude sessions on average (up to 98.3%) at 0.736 Sentence-BERT fidelity -- 1.88x higher than blind deployment. Finally, to validate the robustness of Trace, we evaluate it with a blackbox and proprietary scaffold employing multiple model families (Gemini and Claude Opus). Our evaluation identified the model family with an average 78% accuracy. Moreover, for the Gemini model family, the DPI employed by Trace revealed the entire sy
    查看原文 · v1

关联资产

  • 原文明示的关联对象包括 AI 驱动的渗透测试代理、活跃会话、终端命令序列、模型家族、系统提示词,以及评估所用的 Gemini、Claude Opus 和专有 scaffold;Claude 会话与非 Claude 会话在所报提取结果中被区别对待。适用资产类型是能记录代理终端行为、且代理会话持有系统提示词的环境;材料未给出受影响产品版本或本地资产清单。

    原文依据 · 2

    中文译文

    arXiv:2605.01186v2 公告类型:替换 摘要:AI 驱动的渗透测试智能体如今已能在被攻陷的网络中自主执行攻击。识别控制此类智能体活动会话的模型家族,有助于了解攻击意图并进一步制定应对措施。本文介绍 Trace,这是一种利用终端命令序列对 AI 攻击智能体进行归因和取证的新型多阶段框架。Trace 一旦识别出攻击智能体所属的模型家族,便会引导防御性……

    原文引文

    arXiv:2605.01186v2 Announce Type: replace Abstract: AI-driven penetration testing agents are now capable of autonomously executing attacks within compromised networks. Identifying the model family that controls the active sessions of such agents provides valuable information towards understanding the intent of the attack and further developing attack countermeasures. In this paper, we introduce Trace, a novel multi-stage attribution and forensic framework for AI attack agents using terminal command sequences. Once Trace identifies a model family for the attacker agents, it guides a defensive
    查看原文 · v1

    中文译意(有删节)

    未见过的脚手架)。此外,指纹识别有助于针对特定模型系列开展系统提示词提取;在非 Claude 会话中,平均提取成功率为 81.9%(最高达 98.3%),Sentence-BERT 保真度为 0.736,效果是盲目部署的 1.88 倍。最后,为验证 Trace 的稳健性,我们使用一个采用多个模型系列(Gemini 和 Claude Opus)的黑箱专有脚手架对其进行了评估。评估显示,识别模型系列的平均准确率为 78%。此外,对于 Gemini 模型系列,Trace 所用的 DPI 揭示了整个系……

    原文引文

    nseen scaffolds). Besides, the fingerprinting guides the DPI via a crafted payload to certain model families, resulting in system prompt extraction from 81.9% of non-Claude sessions on average (up to 98.3%) at 0.736 Sentence-BERT fidelity -- 1.88x higher than blind deployment. Finally, to validate the robustness of Trace, we evaluate it with a blackbox and proprietary scaffold employing multiple model families (Gemini and Claude Opus). Our evaluation identified the model family with an average 78% accuracy. Moreover, for the Gemini model family, the DPI employed by Trace revealed the entire sy
    查看原文 · v1

风险评估

  • 材料报道两条相连的机制:终端行为指纹用于识别模型家族,识别结果再引导针对特定模型家族的 DPI;后者报告了非 Claude 会话中的系统提示词提取。触发前提是能够观察代理终端命令序列,并在后续分析中接触相应会话。防护上应优先限制系统提示词暴露面,同时保护和审查会话日志;材料没有给出普通业务代理遭遇同类提取的发生率。

    原文依据 · 2

    中文译文

    arXiv:2605.01186v2 公告类型:替换 摘要:AI 驱动的渗透测试智能体如今已能在被攻陷的网络中自主执行攻击。识别控制此类智能体活动会话的模型家族,有助于了解攻击意图并进一步制定应对措施。本文介绍 Trace,这是一种利用终端命令序列对 AI 攻击智能体进行归因和取证的新型多阶段框架。Trace 一旦识别出攻击智能体所属的模型家族,便会引导防御性……

    原文引文

    arXiv:2605.01186v2 Announce Type: replace Abstract: AI-driven penetration testing agents are now capable of autonomously executing attacks within compromised networks. Identifying the model family that controls the active sessions of such agents provides valuable information towards understanding the intent of the attack and further developing attack countermeasures. In this paper, we introduce Trace, a novel multi-stage attribution and forensic framework for AI attack agents using terminal command sequences. Once Trace identifies a model family for the attacker agents, it guides a defensive
    查看原文 · v1

    中文译意(有删节)

    未见过的脚手架)。此外,指纹识别有助于针对特定模型系列开展系统提示词提取;在非 Claude 会话中,平均提取成功率为 81.9%(最高达 98.3%),Sentence-BERT 保真度为 0.736,效果是盲目部署的 1.88 倍。最后,为验证 Trace 的稳健性,我们使用一个采用多个模型系列(Gemini 和 Claude Opus)的黑箱专有脚手架对其进行了评估。评估显示,识别模型系列的平均准确率为 78%。此外,对于 Gemini 模型系列,Trace 所用的 DPI 揭示了整个系……

    原文引文

    nseen scaffolds). Besides, the fingerprinting guides the DPI via a crafted payload to certain model families, resulting in system prompt extraction from 81.9% of non-Claude sessions on average (up to 98.3%) at 0.736 Sentence-BERT fidelity -- 1.88x higher than blind deployment. Finally, to validate the robustness of Trace, we evaluate it with a blackbox and proprietary scaffold employing multiple model families (Gemini and Claude Opus). Our evaluation identified the model family with an average 78% accuracy. Moreover, for the Gemini model family, the DPI employed by Trace revealed the entire sy
    查看原文 · v1

相关研究

  • 论文摘要提出 Trace 这一多阶段 AI 攻击代理归因与取证框架,以终端命令序列为行为指纹识别模型家族,再将识别结果用于引导 DPI。其研究贡献是把会话行为归因与后续针对性分析连接起来;所给摘要片段还提及使用包含 Gemini、Claude Opus 多模型家族的黑盒专有 scaffold 评估稳健性,但未展示完整方法、DPI 定义或比较研究。

    原文依据 · 2

    中文译文

    arXiv:2605.01186v2 公告类型:替换 摘要:AI 驱动的渗透测试智能体如今已能在被攻陷的网络中自主执行攻击。识别控制此类智能体活动会话的模型家族,有助于了解攻击意图并进一步制定应对措施。本文介绍 Trace,这是一种利用终端命令序列对 AI 攻击智能体进行归因和取证的新型多阶段框架。Trace 一旦识别出攻击智能体所属的模型家族,便会引导防御性……

    原文引文

    arXiv:2605.01186v2 Announce Type: replace Abstract: AI-driven penetration testing agents are now capable of autonomously executing attacks within compromised networks. Identifying the model family that controls the active sessions of such agents provides valuable information towards understanding the intent of the attack and further developing attack countermeasures. In this paper, we introduce Trace, a novel multi-stage attribution and forensic framework for AI attack agents using terminal command sequences. Once Trace identifies a model family for the attacker agents, it guides a defensive
    查看原文 · v1

    中文译意(有删节)

    未见过的脚手架)。此外,指纹识别有助于针对特定模型系列开展系统提示词提取;在非 Claude 会话中,平均提取成功率为 81.9%(最高达 98.3%),Sentence-BERT 保真度为 0.736,效果是盲目部署的 1.88 倍。最后,为验证 Trace 的稳健性,我们使用一个采用多个模型系列(Gemini 和 Claude Opus)的黑箱专有脚手架对其进行了评估。评估显示,识别模型系列的平均准确率为 78%。此外,对于 Gemini 模型系列,Trace 所用的 DPI 揭示了整个系……

    原文引文

    nseen scaffolds). Besides, the fingerprinting guides the DPI via a crafted payload to certain model families, resulting in system prompt extraction from 81.9% of non-Claude sessions on average (up to 98.3%) at 0.736 Sentence-BERT fidelity -- 1.88x higher than blind deployment. Finally, to validate the robustness of Trace, we evaluate it with a blackbox and proprietary scaffold employing multiple model families (Gemini and Claude Opus). Our evaluation identified the model family with an average 78% accuracy. Moreover, for the Gemini model family, the DPI employed by Trace revealed the entire sy
    查看原文 · v1

验证资料

  • 来源报告:经模型家族指纹引导的 DPI 在非 Claude 会话中平均提取率为 81.9%,最高 98.3%,Sentence-BERT 保真度为 0.736,较盲目部署高 1.88 倍;在采用 Gemini 与 Claude Opus 的黑盒专有 scaffold 评估中,模型家族识别平均准确率为 78%。这些指标分别对应提示词提取与家族识别,适用范围受其测试会话和 scaffold 限定。

    原文依据 · 1

    中文译意(有删节)

    未见过的脚手架)。此外,指纹识别有助于针对特定模型系列开展系统提示词提取;在非 Claude 会话中,平均提取成功率为 81.9%(最高达 98.3%),Sentence-BERT 保真度为 0.736,效果是盲目部署的 1.88 倍。最后,为验证 Trace 的稳健性,我们使用一个采用多个模型系列(Gemini 和 Claude Opus)的黑箱专有脚手架对其进行了评估。评估显示,识别模型系列的平均准确率为 78%。此外,对于 Gemini 模型系列,Trace 所用的 DPI 揭示了整个系……

    原文引文

    nseen scaffolds). Besides, the fingerprinting guides the DPI via a crafted payload to certain model families, resulting in system prompt extraction from 81.9% of non-Claude sessions on average (up to 98.3%) at 0.736 Sentence-BERT fidelity -- 1.88x higher than blind deployment. Finally, to validate the robustness of Trace, we evaluate it with a blackbox and proprietary scaffold employing multiple model families (Gemini and Claude Opus). Our evaluation identified the model family with an average 78% accuracy. Moreover, for the Gemini model family, the DPI employed by Trace revealed the entire sy
    查看原文 · v1

处置建议

  • 建议先盘点是否部署可自主使用终端的 AI 代理,以及会话中是否保存系统提示词;再限制提示词与终端日志的访问权限,并保留必要的会话审计记录,因为来源分别以这些数据作为提取对象和归因输入。若存在相应场景,再按模型家族区分观察异常会话访问与提示词外泄迹象,并用本地授权测试回归评估防护效果;不要将论文汇总数字直接作为本地成效。

    原文依据 · 2

    中文译文

    arXiv:2605.01186v2 公告类型:替换 摘要:AI 驱动的渗透测试智能体如今已能在被攻陷的网络中自主执行攻击。识别控制此类智能体活动会话的模型家族,有助于了解攻击意图并进一步制定应对措施。本文介绍 Trace,这是一种利用终端命令序列对 AI 攻击智能体进行归因和取证的新型多阶段框架。Trace 一旦识别出攻击智能体所属的模型家族,便会引导防御性……

    原文引文

    arXiv:2605.01186v2 Announce Type: replace Abstract: AI-driven penetration testing agents are now capable of autonomously executing attacks within compromised networks. Identifying the model family that controls the active sessions of such agents provides valuable information towards understanding the intent of the attack and further developing attack countermeasures. In this paper, we introduce Trace, a novel multi-stage attribution and forensic framework for AI attack agents using terminal command sequences. Once Trace identifies a model family for the attacker agents, it guides a defensive
    查看原文 · v1

    中文译意(有删节)

    未见过的脚手架)。此外,指纹识别有助于针对特定模型系列开展系统提示词提取;在非 Claude 会话中,平均提取成功率为 81.9%(最高达 98.3%),Sentence-BERT 保真度为 0.736,效果是盲目部署的 1.88 倍。最后,为验证 Trace 的稳健性,我们使用一个采用多个模型系列(Gemini 和 Claude Opus)的黑箱专有脚手架对其进行了评估。评估显示,识别模型系列的平均准确率为 78%。此外,对于 Gemini 模型系列,Trace 所用的 DPI 揭示了整个系……

    原文引文

    nseen scaffolds). Besides, the fingerprinting guides the DPI via a crafted payload to certain model families, resulting in system prompt extraction from 81.9% of non-Claude sessions on average (up to 98.3%) at 0.736 Sentence-BERT fidelity -- 1.88x higher than blind deployment. Finally, to validate the robustness of Trace, we evaluate it with a blackbox and proprietary scaffold employing multiple model families (Gemini and Claude Opus). Our evaluation identified the model family with an average 78% accuracy. Moreover, for the Gemini model family, the DPI employed by Trace revealed the entire sy
    查看原文 · v1
模型与引文记录
模型
gpt-6-sol
生成时间
记录编号
REQ-ee45003067734b13a4b2073d051ffa5b
分析原文
查看原文 · v1

图片与附件

1 项关联材料
  • cs.CR已归档 · 120.6 KB
    采集与来源记录
    文件名称
    cs.CR
    记录大小
    123451 字节
    文件格式
    text/plain
    关联登记时间
    2026-12-03 18:26 UTC
    关联原文
    v1
    保存时校验
    29aa616613ce2b5b748fb78676ea7e630aadd8c66f3d23f5c5e6319abd59017e

资料档案

文献来源与参考链接

当前保存的来源版本 · v1

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

Trace: Unmasking AI Attack Agents Through Terminal Behavior Fingerprinting

研究方向
攻击方法、评测治理
影响维度
完整性
风险类型
提示注入
相关技术
Agent

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

分类规则与原始字段
攻击方法 · attack
Trace: Unmasking AI Attack Agents Through Terminal Behavior Fingerprinting arXiv:2605.01186v2 Announce Type: replace Abstract
评测治理 · evaluation
tinct scaffolds and seven frontier model families. Our evaluation reveals that Trace achieves a macro F1 score of 0.981 in accurately fingerprinting the attacker mod
提示注入 · prompt injection
family for the attacker agents, it guides a defensive prompt injection (DPI) strategy to the attacker model via a crafted payload. This is with the aim to exfiltrate syst
完整性 · injection
for the attacker agents, it guides a defensive prompt injection (DPI) strategy to the attacker model via a crafted payload. This is with the aim to exfiltrate syst
Agent · agent
ore provides a fundamental first step towards attacker agent forensics.
{
  "ai_relevance": {
    "evidence": [
      {
        "end_offset": 691,
        "location": "title_and_content",
        "quote": "prompt injection",
        "rule": "ai_attack",
        "start_offset": 675
      }
    ],
    "matches": [
      {
        "end_offset": 691,
        "location": "title_and_content",
        "quote": "prompt injection",
        "rule": "ai_attack",
        "start_offset": 675
      }
    ],
    "method": "explainable_keyword_rules",
    "reason": "Matched AI topic or component evidence",
    "relevant": true
  },
  "entity_ids": [],
  "facts": [],
  "method": "source_grounded_extraction",
  "unknown_fields": [
    "affected_products",
    "affected_versions",
    "fixed_versions",
    "cvss",
    "mitigations",
    "references",
    "papers",
    "poc"
  ]
}
原始采集文本
arXiv:2605.01186v2 Announce Type: replace 
Abstract: AI-driven penetration testing agents are now capable of autonomously executing attacks within compromised networks. Identifying the model family that controls the active sessions of such agents provides valuable information towards understanding the intent of the attack and further developing attack countermeasures. In this paper, we introduce Trace, a novel multi-stage attribution and forensic framework for AI attack agents using terminal command sequences. Once Trace identifies a model family for the attacker agents, it guides a defensive prompt injection (DPI) strategy to the attacker model via a crafted payload. This is with the aim to exfiltrate system prompts from an attacker model, thus, revealing valuable information to understand the attacker intent and facilitate further forensic investigation. We have implemented our approach revolving around a Linux capture-the-flag (CTF) box. The attacker agents are bolstered via three distinct scaffolds and seven frontier model families. Our evaluation reveals that Trace achieves a macro F1 score of 0.981 in accurately fingerprinting the attacker model family (0.815 when generalizing to unseen scaffolds). Besides, the fingerprinting guides the DPI via a crafted payload to certain model families, resulting in system prompt extraction from 81.9% of non-Claude sessions on average (up to 98.3%) at 0.736 Sentence-BERT fidelity -- 1.88x higher than blind deployment. Finally, to validate the robustness of Trace, we evaluate it with a blackbox and proprietary scaffold employing multiple model families (Gemini and Claude Opus). Our evaluation identified the model family with an average 78% accuracy. Moreover, for the Gemini model family, the DPI employed by Trace revealed the entire system prompt and this has been confirmed by the developers. Trace therefore provides a fundamental first step towards attacker agent forensics.
采集信息与校验
完整来源元数据
{
  "authors": [],
  "content_level": "feed_metadata",
  "feed_url": "https://rss.arxiv.org/rss/cs.CR",
  "identifiers": [
    "arxiv:2605.01186"
  ],
  "source_updated_at": ""
}
{
  "format": "arxiv_rss",
  "source_format": "arxiv_feed_metadata"
}
原文版本历史与校验
版本入库更新时间来源发布日期校验标识
v1 · 正在查看2026-12-03 06:14 UTC2026-12-03 05:00 UTCcaa78de4b8ddd8598fbc9a9edfe48f1e54da4bb908fd298517bff093c8823d85
可引用分片 · 2 段

CHK-13024f1b59129b245e7ade5e

arXiv:2605.01186v2 Announce Type: replace 
Abstract: AI-driven penetration testing agents are now capable of autonomously executing attacks within compromised networks. Identifying the model family that controls the active sessions of such agents provides valuable information towards understanding the intent of the attack and further developing attack countermeasures. In this paper, we introduce Trace, a novel multi-stage attribution and forensic framework for AI attack agents using terminal command sequences. Once Trace identifies a model family for the attacker agents, it guides a defensive prompt injection (DPI) strategy to the attacker model via a crafted payload. This is with the aim to exfiltrate system prompts from an attacker model, thus, revealing valuable information to understand the attacker intent and facilitate further forensic investigation. We have implemented our approach revolving around a Linux capture-the-flag (CTF) box. The attacker agents are bolstered via three distinct scaffolds and seven frontier model families. Our evaluation reveals that Trace achieves a macro F1 score of 0.981 in accurately fingerprinting the attacker model family (0.815 when generalizing to unseen scaffolds).

CHK-8059e8bcb013d0e9cd447ce7

tion reveals that Trace achieves a macro F1 score of 0.981 in accurately fingerprinting the attacker model family (0.815 when generalizing to unseen scaffolds). Besides, the fingerprinting guides the DPI via a crafted payload to certain model families, resulting in system prompt extraction from 81.9% of non-Claude sessions on average (up to 98.3%) at 0.736 Sentence-BERT fidelity -- 1.88x higher than blind deployment. Finally, to validate the robustness of Trace, we evaluate it with a blackbox and proprietary scaffold employing multiple model families (Gemini and Claude Opus). Our evaluation identified the model family with an average 78% accuracy. Moreover, for the Gemini model family, the DPI employed by Trace revealed the entire system prompt and this has been confirmed by the developers. Trace therefore provides a fundamental first step towards attacker agent forensics.
补充资料

中文译文

已保存部分中文译文,其余段落请查看下方原文。

arXiv:2605.01186v2 公告类型:替换 摘要:由 AI 驱动的渗透测试代理如今能够在已遭入侵的网络中自主实施攻击。识别控制此类代理活动会话的模型家族,有助于了解攻击意图并进一步制定应对措施。本文提出 Trace,这是一种利用终端命令序列对 AI 攻击代理进行归因和取证的新型多阶段框架。Trace 识别出攻击代理所属的模型家族后,会据此引导针对该模型的防御性提示注入策略。该策略旨在获取攻击者模型的系统提示,以帮助了解攻击意图并开展进一步的取证调查。我们围绕 Linux 夺旗赛(CTF)实现了这一方法

迈向攻击者智能体取证的基础性第一步。

已译原文片段

引文译文 · 原文位置 0–600

arXiv:2605.01186v2 公告类型:替换 摘要:AI 驱动的渗透测试智能体如今已能在被攻陷的网络中自主执行攻击。识别控制此类智能体活动会话的模型家族,有助于了解攻击意图并进一步制定应对措施。本文介绍 Trace,这是一种利用终端命令序列对 AI 攻击智能体进行归因和取证的新型多阶段框架。Trace 一旦识别出攻击智能体所属的模型家族,便会引导防御性……

arXiv:2605.01186v2 Announce Type: replace Abstract: AI-driven penetration testing agents are now capable of autonomously executing attacks within compromised networks. Identifying the model family that controls the active sessions of such agents provides valuable information towards understanding the intent of the attack and further developing attack countermeasures. In this paper, we introduce Trace, a novel multi-stage attribution and forensic framework for AI attack agents using terminal command sequences. Once Trace identifies a model family for the attacker agents, it guides a defensive

引文译文(安全删节) · 原文位置 1206–1806

未见过的脚手架)。此外,指纹识别有助于针对特定模型系列开展系统提示词提取;在非 Claude 会话中,平均提取成功率为 81.9%(最高达 98.3%),Sentence-BERT 保真度为 0.736,效果是盲目部署的 1.88 倍。最后,为验证 Trace 的稳健性,我们使用一个采用多个模型系列(Gemini 和 Claude Opus)的黑箱专有脚手架对其进行了评估。评估显示,识别模型系列的平均准确率为 78%。此外,对于 Gemini 模型系列,Trace 所用的 DPI 揭示了整个系……

nseen scaffolds). Besides, the fingerprinting guides the DPI via a crafted payload to certain model families, resulting in system prompt extraction from 81.9% of non-Claude sessions on average (up to 98.3%) at 0.736 Sentence-BERT fidelity -- 1.88x higher than blind deployment. Finally, to validate the robustness of Trace, we evaluate it with a blackbox and proprietary scaffold employing multiple model families (Gemini and Claude Opus). Our evaluation identified the model family with an average 78% accuracy. Moreover, for the Gemini model family, the DPI employed by Trace revealed the entire sy

已采集原文

访问来源网页

arXiv:2605.01186v2 Announce Type: replace Abstract: AI-driven penetration testing agents are now capable of autonomously executing attacks within compromised networks. Identifying the model family that controls the active sessions of such agents provides valuable information towards understanding the intent of the attack and further developing attack countermeasures. In this paper, we introduce Trace, a novel multi-stage attribution and forensic framework for AI attack agents using terminal command sequences. Once Trace identifies a model family for the attacker agents, it guides a defensive prompt injection (DPI) strategy to the attacker model via a crafted payload. This is with the aim to exfiltrate system prompts from an attacker model, thus, revealing valuable information to understand the attacker intent and facilitate further forensic investigation. We have implemented our approach revolving around a Linux capture-the-flag (CTF) box. The attacker agents are bolstered via three distinct scaffolds and seven frontier model families. Our evaluation reveals that Trace achieves a macro F1 score of 0.981 in accurately fingerprinting the attacker model family (0.815 when generalizing to unseen scaffolds). Besides, the fingerprinting guides the DPI via a crafted payload to certain model families, resulting in system prompt extraction from 81.9% of non-Claude sessions on average (up to 98.3%) at 0.736 Sentence-BERT fidelity -- 1.88x higher than blind deployment. Finally, to validate the robustness of Trace, we evaluate it with a blackbox and proprietary scaffold employing multiple model families (Gemini and Claude Opus). Our evaluation identified the model family with an average 78% accuracy. Moreover, for the Gemini model family, the DPI employed by Trace revealed the entire system prompt and this has been confirmed by the developers. Trace therefore provides a fundamental first step towards attacker agent forensics.

原文依据