Analysis · DiggingBeagle record
An instruction can change authority without changing a single word
Where malicious text is placed, how it is serialized and whether it becomes remembered user intent can matter as much as its wording.
- Published
- Oct 31, 2026
Overview
A coding agent reading a repository README and the same agent reading a source file may encounter identical text yet assign it different weight. That difference is the subject of Where You Inject Matters, a controlled study in which instructions placed in repository guidance were substantially more effective for selected tasks than copies embedded in ordinary code or retrieved data. The research reports roughly 86 percent success for one README-based reconnaissance objective and 79 percent for one SQL-injection objective, with much lower corresponding code placements. Those figures describe the authors' task and harness, not the probability that a random README will compromise a production agent.
Tests that distinguish the mechanisms
For repository instructions, hold the malicious text constant and vary only its location. For role spoofing, inspect the typed message envelope, not just the displayed transcript. For memory, ask whether speaker attribution and source consent survive a retrieval and save cycle. For email, decode invisible characters before an action gate and confirm that no forwarded document leaves without the user's authorization. These are distinct controls because the authority changes at different points. Simply training the model to refuse suspicious wording does not validate how the host application carries source identity into later actions.
The canonical studies are role-spoofing, memory grounding, placement, and Unicode email evidence. Together they support a precise conclusion: before asking whether an agent obeyed the wrong instruction, establish who the application told the agent that instruction belonged to.