arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.01186cs.CR
收藏

Trace:通过终端行为指纹揭示AI攻击代理

Trace: Unmasking AI Attack Agents Through Terminal Behavior Fingerprinting

University of Missouri-Kansas City(密苏里大学堪萨斯城分校)

Murali Ediga, Sudipta Chattopadhyay

AI总结:

本文提出Trace框架,通过终端命令序列识别AI攻击代理模型家族,利用防御性提示注入策略提取系统提示,提升攻击意图分析能力。

摘要:

AI驱动的渗透测试代理现在能够自主在受侵网络中执行攻击。识别控制活跃会话的模型家族为理解攻击意图和开发防御措施提供了有价值的信息。本文介绍Trace,一种用于AI攻击代理的新型多阶段归因和法证框架,利用终端命令序列。一旦Trace识别出攻击者的模型家族,它会通过精心设计的负载引导防御性提示注入(DPI)策略到攻击模型中,目的是从攻击模型中提取系统提示,从而揭示有价值的信息以理解攻击意图并促进进一步的法证调查。我们的方法围绕一个Linux捕获-the-flag(CTF)盒子实现。攻击代理通过三种不同的支架和七个前沿模型家族增强。评估显示,Trace在准确指纹化攻击模型家族方面达到了宏F1分数0.981(在推广到未见过的支架时为0.815)。此外,指纹引导通过精心设计的负载对某些模型家族进行DPI,平均从81.9%的非Claude会话中提取系统提示(最高达98.3%)在0.736 Sentence-BERT保真度下,比盲目部署高1.88倍。最后,为验证Trace的鲁棒性,我们使用黑盒和专有支架评估了多个模型家族(Gemini和Claude Opus)。评估显示,识别模型家族的平均准确率为78%。此外,对于Gemini模型家族,Trace使用的DPI揭示了整个系统提示,这已由开发者确认。因此,Trace为攻击代理法证提供了基础性的第一步。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑