TL;DR: LLM jailbreaks use roleplay, prompt injection, prompt leaking, and other adversarial inputs to push models past safety rules and into harmful or policy-violating output, according to Lakera. The security problem is not just prompt hygiene but the assumption that model behaviour stays bounded once access is granted.
At a glance
What this is: This is an analysis of LLM jailbreaking and why prompt-only safety controls fail when adversarial inputs can steer models into unsafe or policy-breaking responses.
Why it matters: It matters because teams governing AI agents, LLM-powered apps, and human-facing AI workflows need controls that address runtime behaviour, not just prompt design or content filters.
Context
LLM jailbreaking is the practice of using crafted inputs to make a model ignore its intended instructions and produce outputs outside policy. In enterprise settings, the governance problem is not simply bad prompting. It is the assumption that a model remains safely bounded after access is granted.
The article shows several jailbreak patterns, including prompt injection, prompt leaking, roleplay, and disguised instructions. Those techniques matter to AI governance because they turn the prompt channel into an attack surface that can change model behaviour, expose hidden instructions, or trigger unsafe actions.
For practitioners, this sits at the intersection of AI security, content moderation, and identity-style access control for AI systems. Once an LLM can be influenced by adversarial input, the control question shifts from what the model is allowed to read to what it can be induced to do.
Key questions
Q: What breaks when LLM guardrails are the only control?
A: Guardrails can reduce obvious misuse, but they do not stop an attacker from shaping context, poisoning retrieved data, or steering a model toward an unsafe tool call. If the downstream system trusts the model too much, the real failure is at the integration boundary, not the content filter.
Q: Why do jailbreak prompts create a security problem for AI governance?
A: Jailbreak prompts create risk because they can override the model’s intended behaviour and reveal control logic that should remain hidden. Once attackers can see or influence those instructions, they can tune attacks around the safeguards. That makes the issue one of runtime authorisation and control visibility, not just content quality.
Q: How should security teams test enterprise LLMs for prompt injection risk?
A: Test the model inside the real application path, not in isolation. Include hidden instructions, malicious retrieved content, multi-turn escalation, and language variations, then measure whether the model reveals policy text, ignores constraints, or produces unsafe tool instructions. A model that passes simple prompts may still fail once context, memory, and retrieval are involved.
Q: Should organisations rely on content filters to stop LLM jailbreaks?
A: No. Content filters help, but they do not solve the underlying problem that the model can be steered by adversarial context. Organisations need layered controls, including separation of instructions from data, red teaming, moderation, and limits on which workflows can reach the model in the first place.
Technical breakdown
How prompt injection overrides the intended instruction path
Prompt injection works by inserting attacker-controlled text into the input flow so the model follows the injected instruction instead of the original task. Because LLMs are sensitive to context ordering, an injected directive can reframe the conversation, suppress the system intent, or cause the model to reveal restricted information. In practice, the model is not being hacked in the classic code-execution sense. It is being socially engineered through language. That makes the attack especially hard to solve with static prompt templates alone, because the malicious content can look like ordinary user input.
Practical implication: treat user-supplied text as untrusted content and test how your model behaves when instructions and data are mixed.
Why prompt leaking is an access-control problem for model instructions
Prompt leaking is a jailbreak pattern where the attacker tries to elicit hidden system prompts, developer instructions, or internal policy text. The problem is not only disclosure. Hidden instructions often encode the model’s safety boundary, routing logic, and task constraints. When those are exposed, the attacker gains a map of the control plane around the model and can adapt future inputs accordingly. For AI governance, prompt leakage is closer to privilege exposure than ordinary content moderation failure, because it reveals the rules that shape runtime behaviour.
Practical implication: protect system prompts and policy instructions as sensitive control assets, not as harmless implementation details.
Why roleplay and DAN prompts defeat policy-based guardrails
Roleplay jailbreaks and Do Anything Now style prompts exploit the model’s tendency to follow conversational framing. By asking the model to inhabit a character or alternative mode, the attacker creates a competing instruction hierarchy that can override the original guardrail language. This is why prompt controls alone are fragile: they assume the model will preserve the intended task boundary even when the conversation becomes adversarial. In effect, the attacker is changing the execution context, not just the wording. That is a behavioural problem, not a formatting problem.
Practical implication: validate model output under adversarial roleplay and mode-switch attempts before trusting a prompt-only safety design.
Threat narrative
Attacker objective: The attacker wants the model to ignore its intended guardrails and produce unsafe, hidden, or policy-breaking output on demand.
- Entry begins when an attacker supplies adversarial text, often disguised as an ordinary user request or embedded instruction, to influence the model’s behaviour.
- Credential-like control access is gained when the model reveals hidden prompts, instruction hierarchy, or internal policy text that should have remained opaque.
- Escalation occurs when the attacker uses that behavioural leverage to bypass safety rules and force the model into harmful, misleading, or policy-violating output.
- Impact is the production of unsafe responses, exposure of internal instructions, or downstream misuse of the model inside enterprise workflows.
Breaches seen in the wild
- iOS apps leaking hard-coded secrets: Cybernews found 71% of 156,080 iOS apps leak hard-coded secrets, with open cloud storage and Firebase databases exposing user data.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Prompt controls alone are a brittle control plane: The article shows that jailbreaks do not need code execution, only enough conversational leverage to bend model behaviour. That means prompt design is useful but insufficient as a primary security boundary. For AI governance, the control must move from static wording to runtime behaviour oversight, especially where the model can be induced to change task interpretation mid-session.
The hidden prompt is now sensitive control data: System prompts and developer instructions are not just implementation scaffolding when they determine safety, routing, and action scope. Once attackers can extract them, they can tune future inputs around the guardrails rather than through them. This is a governance problem about protecting decision logic, not just protecting content.
LLM jailbreaking is an identity and authorisation problem for AI systems: The model is treated as if its behaviour remains bounded after access is granted, but the article shows that access itself is the attack surface. That assumption fails whenever user input can alter what the model is authorised to reveal or do. The implication is that AI systems need explicit runtime guardrails, not only pre-prompt policy language.
Jailbreak resistance becomes a workflow issue, not a model-only issue: The article’s mitigation themes point toward layered testing, moderation, and red teaming rather than faith in any single prompt template. That aligns with the broader reality that AI security has to be governed across the full execution path. Practitioners should therefore judge model risk by how it behaves under adversarial interaction, not by how safe it sounds in normal use.
Adversarial input is the right named concept here: These attacks succeed because the model cannot reliably distinguish trusted instruction from malicious user-shaped context. That is the core failure mode behind prompt injection, prompt leaking, and roleplay jailbreaks. For practitioners, the lesson is to treat adversarial input as a structural control problem, not a content anomaly.
What this signals
Adversarial input is now a governance primitive: LLM programmes should assume that any user-facing or internal prompt path can be manipulated. That changes how teams think about trust, because the control boundary is no longer the model alone but the whole prompt-to-output pathway.
Prompt leakage deserves the same treatment as exposure of sensitive configuration, because it gives attackers the model’s safety map. For practitioners, the right response is to govern instructions, moderation, and output handling as one control surface rather than three separate problems.
For practitioners
- Harden prompt boundaries Separate system instructions, developer guidance, and user content so injected text cannot easily masquerade as policy or routing logic.
- Red team jailbreak paths Test prompt injection, prompt leaking, roleplay, and mode-switch attempts against every LLM workflow that handles internal data or external users.
- Protect hidden instructions Treat system prompts, safety rules, and tool-routing logic as sensitive security artefacts and restrict who can view or modify them.
- Add runtime moderation checks Inspect outputs before release so the model cannot directly expose unsafe, toxic, or policy-violating content to end users.
- Govern AI access by use case Limit which workflows can call the model, what data they can submit, and which actions the model may trigger after generation.
Key takeaways
- LLM jailbreaks show that adversarial users can steer models past their intended safety boundaries with language alone.
- The practical risk is not just harmful output but exposure of hidden instructions that define how the model is governed.
- Teams need layered runtime controls, adversarial testing, and instruction separation if they want AI guardrails to hold under attack.
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 addresses the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI01 — Agent Goal Hijack | Jailbreaks steer model behaviour away from intended goals through adversarial prompts. |
| ASI09 — Human-Agent Trust Exploitation | Roleplay and social framing exploit the model's tendency to trust conversational cues. | |
| Recommendation — Test prompt paths for goal hijack attempts and block instruction overrides that change task intent. Red team for trust abuse patterns that persuade the model to ignore its original guardrails. | ||
| NIST AI RMF | GOVERN — AI Governance and Accountability | The article is fundamentally about governance boundaries and accountability for model behaviour. |
| MAP — AI Risk Identification and Mapping | The article maps multiple jailbreak patterns and their operational implications. | |
| Recommendation — Assign clear governance ownership for model behaviour, safety rules, and escalation paths. Map jailbreak scenarios to each model workflow and identify where adversarial prompts can alter behaviour. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The article frames a boundary problem in what the model can be induced to access or reveal. |
| Recommendation — Restrict model access paths and authorisations so prompts cannot expand what the system may disclose. | ||
Key terms
- Jailbreak Prompt: A jailbreak prompt is adversarial input designed to bypass an LLM's policy or safety behaviour. In practice, it often uses roleplay, long context, or encoding tricks to alter how the model prioritises instructions and to push it toward disallowed output.
- Prompt Injection (Agentic): An attack where malicious instructions are embedded in content that an AI agent reads, causing the agent to execute unintended actions using its own legitimate credentials. A primary vector for agent goal hijacking and identity abuse.
- Prompt Leaking: Prompt leaking is the extraction of hidden instructions, examples, or system context that shapes an LLM’s behavior. Security teams care because leaked context can reveal guardrails, internal logic, or sensitive data paths that help an attacker refine later abuse or impersonation attempts.
- Roleplay Jailbreak: A roleplay jailbreak uses a fictional persona, mode switch, or character framing to persuade the model to ignore its normal restrictions. The technique works by making the unsafe instruction look like part of the conversation rather than an override.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on July 6, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org