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
The skill is a coherent database helper, but it includes high-impact database restore/import/export workflows and unsafe command examples that need careful review before use.
Install only if you are comfortable with an agent receiving database credentials and potentially running export, backup, restore, and migration commands. Use least-privilege or read-only database accounts, avoid putting passwords directly in commands, avoid production Redis KEYS scans, and require explicit confirmation plus target validation before any restore, import, migration, or full export.
SKILL.md:49Database Credentials Exposed Through Command-Line Arguments
SKILL.md:68Unbounded Redis KEYS Command Can Disrupt Production Instances
The skill states it is read-only by default and requires confirmation for writes, but later provides restore/import commands that directly change database state without that promised workflow. This mismatch can cause operators or downstream agents to trust the skill as safe while it still documents ready-to-run destructive commands.
The activation phrases are broad enough to match common requests like 'check the database' or 'show me the data,' which can cause the skill to trigger in situations where database access was not intended or where a safer skill would suffice. Because this skill can expose data and includes write-capable workflows elsewhere, overbroad activation materially raises the risk of unnecessary sensitive data access or unsafe operations.
The export and backup examples write files to disk and later sections include restore operations, but the skill does not clearly warn users about local file creation, sensitive data at rest, or the destructive potential of restores. In practice, this can lead to silent data exfiltration to local files, insecure temporary storage, or accidental restoration into the wrong target.
The skill is presented as a database exploration/query/export tool, but it also includes restore and migration workflows that can modify or overwrite data at scale. In an agent setting, this expands capability from mostly read-oriented inspection to broad write/destructive operations, increasing the chance of accidental or unauthorized data loss.