tidb-sql
Warn
Audited by Gen Agent Trust Hub on Feb 16, 2026
Risk Level: MEDIUMPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [PROMPT_INJECTION] (MEDIUM): The skill is vulnerable to Indirect Prompt Injection because it processes untrusted user-provided SQL for review and adaptation. Specifically, it instructs the agent to use
EXPLAIN ANALYZEfor diagnostics, which executes the query in the database. This creates an execution path for malicious SQL embedded in user requests. - Ingestion points: User-provided SQL snippets (SKILL.md, mysql-compatibility-notes.md).
- Boundary markers: Absent; no instructions for delimiting or sanitizing user SQL are provided.
- Capability inventory: Query execution via
EXPLAIN ANALYZE, database state modification viaFLASHBACK, and statistics modification viaANALYZE TABLE. - Sanitization: Absent.
- [COMMAND_EXECUTION] (LOW): The skill includes a shell script
scripts/render_dot_png.shthat executes the Graphvizdotutility. While intended for local rendering of execution plans, it represents a local command execution capability provided by the skill.
Audit Metadata