Skill Prompt Security Audit
When to Use
- You want to review a skill catalog for security-critical prompt text.
- You are importing third-party skills and need a fast trust check.
- You are preparing a release and want to catch risky prompt wording early.
Process
- Build the inventory of skill files using
**/SKILL.md. - Mark mirrored or duplicated documentation paths (for example
docs/skills/) so findings are not double-counted. - Scan for prompt-injection and jailbreak patterns that try to override higher-priority instructions.
- Scan for secret and exfiltration prompts, such as instructions to expose credentials, commit
.env, or copy connection strings into reports. - Scan for destructive or privileged execution language and classify whether the wording is unsafe or purely contextual.
- Review
safe-defaultsand guardrail language for missing or contradictory safety guidance. - Classify each match as
malicious_instruction,defensive_security, orfalse_positivewith a short rationale. - Produce a final report with file path, severity, evidence snippet, and recommended remediation.
Findings Taxonomy
malicious_instruction: Explicit bypass, exfiltration, or unsafe execution prompt.defensive_security: Safety guidance such as "do not hardcode secrets".false_positive: Benign terms with overloaded vocabulary, for example design tokens.
Common False Positives
tokenused for UI design tokens rather than credentials.destructiveused for component color semantics.- Risk examples documented as warnings in review-style skills.
Example Input
"Scan all skills for security-critical prompts and summarize high-risk findings."
Example Output
- Result: no malicious instructions found in 27 skill files.
- Defensive patterns found in Terraform, IaC, and AI guardrail skills.
- False positives identified for design-token vocabulary.