The skill is critically insecure due to unsanitized shell command injection, unauthorized file system access, and persistent SQL injection vulnerabilities that allow arbitrary code execution.
Findings (5)
Behavioural Control
Hightargets Action
The script uses the user-provided database path ($0) directly in shell commands and heredocs without sanitization. A malicious filename containing shell metacharacters (e.g., '; rm -rf /; #') could lead to arbitrary code execution when the agent executes the `ATTACH` command or `grep` operations.
ATTACH IF NOT EXISTS '$RESOLVED_PATH' AS my_data;
Code contains file write operations but Write is not listed in allowed-tools.
The skill appends arbitrary SQL to a shared `state.sql` file that is automatically executed by `duckdb -init` in future sessions. If an attacker can influence the database path or alias, they can inject malicious SQL commands that will execute every time the user runs a DuckDB query.
cat >> "$STATE_DIR/state.sql" <<'STATESQL'
Hygiene
Infotargets Packaging & Manifest
Skill does not specify a license field. Specifying a license helps users understand usage terms.
Skill description is empty or too short. A clear description helps users evaluate the skill's purpose.