Prompt filtering only addresses one attack path, but agentic risk also includes supply-chain tampering, over-privileged tools, memory poisoning, and rogue runtime behaviour. A filter cannot verify whether the agent’s model, MCP server, or attached identity is trustworthy, and it cannot contain a bad decision once the agent starts executing. That is why runtime authority and provenance both matter.
Why prompt filtering only covers part of the attack surface
prompt filtering is useful, but it only inspects one input path. Agentic applications also execute actions, chain tools, call external services, and maintain state, so an attacker can succeed without ever placing a harmful instruction in the visible prompt. The real control question is whether the agent can be trusted to decide, act, and persist safely once execution begins.
That means the security boundary is wider than prompt text. A malicious or tampered model, connector, or MCP server can still shape behaviour, and a benign prompt can still trigger unsafe output if the surrounding runtime is compromised or over-permitted. The issue is not just what the agent reads, but what it is allowed to do next.
For a broader view of how agent risk changes as autonomy increases, the AI Agents vs Agentic AI guide is useful because it frames how identity, access, and risk change as systems move from chat to autonomous action.
Why runtime authority and provenance matter more than the filter
An agent that can invoke tools, write files, approve workflows, or forward data needs controls at the point of action, not only at the point of input. Runtime authority determines which actions are permitted in context, while provenance tells you whether the model, tool, server, or dependency participating in that decision is legitimate and intact.
That is why agentic systems need least privilege, per-action authorisation, and source verification for every component in the execution chain. If the agent inherits excessive access, a successful prompt filter still leaves a high-impact runtime. If the agent consumes an untrusted MCP server or poisoned dependency, the model may behave correctly from its own perspective while still acting on corrupted inputs or instructions.
The AI Agent Authorisation Guide is directly relevant here because it focuses on task-scoped access, just-in-time permissioning, and per-action decisions. For MCP-specific trust boundaries and token handling, the MCP Security Guide explains why server trust and authorisation model details matter as much as the prompt itself.
What failure looks like in practice
When prompt filtering is treated as the main defence, the common failure modes are overreach and persistence. Overreach happens when the agent can access more tools, data, or side effects than the task requires. Persistence happens when a bad decision is not isolated, reversed, or detected quickly enough, so one unsafe action cascades into many.
Memory poisoning, tool misuse, supply-chain tampering, and rogue runtime behaviour all bypass a text-only defence because they do not depend on a malicious prompt alone. A poisoned memory entry can steer later decisions, a compromised connector can rewrite the agent’s context, and a rogue runtime can keep acting after the original request is over. The system may still appear “filtered” while the actual execution path is unsafe.
The AI Agent Memory Security Guide is helpful for understanding why memory isolation and write controls matter, and the Agentic AI Security Guide connects those failure modes to a layered threat model across inputs, memory, tools, orchestration, and identity.
Risk and Threat Considerations
Prompt filtering creates a false sense of safety when the real risk is execution authority. Once an agent can call tools or act through attached identities, an attacker only needs one path that bypasses the filter to reach data, systems, or downstream workflows.
Failure mechanism: The attacker abuses a non-prompt path, such as a compromised MCP server, poisoned memory, over-scoped token, or delegated tool permission, so the agent executes harmful actions while the prompt layer remains clean.
Impact: The result can be data exposure, unauthorised actions, lateral movement through connected systems, or a long-lived compromise that persists beyond the original conversation.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 define the specific risk controls and attack patterns relevant to this topic.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Agent authority and attached identities are central to the runtime-risk question. |
| ASI04 — Agentic Supply Chain Vulnerabilities | The question includes tampering of models, MCP servers, and dependencies. | |
| ASI06 — Memory & Context Poisoning | Memory poisoning is named as a distinct attack path beyond prompt filtering. | |
| Recommendation — Enforce per-action privilege checks and remove standing agent authority. Validate agent components and dependencies before they can influence execution. Isolate memory writes and monitor for poisoned or cross-session context. | ||
| OWASP Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | Agent tool access and attached identity can exceed the task scope. |
| Recommendation — Reduce agent permissions to task-scoped, just-in-time access. | ||
Practitioner Guidance
What to prioritise: Treat prompt filtering as a hygiene control, not a trust boundary. The first design question is whether every tool, connector, memory write, and delegated permission is separately authorised and observable at runtime.
What to verify: Confirm that the agent can only invoke the minimum tool set needed for the task, that approvals are enforced per action, and that the provenance of external components is checked before they influence execution. If you cannot attribute an action to a trusted runtime decision, you do not yet have a safe agent boundary.
Practitioner takeaway: The decisive control is not “can we block bad text?”, it is “can we constrain and verify what the agent is allowed to do after the text has passed?”
Related resources from NHI Mgmt Group
- Why does runtime security matter more than prompt filtering for agentic applications?
- What breaks when teams rely on prompt filtering for agentic applications?
- What are the core risks identified by the OWASP Agentic Top 10?
- When does just-in-time access reduce risk for agentic AI, and when does it fall short?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 22, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org