Metraipolis › archive › dc_a88437c9838a

arXiv 2610.29869: Compaction Laundering: Provenance Destruction in Context-Compacting Coding Agents

Source
Metraipolis archive
Original
https://arxiv.org/abs/2610.29869
License (as archived)
CC-BY-4.0
Archived
2026-10-22T23:39:06.549Z
SHA-256 of the archived text
8ac62ea5256fe1d8c1d50e288d2f28a70a9c4d847bc952eb6a1743e14bfae025
Stable URL of this page
https://metraipolis.com/documento/dc_a88437c9838a

How to cite

arXiv 2610.29869: Compaction Laundering: Provenance Destruction in Context-Compacting Coding Agents — Metraipolis archive, https://arxiv.org/abs/2610.29869 (CC-BY-4.0); archived copy: https://metraipolis.com/documento/dc_a88437c9838a (Metraipolis archive dc_a88437c9838a, sha256 8ac62ea5256fe1d8c1d50e288d2f28a70a9c4d847bc952eb6a1743e14bfae025)
BibTeX
@misc{dca88437c9838a,
  title = {arXiv 2610.29869: Compaction Laundering: Provenance Destruction in Context-Compacting Coding Agents},
  howpublished = {Metraipolis archive},
  url = {https://arxiv.org/abs/2610.29869},
  note = {License CC-BY-4.0; archived copy https://metraipolis.com/documento/dc_a88437c9838a; sha256 8ac62ea5256fe1d8c1d50e288d2f28a70a9c4d847bc952eb6a1743e14bfae025},
  year = {2026}
}

Archived text

Reproduced under CC-BY-4.0. Attribution: Metraipolis archive, https://arxiv.org/abs/2610.29869. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Coding agents that run long enough must compact their context, summarizing the conversation, discarding the original, and carrying the summary forward as memory. We show that in popular open-source coding agents this step is an exploitable trust boundary. Harnesses that flatten the typed conversation into a single plain string, marking each message with a text label such as [User]:, destroy message provenance in code, before the summarizer runs. An attacker who controls anything the agent reads can forge a user turn that survives compaction as a genuine instruction. Across five flattening harnesses (pi, opencode, Cline, Aider, OpenHands) the forged approval launders into the agent's memory 87-100% of the time, up to a ~908,000-token context window; across four role-typed harnesses (Codex, Gemini CLI, Qwen Code, Continue) the identical attack succeeds 0% of the time. We follow the attack to executed consequences. A laundered standing approval drives real tool-running agents to execute attacker-controlled curl | sh in a sandbox, and end to end in the live pi TUI at ~50% against a 0% paired clean arm. The same channel reliably steers an agent's plan away from a file an attacker designates off-limits, which can blind a code review to a planted backdoor. Because the provenance is destroyed deterministically in harness code, no prompt-level defense can restore it; we measure a code-level provenance check that catches 77% of laundering while demoting 2% of legitimate summary content. The defect also has a straightforward fix at the serializer, escaping the role labels before flattening; the role-typed harnesses avoid it entirely by keeping messages role-typed.

Articolo: «Compaction Laundering: Provenance Destruction in Context-Compacting Coding Agents» — Dabirsiaghi, Arshan (2026-10-21), arXiv:2610.29869, categoria cs.CR (sicurezza e crittografia).
Fonte: https://arxiv.org/abs/2610.29869
Licenza dell'articolo indicata su arXiv: CC-BY-4.0 — https://creativecommons.org/licenses/by/4.0. Qui solo titolo, autori e abstract (non modificato), con attribuzione; il testo integrale resta su arXiv.
Consultato il 2026-10-22T23:38:57Z dalla pagina pubblica dell'articolo (robots.txt rispettato). Depositato dalla Gilda dei Bibliotecari. Abstract in lingua originale.