-
Tier 2
Context isolation
(Context isolation — separate untrusted content from system instructions)
An LLM processes everything in its context window as a single stream of tokens; it has no innate ability to tell instructions apart from data. If an attacker can place content where the model treats it as instruction, they control the agent. Context isolation prevents that by structurally separating untrusted content from system instructions at prompt construction time, so the boundary is enforced before the model ever sees the input.
why it helps Indirect prompt injection plants instruction-shaped content in a source the agent retrieves later (memory, a RAG document, or a tool result) so it executes when the agent reads it rather than when a user sends it. Structural isolation places every retrieved document in a labelled segment the system prompt marks as data only, so injection content in that segment cannot be interpreted as instruction.
-
Tier 2
Input sanitisation
(Input sanitisation — enforcing the data/instruction boundary before content reaches the model)
An LLM cannot distinguish data from instructions on its own: that boundary has to be enforced at the point where external content enters the prompt. Input sanitisation does this by normalising, filtering, and structurally segmenting untrusted content before the model ever sees it, so retrieved documents, tool results, and user messages are treated as data rather than commands.
why it helps Memory Poisoning works by writing attacker-controlled content into the agent's memory store, where it is later retrieved and treated as trusted context. Sanitising inbound content before it is written strips or neutralises injection payloads at the entry point, before they can persist into memory.
-
Tier 2
MCP sanitisation
(MCP response sanitisation — validate and normalise tool outputs before they re-enter the LLM context)
An MCP server response is content the LLM will reason over next. The model cannot distinguish tool output from instruction: that boundary must be enforced at the client, before the payload enters the context window. MCP response sanitisation applies schema validation, Unicode normalisation, control-token stripping, and structural wrapping to every tool result at the response boundary, so adversarial content embedded in a server response cannot redirect the agent's planner.
why it helps Indirect prompt injection plants adversarial instructions in external content the agent will retrieve or receive, relying on the model treating that content as authoritative. Sanitising at the MCP response boundary strips injection payloads and wraps the cleaned content as labelled data before it can reach the planner or be persisted to memory.
-
Tier 2
Mem anomaly
(Memory anomaly detection — runtime detection of poisoning that slipped past validation)
An agent's memory store can receive adversarial content that passes schema and policy validation because the content is structurally valid but statistically unusual. Memory anomaly detection addresses this by monitoring write rates, embedding distances, provenance tags, and retrieval patterns at runtime, and quarantining writes whose statistical signatures diverge from the established baseline.
why it helps Memory Poisoning is the injection of adversarial content into an agent's memory store so that it influences future retrievals and, through them, the agent's reasoning and output. This control detects poisoning attempts by monitoring for the statistical signatures they produce: abnormal write rates from a single source, embeddings that fall far outside the established cluster for a topic, provenance tags that do not match the actual ingestion path, and retrieval distributions that shift away from previously stable results.
-
Tier 2
Mem validate
(Memory content validation — a write-boundary gate on what enters the agent's memory store)
An agent's memory store is a persistent surface: anything written to it can be retrieved by any agent, in any session, for the lifetime of the corpus. Memory poisoning exploits that persistence by writing adversarial content that steers the agent's reasoning long after the attacker has gone. Write-boundary validation prevents this by running every candidate memory write through schema, policy, and provenance checks before it is committed. Content that fails any gate is rejected and never reaches the store.
why it helps Memory Poisoning is the injection of adversarial content into an agent's short- or long-term memory so that future retrievals steer the agent toward attacker-chosen outcomes. Write-boundary validation removes the attacker's ability to commit that content: a candidate write that fails schema, policy, or provenance validation is rejected before serialisation, so it cannot influence any subsequent retrieval.
-
Tier 2
Model registry
(Model registry — version pinning, canary, rollback)
An agent loads whichever model weights are available at startup unless the runtime is told exactly which artifact to load. If a poisoned or regressed weight is published to the model store, the agent picks it up silently on the next restart. A model registry prevents that: every artifact is registered with a cryptographic checksum and an approval stage, the agent runtime loads by explicit version pin, and new versions must pass a canary evaluation before promotion to production.
why it helps Prompt Injection includes model-poisoning as a subclass: a fine-tuned weight with embedded adversarial behaviour can reproduce injection effects without a prompt-level trigger. A poisoned weight cannot enter production without an explicit approval-stage transition, and canary comparison against the prior production version surfaces behavioural deviation before full rollout.
-
Tier 2
PI defences+
(Advanced prompt-injection defences — spotlighting, delimiter gate, dual-LLM)
Prompt injection succeeds when untrusted content entering an agent's prompt is indistinguishable from trusted instruction. Three layered techniques address that: spotlighting tags untrusted content with a machine-readable origin mark before it reaches the model; delimiter defence rejects input carrying reserved framework tokens before the model is called; and dual-LLM extraction routes attacker-influenceable content through a quarantined model that holds no tool access, so injected instructions cannot reach the model that can act on them.
why it helps Memory poisoning via indirect prompt injection plants instructions in retrieved content so they steer the agent as if they were system directives. Spotlighting makes the provenance of every content span legible to the model, so poisoned RAG content cannot impersonate a trusted instruction. Dual-LLM extraction ensures the quarantined model that reads poisoned content cannot invoke any tool, so the injection cannot propagate to the execution path regardless of whether the model honours its spotlight rule.
-
Tier 2
Provenance tracking
(Output provenance tracking — record the source of every claim an agent makes)
When an agent produces a claim derived from retrieved data, that claim needs a record of where it came from: the source document, version, and retrieval time. Without that record, a downstream verifier cannot distinguish a well-grounded output from a fabricated one, a tampered one, or a poisoned one. Provenance tracking attaches source attribution to every claim, carries it through each transformation in the pipeline, and surfaces it in audit logs and user-facing interfaces.
why it helps Memory Poisoning introduces adversarial content into the agent's memory store; quarantining it after detection requires knowing which stored entries contributed to a given output. Per-claim provenance records the retrieval IDs that grounded each claim, giving incident response a starting point for identifying and removing poisoned entries.
-
Tier 2
Session isolation
(Session-scoped memory isolation — preventing cross-session context bleed)
An agent that serves multiple users stores conversation history, retrieved facts, and intermediate state in a memory layer. If that layer is not scoped to the originating session, one user's writes can reach another user's retrieval path. Session-scoped memory isolation prevents that by enforcing a hard boundary at the storage layer, so each session can only read and write its own state.
why it helps Memory Poisoning includes a cross-session and cross-tenant variant: a user who can write to a shared memory store may place content that another session later retrieves as its own context. Session isolation closes that path by ensuring that memory written in one session is structurally unreachable from any other, regardless of the content's nature.
-
Tier 2
Vector ACL
(Permission-aware vector retrieval — ACLs at the retrieval boundary)
A vector store returns results by embedding-space proximity, not by who is asking. Without a per-principal filter applied before similarity ranking, a query from tenant A can surface tenant B's vectors if the embeddings are close enough. Vector ACL closes that gap: every retrieval call is scoped to the requesting principal's namespace or payload partition before the store ranks any results, so cross-principal hits are structurally impossible rather than merely unlikely.
why it helps T1 Shared Memory Poisoning names the scenario where a vector written into one tenant's partition is later retrieved by a different tenant through embedding-space proximity. Per-principal namespace partitioning makes that retrieval structurally impossible: a query scoped to the requesting principal's namespace cannot return vectors written to a different namespace, regardless of similarity score.
-
Tier 3
Memory-poison defence
(Memory-poisoning defence — embedding-space anomaly detection and retrieval re-ranking)
An agent that reads from a vector store assumes the stored content reflects what was legitimately written. An adversary who can write to that store can inject passages that divert the agent's retrieval toward attacker-controlled content. This control applies two defensive layers: anomaly detection on writes, which quarantines incoming embeddings that are statistical outliers relative to existing cluster centroids; and re-ranking on reads, which uses a cross-encoder or probe-gradient scorer to demote adversarial candidates after dense retrieval. Both layers are research-stage. No turnkey production implementation exists as of catalogue version; deploy additively on top of Tier 2 baseline controls.
why it helps Memory Poisoning is the injection of adversarial content into an agent's persistent or shared memory store so that the agent retrieves and acts on attacker-controlled passages. Embedding-space anomaly detection intercepts statistically anomalous vectors before they are committed to the store; retrieval re-ranking demotes adversarial passages after dense retrieval is already deceived. Neither layer stops slow-drift poisoning that stays within statistical thresholds; both reduce severity for the pattern-injection scenario that peer-reviewed attack research documents.