Untrusted Input Execution¶
Core Idea¶
Attacker-influenced input crosses a boundary from a data role into a control or authority role, and a correctly-operating intermediary executes it with the intermediary's own authority — so the attacker borrows the defender's privilege without the intermediary ever breaking its rules. The fault is not in the interpreter but at the boundary, where the data-vs-control separation was held by convention rather than by construction; effective authority becomes the union of the intermediary's standing and the attacker's intent.
How would you explain it like I'm…
The Fake Note Trick
Hidden Orders In Data
Data Crossing Into Control
Broad Use¶
- Software security: SQL, command, and XSS injection; SSRF and CSRF, where user input reaches a parser that treats it as control.
- Language-model agents: prompt injection — retrieved content crosses into the instruction channel and is executed with the agent's tool authority.
- Molecular biology: viral integration and bacteriophage replication, where a host cell runs foreign DNA with its own ribosomes — the structure with no principal.
- Animal behavior: brood parasitism and pheromone mimicry — crafted data crosses into a host's behavioral-control channel.
- Social engineering: pretexting and authority-impersonation, where a human is the switchable interpreter who acts on the attacker's instruction.
- Bureaucratic / legal: forged-authorization execution and apparent authority — a clerk wields the institution's standing for the forger.
- Supply chains: a typosquatted package whose install script runs with the build's privilege.
Clarity¶
Separates did the intermediary malfunction or get misidentified? from did input cross a data-to-control boundary and execute with the intermediary's own authority? — relocating the diagnosis from "the system was tricked" to the boundary, and exposing separation by construction versus by convention.
Manages Complexity¶
Compresses a per-vulnerability arms race into one boundary-and-authority analysis with a three-move fix family: separate roles structurally, inertise the crossing, or reduce the intermediary's authority — never make the interpreter smarter.
Abstract Reasoning¶
Licenses portable moves: locate the boundary not the interpreter; trace intent provenance separately from actor identity; test construction versus convention; read authority as union or intersection; and strip the attacker to test for structural inevitability.
Knowledge Transfer¶
- Across software: prepared statements, argument-array execution, and text-only DOM APIs are one structural-separation move in many costumes.
- Into AI and finance: demoted content roles for an LLM, out-of-band confirmation on a wire transfer, and signed dependencies are the same fix.
- The constant lesson: a correctly-functioning interpreter is not a defense, so the 1988 capability fix reappears as OAuth scopes, sealed roles, and signed authority chains.
Example¶
In SQL injection a user-supplied field ' OR '1'='1 reaches a query parser that
— operating exactly per its grammar — executes it with the application's
database authority; the structural fix is a prepared statement, which compiles
the template with typed placeholders so no input content can be re-parsed as
command, driving the breach probability to zero by construction.
Relationships to Other Primes¶
Foundational — no parent edges in the catalog.
Children (3) — more specific cases that build on this
- Confused Deputy is a kind of Untrusted Input Execution — child of emergent untrusted_input_execution
- Control / Data Channel Confusion is a kind of Untrusted Input Execution — child of emergent untrusted_input_execution
- Data-Control Plane Breach is a kind of Untrusted Input Execution — child of emergent untrusted_input_execution
Not to Be Confused With¶
- Untrusted Input Execution is not its child Confused Deputy because the deputy adds a principal triad and foregrounds the authority-misuse facet, whereas the parent commits to none of the triad — only the bare boundary-crossing skeleton all children share.
- Untrusted Input Execution is not Access Control because access control is the permission gate deciding who may act, whereas this breach occurs while the gate answers correctly — the attack rides in on trusted input rather than breaking the check.
- Untrusted Input Execution is not External Compromise because external compromise is a malfunction (stolen credential, interpreter bug), whereas this requires the intermediary to operate correctly and exploits only the structural fact that un-inertised input crosses into control.