ai-querying-databases
Pass
Audited by Gen Agent Trust Hub on May 13, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill is instructional and follows security best practices for handling database access. It explicitly instructs the user to use read-only database credentials and implement validation logic to prevent unauthorized data modifications.
- [COMMAND_EXECUTION]: The skill generates and executes SQL queries based on natural language input. This risk is effectively mitigated by the included
validate_sqlfunction, which usessqlparseand keyword matching to block dangerous operations such asDROP,DELETE,ALTER, andTRUNCATE, ensuring onlySELECTstatements are executed. - [DATA_EXFILTRATION]: The skill facilitates data retrieval from a database. To prevent large-scale data exposure, it provides code to automatically append
LIMITclauses to all queries and recommends the use of table allow-lists to restrict the AI's visibility to specific, non-sensitive tables.
Audit Metadata