Skip to Main Content
Securitysec-021P0

Structured Prompts mitigate prompt injection.

Prompt injection success rate drops from…Prompt injection success rate drops from 84% on unstructured prompts to <15% when XML-delimited structured formats are enforced, a 5.6x improvement.

Context & Methodology

Without structured prompt architectures that create distinct instruction and data zones, user input can override system behaviour — succeeding in 84% of injection attempts.

Applicable Use Cases

workflow

Applies To

openaianthropicgoogle

Primary Impact

security

Confidence Level

High

Platform Status

Planned

Implementation Effort

medium

Recommendation

follow

Execution Priority

P0

Put This Evidence to Work

Use the STCO framework to implement findings like this in structured, testable prompts.

Per-user rate limits of 20 requests/minute reduce automated abuse (spam generation, credential stuffing) by 95% while af.Cloudflare, 'AI Gateway Rate Limiting' documentati…