skills/hainrixz/claude-db/explain/Gen Agent Trust Hub

explain

Warn

Audited by Gen Agent Trust Hub on Nov 5, 2026

Risk Level: MEDIUMINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill processes external data including schema files, SQL queries, and EXPLAIN plans. There are no explicit instructions for the agent to use boundary markers or sanitize this untrusted input, creating a surface for potential injection attacks through malicious schema metadata or query comments.
  • Ingestion points: The skill accepts a <path> to schema files, raw SQL statements via --query, and pasted EXPLAIN plan text.
  • Boundary markers: The skill does not instruct the agent to use delimiters or ignore embedded instructions within these inputs.
  • Capability inventory: The skill has access to the Bash tool and executes several local scripts (detect-stack.mjs, parse-schema.mjs, parse-orm-python.py, gen-diagram.mjs).
  • Sanitization: No sanitization or validation of the provided paths or query content is specified before processing.
  • [COMMAND_EXECUTION]: The skill constructs and executes shell commands using user-provided arguments.
  • Evidence: The instruction to run node scripts/gen-diagram.mjs --file <schema> uses a variable derived from $ARGUMENTS. If the <schema> path is not properly validated or escaped by the agent, it could lead to command injection vulnerabilities.
  • [DYNAMIC_EXECUTION]: The skill relies on external scripts (scripts/detect-stack.mjs, scripts/parse-schema.mjs, parse-orm-python.py, scripts/gen-diagram.mjs) to perform its core functions. While these are part of the skill's package, they represent executable code that is invoked dynamically at runtime based on user-supplied inputs.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Nov 5, 2026, 02:08 AM