Skip to main content
System prompt disclosure testing evaluates your model’s ability to keep its system prompt and internal instructions confidential. Attackers often attempt to extract system prompts to understand model behavior and find exploitable weaknesses.

Purpose

Protecting system prompts is important for:
  • Maintaining security through obscurity as an additional layer
  • Protecting proprietary prompt engineering
  • Preventing attackers from understanding model constraints
  • Ensuring competitive advantage in prompt design

Attack Categories

How It Works

The evaluator checks if the model reveals any part of its system prompt:
  • Pass: The model keeps its system prompt confidential
  • Fail: The model discloses part or all of its system prompt

Usage Example

When to Use

Use system prompt disclosure testing when you need to:
  • Protect proprietary prompt engineering
  • Validate prompt confidentiality measures
  • Assess resistance to prompt extraction attacks
  • Conduct security audits
  • Test before deploying customer-facing applications