Adversarial Prompt
A prompt crafted to cause an AI model to produce unintended, harmful, or policy-violating outputs.
An adversarial prompt is an input intentionally engineered by a user or researcher to bypass an AI model's safety constraints, expose its biases, or force it into an unintended failure mode. Also known as 'jailbreaks', these prompts are the primary tools used in AI red teaming and security auditing.
Adversarial prompts exploit the inherent tension in LLMs between 'instruction following' (being helpful) and 'refusal' (being harmless). Attackers use highly creative tactics to trick the model. **Role-playing** attacks instruct the model to act as a fictional character with no moral constraints (e.g., the infamous 'DAN' or Do Anything Now prompt). **Obfuscation** attacks encode the dangerous request in Base64, hex, or even obscure languages to slip past basic keyword filters. **Context stuffing** attacks overwhelm the model with thousands of words of benign text, burying the malicious instruction at the very end where the model's attention mechanism might fail to apply safety guardrails.
Defending against adversarial prompts is an ongoing arms race. As AI labs patch vulnerabilities through targeted fine-tuning and safety classifiers, attackers discover increasingly complex psychological and structural tricks to manipulate the model's token prediction logic.
What this means for trainers
If you are assigned to a red teaming project, your entire job is to craft sophisticated adversarial prompts. You must think like a hacker. The goal is not to ask a simple dangerous question (which the model will easily refuse), but to build complex, multi-layered scenarios that logically trap the model into generating prohibited content.
Related terms
Related guides
Put this into practice
Browse open AI training roles from Alignerr, Mercor, Outlier, and more.
Browse AI training jobs