Slide 23 of 27
Part 4 · PreventionSlide 23
Slide 23 · Mitigation Category 5 of 6
Configuration mistakes leak data just as easily as attacks do.
📄 OWASP LLM Top 10:2025 · LLM02 Prevention — Secure System Configuration
OWASP — Secure Configuration
Conceal System Preamble + Reference Security Misconfiguration Best Practices

“Limit the ability for users to override or access the system's initial settings, reducing the risk of exposure to internal configurations.”

“Follow guidelines like ‘OWASP API8:2023 Security Misconfiguration’ to prevent leaking sensitive information through error messages or configuration details.”

The OpenAI Redis bug (Slide 10) is a configuration-and-infrastructure failure, not a model failure — a caching layer misconfiguration that returned the wrong user's data. No prompt injection, no jailbreak. Just a system that didn't validate ownership.

→ Treat the system prompt itself as a secret worth protecting, not just the data it references
→ Make sure error messages and stack traces never leak configuration details, API endpoints, or internal schema
→ Apply OWASP API Security best practices (API8:2023) to every API your LLM integration calls — most LLM02 incidents start as ordinary API hygiene failures

Trigger an error in your AI integration on purpose. Read the resulting message closely — does it reveal anything about your stack, schema, or configuration that a user shouldn't see?

💼 Business takeaway

Ask your team to check whether your AI deployment's configuration matches the security settings recommended by your vendor. Mismatched defaults are one of the most common sources of unintended data leakage.

← BackNext → Advanced Techniques