Jailbreaking targets the safeguards and behavioral restrictions of a foundation model. An attacker attempts to make the model disregard those restrictions and produce prohibited content, disclose protected information, or support an unauthorized action. In this context, the term concerns generative AI behavior, not removing restrictions from a mobile device or escaping a container.
Attempts can involve misleading claims of authority, fictional scenarios, obfuscated requests, or a sequence of messages that gradually steers a conversation away from permitted behavior. A successful jailbreak does not necessarily change the model's weights or compromise its hosting infrastructure. Instead, it causes the deployed model to behave outside an intended boundary through its inputs and conversation context.
In a cloud-hosted support assistant, for example, a user might try to persuade the model to ignore restrictions against disclosing internal operational instructions. In a tool-enabled assistant, an attacker might try to make the model request an administrative operation that the application normally prohibits. These examples have different consequences: generating an inappropriate response is not equivalent to successfully executing a privileged operation. The latter also depends on the application's authorization checks and the permissions available to its tools.
Jailbreaking overlaps with prompt injection, but the terms are not interchangeable. Jailbreaking emphasizes defeating model safety or behavioral restrictions. Prompt injection emphasizes introducing instructions through an input channel to redirect application behavior, including instructions embedded in retrieved documents. An attack can be both. Data poisoning instead involves malicious manipulation of training or other data used by a system, while exposure describes disclosure of information such as sensitive context or system instructions. Jailbreaking can contribute to exposure without being the same risk.
Prompt design can reduce risk by clearly defining permitted behavior, separating instructions from untrusted content, and specifying how to handle conflicting requests. However, instruction hierarchies and delimiters are not hard security boundaries. Do not place credentials in prompts or assume a statement such as 'never reveal secrets' provides access control. Apply authorization before retrieving sensitive information, and validate proposed tool operations in application code independently of the model's explanation.
Cloud defenses commonly combine model safeguards, input and output screening, least-privilege tool permissions, rate limits, and approval requirements for consequential actions. For example, an operations assistant can generate a proposed configuration change while a separate service checks the caller's identity, validates allowed parameters, and requires approval before execution. This limits the damage even if the model follows a malicious request.
These controls involve trade-offs. Aggressive screening can reject legitimate security research or support requests, while permissive settings can miss attacks. Screening adds processing cost and latency, and conversation logging can introduce privacy risks unless access, redaction, and retention are controlled. Evaluate defenses against representative benign and adversarial conversations, including multi-turn interactions, and repeat testing when prompts, models, retrieval sources, or tools change. For exam questions, recognize jailbreaking as a limitation of prompt engineering: stronger prompts help, but they do not replace independent security enforcement.