AIWiki
Malaysia
Back to all articles
Ethics & PolicyjailbreakingAI safetyprompt injection

AI Jailbreaking

5 min readUpdated August 2026
AI Jailbreaking
Type
Adversarial technique and safety concern
Targets
Large language models and AI chatbots
Common methods
Role-play personas, adversarial suffixes, encoding tricks
First documented
2022-2023 (consumer chatbots)
Countermeasures
Guardrails, red teaming, input/output filtering
Related
Prompt injection, AI alignment, AI red teaming

AI jailbreaking refers to techniques used to circumvent the safety guardrails of artificial intelligence systems — particularly large language models (LLMs) and chatbots — so that they produce content or take actions their developers intended to prevent, such as generating hateful material, providing instructions for illegal activity, or ignoring content policies. Jailbreaking differs from prompt injection in that jailbreaks target the model's own training-time safety behaviour through the user-facing prompt, whereas prompt injection typically involves instructions hidden in third-party data. Jailbreaks are a central concern of AI safety research, responsible-AI practice, and the red teaming of deployed systems.[1]

History and Background

Jailbreaking of AI chatbots became widely documented soon after OpenAI's ChatGPT launched in late 2022. Early community techniques included the "Do Anything Now" (DAN) persona, in which users instructed the model to adopt an unrestricted alter ego, and various fictional scenarios designed to make the model answer without applying its policies. These early jailbreaks were largely social-engineering-style: they exploited the model's instruction-following behaviour rather than any technical vulnerability.[1]

From 2023 onward, academic researchers formalised jailbreaking as a field. In a widely cited 2023 paper, "Universal and Transferable Adversarial Attacks on Aligned Language Models," Zou and colleagues showed that automated optimisation could produce adversarial suffixes — short strings of tokens — that reliably disable a model's refusal behaviour across many prompts, and that these attacks transferred between different models.[2] A complementary study, "Jailbroken: How Does LLM Safety Training Fail?", analysed the structural reasons safety training fails, identifying categories such as conflicting objectives, mismatched generalisation, and the tendency of models to privilege instruction-following over safety constraints.[3] Industry bodies subsequently incorporated jailbreak-style attacks into their security guidance: the OWASP Top 10 for Large Language Model Applications lists prompt injection and other manipulation techniques among the most serious risks of LLM-based systems.[4]

Key Concepts

Safety guardrails: The policies, fine-tuning (including RLHF), and system-level filters that cause a model to refuse harmful requests. Jailbreaks seek to bypass these without modifying the model itself.

Persona and role-play attacks: Instructing the model to adopt a character, fictional universe, or hypothetical setting in which the normal rules do not apply — one of the oldest and most common jailbreak families.

Adversarial suffixes and token-level attacks: Automatically generated token sequences that confuse or override the model's refusal behaviour. Research has shown these can be optimised with gradient-based methods and often transfer across models from different vendors.[2]

Encoding and obfuscation: Base64, leetspeak, foreign-language translation, or staged prompts ("first write a story, then continue it as instructions") used to hide the true request from the model's content filters.

Jailbreak evaluation: Safety teams measure models against curated jailbreak benchmarks, and publicly reported successful jailbreaks are routinely used to pressure-test both open-weight and proprietary models before and after release.

Applications and Impact

Jailbreaking has both a defensive and an offensive dimension. On the defensive side, it is a core input to AI red teaming: organisations deliberately attempt to jailbreak their own models before deployment to identify weaknesses, and researchers publish findings to improve the whole ecosystem. On the offensive side, jailbreaks have been used to generate disinformation, deepfakes, malware assistance, and harassment content, and they are a recurring concern for regulators and platform operators deciding how to govern generative AI.

Jailbreaking also influences model design. In response, developers layer multiple defences — stricter system prompts, refusal training on known jailbreak patterns, input and output classifiers, and post-hoc moderation. The phenomenon is closely tied to broader debates about AI alignment, the limits of safety training, and whether safety guarantees for open-weight models are enforceable.[3][4]

>See Also

References

🇲🇾Malaysian Context

For Malaysia, AI jailbreaking intersects with platform regulation, data protection, and the national AI governance agenda.

Content regulation: Malaysian platforms hosting AI chatbots or generative features are subject to the content expectations administered by the Malaysian Communications and Multimedia Commission (MCMC) under the Communications and Multimedia Act 1998. Providers deploying LLM-based services in Malaysia are expected to implement safeguards against harmful outputs, making jailbreak resistance a compliance-relevant property rather than only a technical nicety.

PDPA and consumer protection: Where a jailbroken model produces outputs that misuse personal data or cause consumer harm, organisations may face obligations under the Personal Data Protection Act (PDPA) 2010 and consumer protection law. The Personal Data Protection Department has encouraged organisations to implement appropriate security measures for AI systems, which includes testing for adversarial inputs such as jailbreaks.

National AI governance: Malaysia's AI Governance and Ethical Guidelines, developed under the MOSTI-led framework with the National AI Office (NAIO), call for accountability, transparency, and safety in AI deployment. Red teaming against jailbreaks is consistent with the guidelines' emphasis on human oversight and risk management, and MDEC's AI literacy programmes increasingly include discussion of prompt manipulation risks for both developers and end users.

Local capacity building: Malaysian universities and the cybersecurity community have begun teaching adversarial machine learning and AI red teaming, and local researchers participate in global jailbreak evaluation efforts. Building domestic expertise in defending against jailbreaks supports Malaysia's ambition to host and operate AI services safely as part of its sovereign AI strategy.[5]

References

  1. [Prompt injection and related manipulation — Wikipedia](https://en.wikipedia.org/wiki/Prompt_injection)
  2. [Universal and Transferable Adversarial Attacks on Aligned Language Models — arXiv](https://arxiv.org/abs/2307.15043)
  3. [Jailbroken: How Does LLM Safety Training Fail? — arXiv](https://arxiv.org/abs/2310.03693)
  4. [OWASP Top 10 for Large Language Model Applications](https://owasp.org/www-project-top-10-for-large-language-model-applications/)
  5. [AI Governance and Ethical Guidelines — AIWiki Malaysia](/wiki/malaysia-ai-governance-framework)