sql-tutor
Pass
Audited by Gen Agent Trust Hub on Nov 3, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from the target database, which can be manipulated to influence the agent's behavior.
- Ingestion points: The
schemacommand inscripts/sql_query_helper.pyextracts table names, column types, foreign key relationships, and sample row data to provide context for the agent. - Boundary markers: There are no explicit delimiters or instructions provided to the agent to disregard instructions embedded within the extracted schema or sample data.
- Capability inventory: The skill can read local file systems (SQLite database files), perform network operations (PostgreSQL connections), and execute SQL queries through the
explainandschemacommands. - Sanitization: While the script implements a
_validate_readonlyfunction to block dangerous SQL keywords (e.g., INSERT, DROP, ATTACH) and multi-statement queries, it does not sanitize the content of the data for prompt injection patterns. - [COMMAND_EXECUTION]: The skill operates by executing a local Python script with various arguments to perform database operations.
- Evidence: The workflow described in
SKILL.mdinstructs the agent to runpython3 scripts/sql_query_helper.pyfor schema extraction, optimization analysis, and EXPLAIN plan interpretation.
Audit Metadata