For Heads-of · Practitioner

System prompt hardening

Design and testing practice that keeps system prompts free of secrets and resilient to extraction attempts.

  • preventive
  • llm
  • system-prompt
  • hardening

What it does

Keeps credentials and sensitive business logic out of the system prompt entirely, and tests the prompt against known extraction techniques before launch.

Where it fits

Reduces both the likelihood of system-prompt-leakage and the impact if it happens anyway, since there is nothing sensitive left to leak.

Risks this mitigates

The risks this control addresses, ranked by effectiveness.

Framework and clause references

FrameworkClauseTitle
OWASP Top 10 for LLM ApplicationsLLM08Hidden Context Exposure