Skip to content

Compaction injection

Adversarial transforms that attack the context-compaction trust boundary via poisoned summaries.

Module: dreadnode.transforms.compaction_injection

Attacks the context-compaction trust boundary (OpenAI “self-generated prompt injections in compaction summaries”). Pairs with the compaction_injection_detected scorer.

TransformDescription
compaction_summary_injectionEmbed a directive (tool ban / word cap / “ignore developer”) into a compaction summary under a benign header

See Transforms for how to apply transforms with any attack.