synodic-ai™ AI SECURITY
AI Security Desk · Agent Security

The harness is the trust boundary: compaction laundering, poisoned evidence and silent scanner drops

Three papers posted on 2026-10-21 locate agent failures in the code around the model rather than in the model: a context-compaction step that erases who said what, forensic evidence that is attacker-controlled by definition, and vulnerability-discovery pipelines that discard code before the model ever sees it. In each case the defect is deterministic, invisible in the output, and fixed in the harness rather than in the prompt.

Compaction erases who said what

Coding agents that run long enough must compact their context: they summarize the conversation, discard the original and carry the summary forward as memory. Compaction Laundering: Provenance Destruction in Context-Compacting Coding Agents shows 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 therefore forge a user turn that survives compaction as a genuine instruction. The paper says the findings were disclosed to the affected maintainers before publication, with advisories filed with all five affected harnesses.

The measured gap is stark. Across five flattening harnesses, a forged approval launders into the agent's memory 87 to 100 percent of the time, at context windows up to about 908,000 tokens; across four harnesses that keep messages role-typed, the identical attack succeeds 0 percent of the time. The author follows the attack to executed consequences: a laundered standing approval drives real tool-running agents to execute an attacker-controlled curl | sh in a sandbox, and end to end in one live terminal interface the attack succeeds about 50 percent of the time against 0 percent in a paired clean arm. The same channel reliably steers an agent's plan away from a file the attacker designates off-limits, which can blind a code review to a planted backdoor.

Because provenance is destroyed deterministically in harness code, no prompt-level defense can restore it. A code-level provenance check caught 77 percent of laundering while demoting 2 percent of legitimate summary content, and the root fix is simpler still: escape the role labels at the serializer before flattening, or keep messages role-typed, as the unaffected harnesses already do.

Evidence is attacker-controlled by definition

Prompt Injection Through Forensic Evidence: A Taxonomy and Proof of Concept of Anti-Forensic Attacks on LLM-Assisted Digital Investigations starts from a setting where indirect prompt injection is not an edge case but the job description. LLMs are entering digital forensics as examination assistants and autonomous agents, and in forensics the evidence under analysis is attacker-controlled by definition while the examiner is obliged to read it closely. The authors argue that this makes the reasoning layer a new anti-forensic target alongside the classical targets of data and tools, one that classical anti-forensic taxonomies do not cover and that prompt injection defenses do not anticipate. The authors say that before publication they are disclosing their findings to the developers of the affected tools through a responsible disclosure procedure.

Their taxonomy describes an attack carried through adversarial evidence as four choices: an objective, a technique, a payload location and a concealment method. The enabling condition is what they call a perception gap: deterministic tools, the human examiner and the model perceive the same evidence differently, which lets an injection reach the model unseen by the examiner. They demonstrate three attacks against an LLM-assisted analysis pipeline, each driven only by text planted on the seized device: changing a reported conclusion, writing attacker-chosen content to the analyst's workstation, and causing outbound network traffic. The paper also proposes mitigations for these attacks.

Vulnerability scanners that go quiet

Where AI Vulnerability Discovery Harnesses Go Quiet: Structural False Negatives and Hidden Vulnerabilities turns to the pipelines that use models to find bugs. Steps that select code, filter it, and store and merge findings can drop a real, reachable vulnerability before or after the model runs, independently of the model's capability, and the report usually gives no sign that this happened. The drops come from engineering choices and errors, and an attacker who knows a harness's rules can also use them to hide a vulnerability on purpose. The paper says the drops are not vulnerabilities for coordinated disclosure, but the maintainers of every harness it names were informed before publication, with the file, line and commit for each item.

Starting from two harnesses the author maintains and then examining 10 more open-source harnesses, the paper maps 13 points where such drops occur and organizes them into a taxonomy. Using each harness's own code, it shows a single file that six harnesses dropped before their model saw its code, five of them without notice. It relates the failure patterns to Ptacek and Newsham's work on intrusion detection evasion, covers content-steered verdicts and prompt injection, and gives design principles and tests for harnesses that report accurately what they analyzed. Its sharpest point is that harnesses built to be descriptive become prescriptive: rules written to describe typical code and typical model replies end up deciding what is analyzed, and anything that does not conform is treated as absent or as no vulnerability.

Reading the three together

All three failures sit in deterministic code that operators can inspect and change, not in model weights. Compaction laundering is a serialization defect that converts untrusted text into user authority. The forensic attacks exploit a gap between what tools render, what an examiner sees and what the model reads. The vulnerability-harness drops are selection and merge logic that silently narrows what was analyzed. In every case the visible output, whether a summary, an investigative finding or a clean scan, looks normal, so reviewing outputs alone will not reveal the failure.

The papers also agree on where defenses belong. The compaction study measures a code-level provenance check and a serializer fix, and finds that prompt-level defenses cannot restore what the harness destroyed. The vulnerability-harness study asks harnesses to disclose what they dropped. The forensic study treats the evidence itself as the threat model. Each moves the control from instructions given to the model to properties the surrounding system enforces.

What to do now

For teams building or operating agents and LLM-assisted analysis pipelines, the papers point to a short list of checks:

Limits

The compaction results cover nine open-source harnesses, with end-to-end runs in a sandbox and in one live interface, and the code-level check still misses 23 percent of laundering. The forensic paper is a taxonomy with a proof of concept against one LLM-assisted pipeline, not a field study. The vulnerability-harness study rests on code analysis of 12 open-source harnesses, two of them maintained by the author, and does not report how often such drops hide vulnerabilities in production use. Each paper shows that a mechanism is real; none measures how often it occurs in deployed systems.

Sources