PromptItIn logoPromptItIn
AI glossary · Safety

Adversarial Prompting

Crafting inputs specifically designed to cause a model to behave incorrectly or unsafely.

PromptItIn team

A bookshelf with one card pulled out

What it means

Adversarial prompting encompasses techniques used to probe the boundaries of a model's safety training, reliability, or factual accuracy through carefully crafted inputs.

Unlike benign edge-case failures, adversarial prompts are intentionally designed to elicit specific undesired behaviours: bypassing content policies (jailbreaks), extracting system prompts, causing prompt injection, eliciting hallucinations, or triggering politically biased responses.

Adversarial prompting is a core activity in red-teaming and safety evaluation. Understanding adversarial techniques is essential for building robust applications and for model developers designing defences. Many adversarial patterns are catalogued in public red-teaming resources like ATLAS and PromptBench.

Examples

  • Constructing a 'many-shot jailbreak' where 100+ example (question, harmful answer) pairs in the context gradually normalise the model to respond to harmful requests.
  • Using Unicode lookalike characters to bypass keyword-based safety filters while maintaining human-readable meaning.

Jailbreak

A prompt designed to bypass a model's safety guidelines and elicit restricted content.

Prompt Injection

An attack where malicious text in external data hijacks the model's instruction-following behaviour.

Red Teaming

Systematically testing an AI system by attempting to elicit harmful or unintended behaviours before deployment.

Put this into practice

PromptItIn applies techniques like adversarial prompting for you: describe what you want and it builds the prompt.

Try PromptItIn freeAdd to Chrome, free

You might also like

How to Use Role in AI Prompts →Zero-Shot Prompting: Examples, vs Few-Shot & Full Guide [2026] →Stable Diffusion →Poe →Debug Code →Write a Business Plan →
← Browse the AI prompt glossary