QueryShield

What is the OWASP LLM Top 10 and how does it apply to SQL agents?

The OWASP LLM Top 10 (v1.1, 2024, with the 2025 refresh adding "Unbounded Consumption") is the canonical threat list for LLM-integrated applications. Five entries are directly relevant to text-to-SQL:

QueryShield is a direct mitigation for LLM02 (you stop trusting the output blindly), LLM06 (column-level policy), and LLM08 (statement allowlist + per-agent policy enforces least privilege at the query layer even if DB creds are over-scoped).