SYNTHESIS NOTE
Topics›Flaws›this note

Why does compression defense fail at the user prompt boundary?

ChannelGuard's COMPRESS gate blocks injected payloads when they appear at the end of messages, but leaks them when they appear at the start. The question explores why the same defense rule produces opposite outcomes across different communication channels.

Synthesis note · 2026-09-23 · sourced from Flaws

ChannelGuard's limitations section admits a design flaw in its own defense. The COMPRESS action keeps the first N=2 sentences of a message, which is a truncation heuristic with a positional premise: injected content trails the legitimate text. At the inter-agent gates (IB-2 through IB-5) the premise holds, and the compress step stopped every attack trace (a 100% compress-stop rate). At IB-0, the user-prompt gate, the compress band still leaked in 23.4% of cases (58 of 248), because user prompts more often place the payload in the first two sentences.

Same rule, two channels, opposite outcomes. The difference is where attackers write in each channel: appending to tool results, memory entries and messages, but leading in a user prompt. A sanitizer therefore encodes an assumption about attacker behavior, and attacker behavior is not uniform across channels. A gate design validated on one channel says little about another. That is a second reason a single defense placed at one boundary is weaker than it looks; see Do internal agent hops in pipelines need security monitoring?.

A caution on the 100%. It is measured on the paper's attack traces, and if those traces append the payload by construction (as synthetic poisoned tool results often do), the figure shows the gate works against appended attacks, not against an adversary who prepends. That is a plausible reading, not the paper's. It would mean the inter-agent gates are exposed to the same attack that leaked at IB-0. Appending is also a common convention among attacks generally: How vulnerable are reasoning models to irrelevant text? is another appended-payload result, which is what a first-N truncation gate is tuned to catch. The same open question sits on another defense figure in the vault: Does ChainGuard's defense hold against adaptive attacks? asks whether a reported reduction was measured against an attack built for that defense. Until the attack's construction is known, both numbers are a best case for the defender.

It is to the authors' credit that they report the weak spot with a count. Defense papers rarely quantify their own leak rate, and this one turns a flaw into a design instruction: see Should sanitizers re-score their compressed output before passing it?.

Inquiring lines that read this note 7

This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.

Can defenses detect attacks composed across multiple skills? Do LLM explanations accurately predict LLM outputs? How can we verify agent claims against their actual capabilities and actions?

Related concepts in this collection 4

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
14 direct connections · 107 in 2-hop network ·medium cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

a compress gate that keeps the first two sentences assumes injections are appended — at the user-prompt boundary payloads sit up front and leak