Skip to content
LessWrong·Indexed by this site · Originally publishedDate not given· Defenses →SelectedAttention43

Catching split attacks across compression in long-context coding agents

Catching split attacks across compactions in long-context coding agents

AI summary

The authors release the LCM dataset and compare 7 monitoring strategies for catching split attacks across context compression in long-context coding agents. The dataset contains 30 paired honest and attack long-context Claude Code (Sonnet 5) sessions, each 1 million to 1.46 million tokens, each with 4 context compressions; the attack is split into an early planting step and a later execution step, separated by multiple compressions, and the attack version is regenerated by manually inserting tool calls into the honest transcript and then regenerating the compression summaries. Three monitoring models, GPT-6 Luna, MiniMax M3, and DeepSeek V4.1 Flash, are used to compare these strategies, looking only at tool call inputs and outputs and compression summaries, not at the chain of thought. At a 5% false positive rate, the baseline that scores each segment separately catches 73% on average, and the annotated history strategy that reads the segments in order and carries suspicious tool call markers to the next segment catches 93% on average. The dataset, transcript generation pipeline, monitoring code, and prompts have been released.

Why it was selected

At a 5% false positive rate, segment-by-segment monitoring catches 73% of split attacks on average, and the annotated history strategy raises this to 93%, providing a reproducible comparison baseline for long-context agent monitoring.

Read originallesswrong.com