Use when conducting security reviews, investigating vulnerabilities, or creating security documentation - provides systematic methodology for code audits with severity assessment, dual documentation patterns (client + internal), and acceptance-focused ticket creation
npx playbooks add skill factorial-io/skills --skill security-audit
Security audits require systematic investigation, not surface-level checks. This skill provides a methodology for thorough security reviews with proper severity assessment, structured documentation, and security-focused ticket creation.
Core Principle: Follow the complete methodology regardless of time pressure. Cutting corners means missing vulnerabilities.
Use when:
Don't use for:
Follow this checklist regardless of time pressure:
Under time pressure: Ask user to prioritize scope, don't silently cut corners.
| Severity | Criteria |
|----------|----------|
| CRITICAL | Authentication bypass, RCE, direct data exposure, affects most sensitive data |
| HIGH | Privilege escalation, XSS with token access, weak crypto, data breach potential |
| MEDIUM | Information disclosure, CSRF, weak policies, requires multiple steps to exploit |
| LOW | Minor leaks, missing hardening, defense-in-depth gaps |
Consider:
Create TWO documents:
Client-Facing Report (docs/security-report-client.md):
Internal Findings (docs/security-findings-internal.md):
When user requests Jira ticket creation:
customfield_13523) when availableExample:
Epic: PROJ-100 "Security Report: Example Application from 2025-01-15"
├── PROJ-101 (CRITICAL: Sensitive Keys in Version Control)
├── PROJ-102 (CRITICAL: CORS Misconfiguration)
├── PROJ-103 (HIGH: Missing Trusted Host Patterns)
└── PROJ-104 (HIGH: Secrets in Version Control)
If Confluence pages are created:
Ticket format with Confluence:
## Description
[Vulnerability details]
## Link to Security Report
[Internal Security Findings](https://confluence.../internal-findings)
CRITICAL: Security tickets focus on acceptance criteria, NOT implementation.
Acceptance Criteria Field (customfield_13523):
If available, use Jira's acceptance criteria custom field instead of adding criteria to description. Format as Atlassian Document Format (ADF):
{
"customfield_13523": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{"type": "text", "text": "- [Criterion 1]"},
{"type": "hardBreak"},
{"type": "text", "text": "- [Criterion 2]"},
{"type": "hardBreak"}
]
}
]
}
}
Each criterion should be:
If using customfield_13523 for acceptance criteria:
## Description
[Vulnerability explanation]
## Security Impact
- What can attacker do?
- What data is exposed?
- Attack scenario
## Affected Components
- File paths
- Code evidence (showing vulnerable pattern)
## Link to Security Report
[Internal Security Findings](https://confluence-url)
If NOT using custom field, include in description:
## Description
[Vulnerability explanation]
## Security Impact
- What can attacker do?
- What data is exposed?
- Attack scenario
## Affected Components
- File paths
- Code evidence (showing vulnerable pattern)
## Acceptance Criteria
1. [Security requirement] MUST [not] happen
2. [Authentication tokens] MUST NOT be accessible to JavaScript
3. [Cookies] MUST include httpOnly, secure, and sameSite flags
4. Verification: Security testing confirms [specific requirement]
## Link to Security Report
[Internal Security Findings](https://confluence-url)
Exception: Only include fixes if user explicitly requests "show me how to fix this."
STOP: Do not create ANY ticket content until these questions are answered:
Don't ask about epic creation - always create it when creating tickets.
No exceptions:
Don't stop at the reported issue:
Red Flag: "Already documented" - verify if NEW patterns exist.
1. Systematic investigation → findings list
2. Severity assessment → categorize findings
3. Create documentation:
- Markdown: docs/security-report-client.md
- Markdown: docs/security-findings-internal.md
- (Optional) Confluence: client + internal pages
4. If Jira requested:
a. Create Epic for security audit
b. Create tickets as children of epic
c. Add Confluence links to all tickets (if pages exist)
5. Update internal findings doc with ticket links
| Mistake | Fix |
|---------|-----|
| "Time pressure" → cut corners | Ask to prioritize scope, don't skip steps |
| "Out of scope" → stop investigating | Ask if deeper investigation needed |
| "Already documented" → stop early | Check for new patterns, ask if update needed |
| Include code examples in tickets | Focus on acceptance criteria only |
| Forget to create epic | Always create epic first, then tickets |
| Skip Confluence links in tickets | Add links if Confluence pages exist |
| Ask about epic creation | Don't ask - always create it |
If you think ANY of these, STOP:
All of these mean: Follow the complete methodology. Ask questions if scope unclear.
1. Systematic investigation (complete checklist)
2. Severity assessment (CRITICAL/HIGH/MEDIUM/LOW)
3. Dual documentation (client + internal)
4. Jira workflow:
a. Create Epic (always)
b. Create tickets as children
c. Add Confluence links (if pages exist)
5. Acceptance-focused tickets (NO code examples)
6. Pattern search (don't stop at first instance)
7. Ask clarifying questions (scope, Confluence, priorities)Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.