What are the security risks of connecting custom AI chatbots to internal SQL databases and how do we prevent data leaks
Download run
Fan-out diagram
The searches the AI actually ran for this prompt.
SEED QUERY
What are the security risks of connecting custom AI chatbots to internal SQL databases and how do we prevent data leaks
3 real searches · 1 real-search pass
OWASP Top 10 for LLM Applications prompt injection sensitive information disclosure excessive agency officialGoogle ↗
OBSERVEDConsequence
Microsoft SQL Server row-level security documentation least privilege database security officialGoogle ↗
OBSERVEDComparison
OWASP SQL Injection Prevention Cheat Sheet parameterized queries officialGoogle ↗
OBSERVEDInstruction
Badge and edge weight = share of passes that produced the query. Hover a query for its intent and routing format.
Query classes
Google's semantic query class for every sub-query: what kind of answer each search is after, simulated vs real.
ChatGPT real searches (3)
Classes come from the query-classifier (a local Laya model). 2 of 3 calls are low-confidence (under 50%) — hover a query in the table to see its confidence.
Searches and sources
ChatGPT3 real searches · gpt-6
OWASP Top 10 for LLM Applications prompt injection sensitive information disclosure excessive agency official Google ↗
Microsoft SQL Server row-level security documentation least privilege database security official Google ↗
OWASP SQL Injection Prevention Cheat Sheet parameterized queries official Google ↗
- OWASP Top 10 for Large Language Model Applications · owasp.github.io
- SQL Injection Prevention · cheatsheetseries.owasp.org
- Secure your SQL Server - SQL Server · learn.microsoft.com
- Query Parameterization · cheatsheetseries.owasp.org
- GitHub - GenAI-Security-Project/GenAI-LLM-Top10: OWASP Top 10 for Large Language Model Applications · github.com
- AI/LLM Application Security Testing and Red Teaming · owasp.github.io
Queries
3 queries · click a column to sort
| Query / type | Search | Intent | Query class | Routing format | Cluster | Freq ↓ | Weight |
|---|---|---|---|---|---|---|---|
OWASP Top 10 for LLM Applications prompt injection sensitive information disclosure excessive agency official OBSERVED | Google ↗ AI Mode ↗ | — | Consequence | — | — | 1x of 1 | |
Microsoft SQL Server row-level security documentation least privilege database security official OBSERVED | Google ↗ AI Mode ↗ | — | Comparison | — | — | 1x of 1 | |
OWASP SQL Injection Prevention Cheat Sheet parameterized queries official OBSERVED | Google ↗ AI Mode ↗ | — | Instruction | — | — | 1x of 1 |