TL;DR: Prompt injection turns LLM applications into a security problem with consequences that include data exfiltration, privilege escalation, and, in agentic systems, remote code execution, according to Panther. The practical answer is layered testing, tighter tool permissions, and continuous monitoring, because one successful injection can defeat prompt-only defenses.
NHIMG editorial — based on content published by Panther: Prompt Injection Security: How to Test for It and Reduce the Risk
By the numbers:
- 72% of organisations have experienced or suspect they have experienced a breach of non-human identities, 46% confirmed and 26% suspected.
Questions worth separating out
Q: How should security teams handle prompt injection in production LLM applications?
A: Security teams should treat prompt injection as a runtime control issue, not a content-moderation problem.
Q: Why do AI agents make prompt injection more dangerous than chat-only tools?
A: AI agents are more dangerous because they can act, not just generate text.
Q: What do teams get wrong about guardrails for prompt injection?
A: They treat guardrails as a prevention layer instead of a detection and containment layer.
Practitioner guidance
- Map trust boundaries for every AI input path Classify system prompts, user prompts, retrieved context, and tool outputs separately, then document which sources are trusted and which are not.
- Minimise the agent’s effective privilege set Use read-only connections where possible, separate high-risk tools from low-risk tools, and require human approval before any action that sends data, writes records, or executes code.
- Build adversarial tests into CI/CD Maintain a versioned corpus of direct injection, indirect injection, obfuscation, multi-turn escalation, RAG poisoning, and multimodal cases, then fail the build if the model complies with any of them.
What's in the full article
Panther's full blog covers the operational detail this post intentionally leaves for the source:
- Versioned attack-library structure for direct, indirect, and multimodal prompt injection tests
- Practical detection ideas for guardrail triggers, tool-call anomalies, and system prompt leakage
- Implementation notes for integrating probe tools such as garak and promptfoo into CI/CD
- Examples of detection-as-code workflows for AI-specific security monitoring
👉 Read Panther's blog on testing prompt injection and reducing risk →
Prompt injection security: are your runtime controls keeping up?
Explore further
Prompt injection is an identity and privilege problem once AI systems can act. The article is right to treat prompt injection as a security vulnerability, but the deeper governance issue is that agentic workflows inherit access control assumptions from IAM and NHI programmes. Once an AI system can read internal data, call tools, or send output externally, the question becomes who or what is authorised to do those things and under which constraints. Practitioners should govern the agent as a runtime identity, not just as a model.
A question worth separating out:
Q: Who is accountable when an AI agent takes an unsafe action?
A: Accountability should sit with the business owner of the agent, the team that provisioned the access, and the control owners responsible for monitoring and revocation. If no one can answer who approved the identity, the scope, and the oversight model, the governance framework is not complete enough for production.
👉 Read our full editorial: Prompt injection security: why testing and runtime controls matter