T09 · Insecure Skill Coding Practices
- Location
SKILL.md:49- Finding
Database Credentials Exposed Through Command-Line Arguments
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This database skill is not malicious, but it needs Review because it includes sensitive database access, exports, restores, and migration commands with some unsafe examples and incomplete guardrails.
Install only if you are comfortable giving the agent database connection details and letting it suggest export, backup, restore, and migration commands. Use least-privileged read-only credentials by default, avoid production restores/imports unless you explicitly approve the exact command and target, do not put real passwords in command-line arguments, avoid broad Redis `KEYS *`, and write exports/backups only to private, access-controlled paths with cleanup.
SKILL.md:49Database Credentials Exposed Through Command-Line Arguments
SKILL.md:121Predictable Shared Temporary Files Used for Database Exports and Backups
SKILL.md:70Unbounded Redis Key Enumeration Can Block Production Services
The activation triggers are broad phrases like 'check the database' or 'show me the data,' which can match many ordinary requests and cause the skill to activate with minimal context. In a skill that contains credential handling, schema enumeration, export, backup, restore, and migration guidance, over-triggering increases the likelihood of unnecessary access to sensitive systems or escalation from informational requests to operational actions.
The safety section promises read-only defaults and explicit confirmation for writes, yet later sections provide restore/import commands with no required confirmation workflow, dry-run, or rollback guidance. This contradiction is dangerous because downstream agents may follow the later concrete commands instead of the higher-level safety rules, leading to unintended data modification or loss.
The export and backup guidance writes data directly to predictable filesystem paths such as /tmp and describes bulk extraction without prominently warning about sensitive data exposure, retention, access permissions, or overwrite risks. In real environments this can leak regulated data to shared locations or create untracked plaintext dumps that persist beyond the task.
The skill is presented as a database exploration/query tool, but it also includes restore, migration, and import commands that can directly modify or overwrite production data. That scope mismatch increases the chance an agent will invoke destructive operations under a user request that sounded read-only, especially because the documented commands are immediately executable and not wrapped in approval gates.
No suspicious patterns detected.