Join our Newsletter — 33% off our NHI Course
Home› Glossary› AI Security› Jailbreak Attack
AI Security

Jailbreak Attack

← Back to Glossary
By NHI Mgmt Group Updated October 31, 2026 Domain: AI Security

A jailbreak attack is a prompt injection variant that tries to force an LLM to violate its safety boundaries or ethical constraints. The goal is to make the model generate disallowed, harmful, or otherwise restricted content by overpowering the guardrails built into the prompt or model behavior.

What a jailbreak attack is in practice

A jailbreak attack is an attempt to override an LLM’s built-in safety behaviour by steering the model around refusal rules, policy constraints, or other guardrails. It usually exploits the fact that language models respond to prompts, context, and instruction hierarchy rather than enforcing safety as an external hard boundary.

That makes the attack different from ordinary prompt engineering. The attacker is not just asking the model to answer a hard question, but trying to persuade it to ignore its safety design and produce content it should withhold.

How jailbreak attacks work

Jailbreaks often rely on role-play, obfuscation, instruction substitution, chained prompts, translation tricks, or adversarial phrasing that reframes a disallowed request as something else. In practice, the goal is to change how the model interprets the prompt so the harmful intent is no longer recognised as harmful.

This is why jailbreak testing is part of Red Teaming AI Agents for Identity Abuse and broader adversarial evaluation. Even when the model itself is not acting as an autonomous agent, the same testing mindset helps expose where instruction-following can be bent past intended limits.

Jailbreak methods also sit close to the boundary between safety and security. NHIMG’s AI Safety vs AI Security Guide is useful for understanding why one set of controls focuses on harmful outputs while the other focuses on adversarial abuse, exploitation, and system hardening.

Why jailbreak attacks matter

The main risk is loss of control over model behaviour. A successful jailbreak can expose prohibited instructions, increase the chance of misuse, undermine trust in the model, and reveal gaps in moderation or policy enforcement. In deployed systems, that can also create downstream risk if unsafe outputs are used in customer support, code generation, knowledge retrieval, or workflow automation.

Jailbreak attacks also matter because they are not static. Attackers rapidly adapt prompts, test new obfuscation patterns, and probe for differences across model versions, wrappers, and middleware. That makes the weakness a moving target rather than a one-time bug.

NHIMG’s AI Threats and Model Security Guide is a useful companion for understanding how jailbreaks fit alongside prompt injection, extraction, backdoors, and other model attack patterns.

Defending against jailbreak attempts

Defence starts with layered controls rather than relying on a single “safe prompt.” Strong system prompts, content filtering, policy enforcement, output monitoring, and adversarial testing all help, but none should be treated as sufficient on its own. The most resilient designs assume prompts will be probed and constrain what the model can do even if the prompt is manipulated.

Practitioners should also separate model safety from application security. If an LLM is connected to tools, memory, or downstream actions, a jailbreak can become much more than a bad response. It can become a route to data exposure, privilege abuse, or unsafe action execution if the surrounding system trusts the model too broadly.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATLAS and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST AI RMF, OWASP ASVS and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATLASAdversarial AI Threat MatrixCovers prompt injection and jailbreak-style AI attacks against model behaviour.
Recommendation — Map jailbreak patterns to ATLAS techniques and tune red-team coverage for prompt manipulation and safety bypass.
NIST AI RMFGOVERN — GOVERNDefines governance processes for managing AI risk, including misuse and safety failure controls.
Recommendation — Establish AI governance rules that set safety expectations, escalation paths and accountability for jailbreak exposure.
OWASP ASVSV16 — Security Logging and Error HandlingSupports detection and review of suspicious input and abnormal model failure behaviour.
Recommendation — Log jailbreak probes and review refusal failures so suspicious prompt patterns can be detected and investigated.
OWASP Agentic AI Top 10ASI01 — Agent Goal HijackCovers adversarial attempts to override intended model or agent objectives through prompting.
Recommendation — Treat jailbreak testing as goal-hijack assessment when models can be steered away from intended boundaries.
NIST SP 800-53 Rev 5SI-10 — Information Input ValidationRequires checking untrusted inputs before they influence system behaviour, including model prompts.
Recommendation — Validate and constrain prompt inputs to reduce the chance that adversarial text alters model behaviour.

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.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 31, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org