π Security & Compliance Skills Suite
Skill by
ara.so β Security Skills collection.
A comprehensive security and compliance skill suite derived from hesreallyhim/awesome-claude-code, providing specialized commands and workflows for security audits, vulnerability management, GDPR/SOC2/ISO27001 compliance, and incident response.
What This Project Does
This skill suite provides 10 specialized security commands and 5 multi-step compliance workflows with structured output UI for:
- Vulnerability Scanning: OWASP Top-10 analysis, dependency CVE detection
- Compliance Auditing: GDPR, SOC2, ISO27001 gap analysis
- Security Operations: Threat modeling, penetration testing, IAM audits
- Incident Response: Breach response playbooks and investigation workflows
- Policy Generation: Privacy policies, security documentation
All commands use consistent structured output with progress tracking, findings tables, and prioritized action plans.
Installation
Quick Install (Local Skills Directory)
bash
# Create Claude skills directory if it doesn't exist
mkdir -p ~/.claude/skills
# Clone the skill suite
git clone https://github.com/sparkfinderoven/r01-hesreallyhim-awesome-claude-code-security.git \
~/.claude/skills/awesome-claude-code-security
# Activate in Claude Code session
# In your IDE with Claude Code, run:
/read ~/.claude/skills/awesome-claude-code-security/SKILL.md
Manual Installation
bash
# Clone the repository
git clone https://github.com/sparkfinderoven/r01-hesreallyhim-awesome-claude-code-security.git
# Navigate to project directory
cd r01-hesreallyhim-awesome-claude-code-security
# Read the skill documentation
cat SKILL.md
Verification
Verify installation by checking available commands:
bash
# List all security commands
ls -la ~/.claude/skills/awesome-claude-code-security/
# Expected output:
# - SKILL.md (this file)
# - README.md (documentation)
# - commands/ (individual command definitions)
# - workflows/ (multi-step workflow definitions)
Core Commands
1. OWASP Top-10 Security Scan
Scans code for OWASP Top-10 vulnerabilities with CVSS scores and remediation guidance.
bash
/owasp-scan <target_directory>
# Options
/owasp-scan src/ --format json
/owasp-scan . --severity critical,high
/owasp-scan api/ --output report.md
Example Output Structure:
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β OWASP Security Scan β ./src/api β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ£
β Files scanned β 47 β
β OWASP checks β 14 β
β Findings β 8 issues β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
FINDINGS (severity: desc)
ββββββββ¬βββββββββββββββββββββββββββββββ¬βββββββββββ¬βββββββββββββββ
β Sev β Vulnerability β CVSS β File β
ββββββββΌβββββββββββββββββββββββββββββββΌβββββββββββΌβββββββββββββββ€
β π΄ β SQL Injection β 9.8 β users.js:42 β
β π΄ β JWT None Algorithm β 9.1 β auth.js:18 β
β π β CORS Misconfiguration β 6.5 β server.js:12 β
ββββββββ΄βββββββββββββββββββββββββββββββ΄βββββββββββ΄βββββββββββββββ
REMEDIATION
β’ SQL Injection: Use parameterized queries or ORM
β’ JWT None: Validate algorithm in token verification
β’ CORS: Restrict origins to known domains
2. Dependency CVE Scanner
Scans project dependencies for known CVEs with exploitability scores.
bash
/dep-cve
# Options
/dep-cve --scope production
/dep-cve --output json > cve-report.json
/dep-cve --min-cvss 7.0
/dep-cve --show-paths
Example for Node.js project:
bash
# Scans package.json and package-lock.json
/dep-cve --scope full
# Output includes:
# - CVE IDs with CVSS scores
# - Affected package versions
# - Upgrade paths
# - Exploitability assessment
Expected Output:
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CVE Dependency Scan β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ£
β Dependencies checked β 234 β
β CVEs found β 12 β
β Critical β 3 β
β High β 5 β
β Medium β 4 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββ¬βββββββββββ¬ββββββββββββββ¬βββββββββββββββ¬ββββββββββββββ
β Package β CVE β CVSS β Installed β Fixed In β
βββββββββββββββΌβββββββββββΌββββββββββββββΌβββββββββββββββΌββββββββββββββ€
β lodash β CVE-2021 β 9.8 π΄ β 4.17.15 β 4.17.21 β
β axios β CVE-2022 β 8.1 π΄ β 0.21.0 β 0.21.4 β
β express β CVE-2022 β 7.5 π β 4.17.1 β 4.18.2 β
βββββββββββββββ΄βββββββββββ΄ββββββββββββββ΄βββββββββββββββ΄ββββββββββββββ
UPGRADE COMMANDS
npm install lodash@4.17.21
npm install axios@0.21.4
npm install express@4.18.2
3. GDPR Compliance Audit
Maps data flows, identifies consent gaps, and generates DPA checklist.
bash
/gdpr-audit <application_path>
# Options
/gdpr-audit . --data-map
/gdpr-audit src/ --consent-analysis
/gdpr-audit . --full-report --output gdpr-audit.pdf
Example Analysis:
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β GDPR Compliance Audit β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ£
β Data flows mapped β 24 β
β Personal data types β 8 β
β Consent gaps β 5 β
β DPA requirements β 12/15 met β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
DATA FLOW MAP
User Registration β Database (PII: email, name, phone)
β³ Consent: β Missing explicit opt-in
β³ Retention: β No deletion policy defined
β³ Encryption: β AES-256 at rest
Analytics Pipeline β Third-party (IP address, user agent)
β³ Consent: β No cookie banner
β³ DPA: β No Data Processing Agreement on file
COMPLIANCE GAPS
π΄ Critical:
β’ No cookie consent mechanism implemented
β’ Missing data retention policies in privacy policy
β’ No user data deletion endpoint
π High:
β’ DPA missing for analytics provider
β’ DSAR (data subject access request) workflow undefined
4. SOC2 Readiness Assessment
Performs gap analysis across all 5 Trust Service Criteria.
bash
/soc2-readiness
# Options
/soc2-readiness --criteria security,availability
/soc2-readiness --type type2
/soc2-readiness --output xlsx
Example Output:
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SOC 2 Type II Readiness Assessment β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ£
β Security β 65% ready β
β Availability β 90% ready β
β Confidentiality β 45% ready β
β Processing Integrity β 70% ready β
β Privacy β 50% ready β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
SECURITY GAPS
β CC6.1: No background checks policy
β CC6.6: Missing logical access reviews (quarterly)
β CC7.2: Incomplete system monitoring
AVAILABILITY GAPS
β A1.2: RTO/RPO not documented in DR plan
REMEDIATION TIMELINE
Quick Wins (1-2 weeks):
β’ Document RTO/RPO targets
β’ Implement access review schedule
Medium-term (1-3 months):
β’ Establish background check policy
β’ Deploy SIEM for continuous monitoring
Strategic (3-6 months):
β’ Conduct third-party penetration test
β’ Implement data classification framework
5. Threat Modeling (STRIDE)
Generates STRIDE threat model for architecture diagrams.
bash
/threat-model <architecture_file>
# Options
/threat-model architecture.png --framework stride
/threat-model system-design.md --risk-matrix
/threat-model . --auto-discover
Example for Web Application:
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β STRIDE Threat Model β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ£
β Components analyzed β 8 β
β Data flows β 12 β
β Threats identified β 18 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
ARCHITECTURE COMPONENTS
β’ Web Application (React SPA)
β’ API Gateway (nginx)
β’ Backend API (Node.js/Express)
β’ Database (PostgreSQL)
β’ Auth Service (OAuth2)
β’ External Payment Gateway
THREAT ANALYSIS (STRIDE)
[S]poofing
π΄ API Gateway: No mutual TLS for backend communication
Impact: High | Likelihood: Medium
Mitigation: Implement mTLS between gateway and API
[T]ampering
π Database: SQL injection possible via user input
Impact: Critical | Likelihood: Low
Mitigation: Use parameterized queries
[R]epudiation
π‘ API: Insufficient audit logging for sensitive operations
Impact: Medium | Likelihood: Medium
Mitigation: Implement comprehensive audit trail
[I]nformation Disclosure
π΄ Payment Flow: PCI data logged in application logs
Impact: Critical | Likelihood: Medium
Mitigation: Implement PCI-compliant logging filters
[D]enial of Service
π API: No rate limiting on public endpoints
Impact: High | Likelihood: High
Mitigation: Implement rate limiting middleware
[E]levation of Privilege
π΄ Auth: JWT lacks role claims validation
Impact: Critical | Likelihood: Medium
Mitigation: Add RBAC middleware with role enforcement
RISK MATRIX
Impact β
Likelihood β Low Medium High Critical
ββββββββββββΌβββββββββββββββββββββββββββββββββββ
High β DoS
Medium β Repud. Spoof InfoDisc, EoP
Low β Tamper
6. Penetration Test Report Generator
Structures penetration test findings with executive summary and remediation.
bash
/pentest-report <findings_file>
# Options
/pentest-report findings.json --template executive
/pentest-report scan-results/ --format pdf
/pentest-report . --cvss-threshold 7.0
Example Report Structure:
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Penetration Test Report β
β Target: api.example.com β
β Date: 2024-01-15 β
β βββββββββββββββββββββββββββββββββββββββββββββββββββ£
β Critical findings β 4 β
β High findings β 7 β
β Medium findings β 12 β
β Low/Info β 8 β
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
EXECUTIVE SUMMARY
The penetration test identified 31 findings across the web application
and API infrastructure. 4 critical vulnerabilities require immediate
remediation, including SQL injection and authentication bypass issues.
CRITICAL FINDINGS
1. SQL Injection in User Search (CVSS 9.8)
Location: /api/v1/users/search?q=
Description:
User-supplied input in the 'q' parameter is directly concatenated
into SQL query without sanitization.
Proof of Concept:
GET /api/v1/users/search?q=' OR '1'='1
Remediation:
β’ Implement parameterized queries
β’ Add input validation and sanitization
β’ Deploy WAF rules to detect SQL injection patterns
Timeline: Immediate (< 48 hours)
2. Authentication Bypass via JWT None Algorithm (CVSS 9.1)
Location: /api/v1/auth/verify
Description:
JWT library accepts 'none' algorithm, allowing unsigned tokens.
Proof of Concept:
eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJ1c2VyIjoiYWRtaW4ifQ.
Remediation:
β’ Explicitly reject 'none' algorithm in JWT verification
β’ Implement algorithm whitelist
β’ Add token signature validation tests
Timeline: Immediate (< 48 hours)
REMEDIATION ROADMAP
Immediate (< 48 hours):
β Fix SQL injection vulnerabilities
β Patch JWT authentication bypass
β Disable debug endpoints in production