T09 · Insecure Skill Coding Practices
- Location
SKILL.md:590- Finding
Generic Audit Trigger Stores Complete Sensitive Database Rows
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a database guidance skill with disclosed SQL and operations examples; it has some examples users should review carefully before applying to real databases.
Installers should treat this as a reference guide, not as automatically safe production code. Review generated SQL before running it, especially audit triggers, destructive maintenance commands, backup deletion, replication-slot changes, and emergency termination commands. Redact sensitive audit fields and restrict audit-table access if adopting the audit-log pattern.
SKILL.md:590Generic Audit Trigger Stores Complete Sensitive Database Rows
The trigger phrase is broad enough to match routine user requests about database help, which can cause the skill to activate unexpectedly outside a narrowly intended scope. In an agent setting, overly broad invocation increases the chance of prompt/skill hijacking, unintended tool use, or the agent following this skill instead of more appropriate task-specific controls.
The phrase 'Audit this database' is ambiguous because 'audit' can imply many actions, from passive review to active inspection, security assessment, or operational analysis. That ambiguity can lead an agent to invoke the skill in situations where the user did not intend its full behavior, increasing the risk of overreach or mis-scoped analysis.
No suspicious patterns detected.