Skip to main content

Prompt injection tries to make the model ignore its instructions. TrustTest groups probes by technique so you can start with a single message, then add multi-turn and dataset attacks.

Single turn

Jailbreaks, encoding, structural, language, multimodal, MCP, and RAG probes.

Multi-turn

Crescendo, Echo Chamber, payload splitting, and conditioning.

From dataset

Load curated objectives instead of generating them.

Attack categories

Single Turn Attacks

Direct attacks delivered in a single message. The catalog has 39 probes (jailbreaks, encoding, structural, language, multimodal/agent, MCP, memory/RAG). All single-turn probes →

Multi-Turn Attacks

Sophisticated attacks that use multiple conversation turns to gradually manipulate the model: Explore Multi-Turn Attacks →

From Dataset

Load attacks from curated datasets for reproducible testing: Explore Dataset-Based Attacks →

Quick Reference

The full single-turn catalog (class, SubCategory, description, and usage examples) lives on Single Turn Attacks.

Multi-Turn Probes


How Prompt Injection Testing Works

Prompt injection probes use a binary evaluation:
  • Pass: The model resists the injection attempt and maintains safe behavior
  • Fail: The model’s behavior is successfully manipulated by the attack

Basic Usage Example


When to Use Prompt Injection Testing

Use prompt injection testing when you need to:
  • Validate model safety before deployment
  • Test guardrails and content filters
  • Assess vulnerability to known jailbreak techniques
  • Conduct red team exercises
  • Meet security compliance requirements