arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.21131cs.CRcs.AIcs.CLcs.LG
收藏

AI代理中的跨会话威胁:基准测试、评估与算法

Cross-Session Threats in AI Agents: Benchmark, Evaluation, and Algorithms

Intrinsec AI

Ari Azarafrooz

AI总结:

本文提出CSTM-Bench基准数据集,通过信息瓶颈方法评估跨会话检测,并引入CSR_prefix指标,用于评估检测算法的召回率与服务稳定性。

摘要:

AI代理的防护机制是无记忆的:每个消息都是孤立判断的,因此一个攻击者在数十个会话中扩散攻击会绕过每个会话检测器,因为只有累积的负载才携带攻击内容。我们为跨会话威胁检测做出了三个贡献。(1) 数据集。CSTM-Bench是26个可执行的攻击分类,按杀链阶段和跨会话操作(累积、组合、清洗、注入读者)分类,每个都绑定到七个身份锚点,以真实情况作为政策谓词的“违规”基础,加上匹配的无害-纯净和无害-困难干扰项。发布在Hugging Face上作为intrinsec-ai/cstm-bench,有两个54场景的拆分:稀释(组合性)和cross_session(12个通过闭环重写器产生的隔离不可见场景,该重写器在软化表面表述的同时保留跨会话痕迹)。(2) 测量。将跨会话检测框架为信息瓶颈到下游相关器LLM,我们发现,会话绑定判断器和将每个提示拼接成一个长上下文调用的完整日志相关器在从稀释到cross_session的转换中,大约失去一半的攻击召回率,这在任何前沿上下文窗口内都处于内部。范围:每个分片54个场景,一个相关器家族(Anthropic Claude),无提示优化;我们将其发布以激励更大的、多提供者数据集。(3) 算法和指标。一个具有限制内存的Coreset记忆阅读器,保留最高信号片段的K=50,是唯一一个在两个分片中召回率保持不变的阅读器。由于排名器重新排列破坏KV缓存前缀重用,我们将CSR_prefix(有序前缀稳定性,无LLM)提升为一个第一类指标,并将其与检测结合,形成CSTM = 0.7 F1(CSDA@action, precision) + 0.3 CSR_prefix,对排名器在召回率与服务稳定性单个帕累托前沿上进行基准测试。

英文摘要:

AI-agent guardrails are memoryless: each message is judged in isolation, so an adversary who spreads a single attack across dozens of sessions slips past every session-bound detector because only the aggregate carries the payload. We make three contributions to cross-session threat detection. (1) Dataset. CSTM-Bench is 26 executable attack taxonomies classified by kill-chain stage and cross-session operation (accumulate, compose, launder, inject_on_reader), each bound to one of seven identity anchors that ground-truth "violation" as a policy predicate, plus matched Benign-pristine and Benign-hard confounders. Released on Hugging Face as intrinsec-ai/cstm-bench with two 54-scenario splits: dilution (compositional) and cross_session (12 isolation-invisible scenarios produced by a closed-loop rewriter that softens surface phrasing while preserving cross-session artefacts). (2) Measurement. Framing cross-session detection as an information bottleneck to a downstream correlator LLM, we find that a session-bound judge and a Full-Log Correlator concatenating every prompt into one long-context call both lose roughly half their attack recall moving from dilution to cross_session, well inside any frontier context window. Scope: 54 scenarios per shard, one correlator family (Anthropic Claude), no prompt optimisation; we release it to motivate larger, multi-provider datasets. (3) Algorithm and metric. A bounded-memory Coreset Memory Reader retaining highest-signal fragments at $K=50$ is the only reader whose recall survives both shards. Because ranker reshuffles break KV-cache prefix reuse, we promote $\mathrm{CSR\_prefix}$ (ordered prefix stability, LLM-free) to a first-class metric and fuse it with detection into $\mathrm{CSTM} = 0.7 F_1(\mathrm{CSDA@action}, \mathrm{precision}) + 0.3 \mathrm{CSR\_prefix}$, benchmarking rankers on a single Pareto of recall versus serving stability.

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

↑