Log inGet a Demo

attach-db

High · Risk 70

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

High

targets Action

3 findings
#1Potential for arbitrary command injection via filenamehighcommand execution80% confidence

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;
#2Undeclared file writinghigh80% confidence

Code contains file write operations but Write is not listed in allowed-tools.

#3State file pollution and potential persistencemediumcommand execution85% confidenceline 132

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

Info

targets Packaging & Manifest

2 findings
#1Missing licenseinfo100% confidence

Skill does not specify a license field. Specifying a license helps users understand usage terms.

#2Missing or insufficient descriptioninfo100% confidence

Skill description is empty or too short. A clear description helps users evaluate the skill's purpose.