Direct and indirect injection both bypass filters
Attackers rephrase, encode, and reformat instructions to slip past keyword and regex-based defenses in either channel.
By risk
A model can't reliably tell your instructions apart from instructions hidden in the data it reads. Defense has to live outside the model-scrubbing input, redacting output, and denying high-risk actions by default.
Why it matters
Attackers rephrase, encode, and reformat instructions to slip past keyword and regex-based defenses in either channel.
An agent with tool access doesn't just repeat a hijacked instruction back-it can execute it against real systems.
Prompt-level mitigation shares a channel with the attack. Runtime infrastructure the attacker can't talk to is the only layer that holds.
What Lineation does
Incoming data is inspected before the agent ever sees it, stripping or flagging injection-pattern content.
PII, secrets, and credentials are redacted from outputs before they reach a user, tool, or external system.
An agent that reads support tickets has no business writing to the payments API-by policy, not by hope.
Every flagged attempt is captured for replay, so an injection attempt is visible and investigable.
How it works
Documents, web pages, and MCP responses are checked before ingestion.
Known injection-style content is removed or marked before the agent processes it.
Every proposed action is checked against least-privilege policy before execution.
PII, secrets, and credentials are stripped from output before it leaves the boundary.
Anything flagged is captured for replay and investigation.
FAQ
Direct injection is typed straight into the agent's input. Indirect injection hides in third-party content the agent later reads, making the victim someone else entirely.
A model can't reliably distinguish your instructions from instructions hidden in data it processes. Real defense has to sit outside the model, in infrastructure.
Private data access, exposure to untrusted content, and external communication, combined in one agent. Strip any one leg and exfiltration gets much harder.
Scrubbing targets known injection patterns embedded in untrusted data sources, not normal instructions from an authenticated user.
Inspection runs inline at the gateway with negligible added latency on the happy path.
See the full prompt injection guide for direct versus indirect injection and the lethal trifecta in depth.
Turn on input scrubbing and output redaction across your agents in minutes.