Perform security audits, penetration testing
Security Penetration Testing

Use when the user asks to perform security audits, penetration testing, vulnerability scanning, OWASP Top 10 checks, or offensive security assessments. Covers static analysis, dependency scanning, secret detection, API security testing,…
--- name: "security-pen-testing" description: "Use when the user asks to perform security audits, penetration testing, vulnerability scanning, OWASP Top 10 checks, or offensive security assessments. Covers static analysis, dependency scanning, secret detection, API security testing, and pen test report generation." --- # Security Penetration Testing Hands-on offensive security testing skill for finding vulnerabilities before attackers do. This is NOT compliance checking (see senior-secops) or security policy writing (see senior-security) — this is about systematic vulnerability discovery through authorized testing. --- ## Table of Contents - [Overview](#overview) - [OWASP Top 10 Systematic Audit](#owasp-top-10-systematic-audit) - [Static Analysis](#static-analysis) - [Dependency Vulnerability Scanning](#dependency-vulnerability-scanning) - [Secret Scanning](#secret-scanning)
Overview
Hands-on offensive security testing skill for finding vulnerabilities before attackers do. This is NOT compliance checking (see senior-secops) or security policy writing (see senior-security) — this is about systematic vulnerability discovery through authorized testing.
Manual install (npx, ZIP)
npx skills add alirezarezvani/claude-skills --skill security-pen-testing -g -a claude-codemkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/alirezarezvani/claude-skills/tar.gz/19392f7a0826 \
| tar -xz -C ~/.claude/skills --strip-components=3 claude-skills-19392f7a0826/engineering-team/skills/security-pen-testingNew-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/eaa0ff3106df07bba835/security-pen-testing.zip" -OutFile "$env:TEMP\security-pen-testing.zip"; Expand-Archive "$env:TEMP\security-pen-testing.zip" -DestinationPath "$HOME\.claude\skills" -ForceConnects with Agent Alley MCP · agentalley.io/mcp
Files included
SKILL.md13.6 KBreferences/3 files · 43.9 KBscripts/3 files · 65.8 KB
Read the files here
alirezarezvani/
Shared references4SKILL.md reads these from elsewhere in the repo. Not in the ZIP.
- SKILL.mdengineering-team/skills/code-reviewer/6.4 KB
- SKILL.mdengineering-team/skills/senior-secops/15.7 KB
- SKILL.mdengineering-team/skills/senior-security/5.1 KB
- SKILL.mdengineering/skills/dependency-auditor/4.5 KB
Show the full text307 lines
Security Penetration Testing
Hands-on offensive security testing skill for finding vulnerabilities before attackers do. This is NOT compliance checking (see senior-secops) or security policy writing (see senior-security) — this is about systematic vulnerability discovery through authorized testing.
Table of Contents
- Overview
- OWASP Top 10 Systematic Audit
- Static Analysis
- Dependency Vulnerability Scanning
- Secret Scanning
- API Security Testing
- Web Vulnerability Testing
- Infrastructure Security
- Pen Test Report Generation
- Responsible Disclosure Workflow
- Workflows
- Anti-Patterns
- Cross-References
Overview
What This Skill Does
This skill provides the methodology, checklists, and automation for offensive security testing — actively probing systems to discover exploitable vulnerabilities. It covers web applications, APIs, infrastructure, and supply chain security.
Distinction from Other Security Skills
| Skill | Focus | Approach |
|---|---|---|
| security-pen-testing (this) | Finding vulnerabilities | Offensive — simulate attacker techniques |
| senior-secops | Security operations | Defensive — monitoring, incident response, SIEM |
| senior-security | Security policy | Governance — policies, frameworks, risk registers |
| skill-security-auditor | CI/CD gates | Automated — pre-merge security checks |
Prerequisites
All testing described here assumes written authorization from the system owner. Unauthorized testing is illegal under the CFAA and equivalent laws worldwide. Always obtain a signed scope-of-work or rules-of-engagement document before starting.
OWASP Top 10 Systematic Audit
Use the vulnerability scanner tool for automated checklist generation:
# Generate OWASP checklist for a web application
python scripts/vulnerability_scanner.py --target web --scope full
# Quick API-focused scan
python scripts/vulnerability_scanner.py --target api --scope quick --json
Quick Reference
| # | Category | Key Tests |
|---|---|---|
| A01 | Broken Access Control | IDOR, vertical escalation, CORS, JWT claim manipulation, forced browsing |
| A02 | Cryptographic Failures | TLS version, password hashing, hardcoded keys, weak PRNG |
| A03 | Injection | SQLi, NoSQLi, command injection, template injection, XSS |
| A04 | Insecure Design | Rate limiting, business logic abuse, multi-step flow bypass |
| A05 | Security Misconfiguration | Default credentials, debug mode, security headers, directory listing |
| A06 | Vulnerable Components | Dependency audit (npm/pip/go), EOL checks, known CVEs |
| A07 | Auth Failures | Brute force, session cookie flags, session invalidation, MFA bypass |
| A08 | Integrity Failures | Unsafe deserialization, SRI checks, CI/CD pipeline integrity |
| A09 | Logging Failures | Auth event logging, sensitive data in logs, alerting thresholds |
| A10 | SSRF | Internal IP access, cloud metadata endpoints, DNS rebinding |
# Audit dependencies
python scripts/dependency_auditor.py --file package.json --severity high
python scripts/dependency_auditor.py --file requirements.txt --json
See owasp_top_10_checklist.md for detailed test procedures, code patterns to detect, remediation steps, and CVSS scoring guidance for each category.
Static Analysis
Recommended tools: CodeQL (custom queries for project-specific patterns), Semgrep (rule-based scanning with auto-fix), ESLint security plugins (eslint-plugin-security, eslint-plugin-no-unsanitized).
Key patterns to detect: SQL injection via string concatenation, hardcoded JWT secrets, unsafe YAML/pickle deserialization, missing security middleware (e.g., Express without Helmet).
See attack_patterns.md for code patterns and detection payloads across injection types.
Dependency Vulnerability Scanning
Ecosystem commands: npm audit, pip audit, govulncheck ./..., bundle audit check
CVE Triage Workflow:
- Collect — Run ecosystem audit tools, aggregate findings
- Deduplicate — Group by CVE ID across direct and transitive deps
- Prioritize — Critical + exploitable + reachable = fix immediately
- Remediate — Upgrade, patch, or mitigate with compensating controls
- Verify — Rerun audit to confirm fix, update lock files
python scripts/dependency_auditor.py --file package.json --severity critical --json
Secret Scanning
Tools: TruffleHog (git history + filesystem), Gitleaks (regex-based with custom rules).
# Scan git history for verified secrets
trufflehog git file://. --only-verified --json
# Scan filesystem
trufflehog filesystem . --json
Integration points: Pre-commit hooks (gitleaks, trufflehog), CI/CD gates (GitHub Actions with trufflesecurity/trufflehog@main). Configure .gitleaks.toml for custom rules (AWS keys, API keys, private key headers) and allowlists for test fixtures.
API Security Testing
Authentication Bypass
- JWT manipulation: Change
algtonone, RS256-to-HS256 confusion, claim modification (role: "admin",exp: 9999999999) - Session fixation: Check if session ID changes after authentication
Authorization Flaws
- IDOR/BOLA: Change resource IDs in every endpoint — test read, update, delete across users
- BFLA: Regular user tries admin endpoints (expect 403)
- Mass assignment: Add privileged fields (
role,is_admin) to update requests
Rate Limiting & GraphQL
- Rate limiting: Rapid-fire requests to auth endpoints; expect 429 after threshold
- GraphQL: Test introspection (should be disabled in prod), query depth attacks, batch mutations bypassing rate limits
See attack_patterns.md for complete JWT manipulation payloads, IDOR testing methodology, BFLA endpoint lists, GraphQL introspection/depth/batch attack patterns, and rate limiting bypass techniques.
Web Vulnerability Testing
| Vulnerability | Key Tests |
|---|---|
| XSS | Reflected (script/img/svg payloads), Stored (persistent fields), DOM-based (innerHTML + location.hash) |
| CSRF | Replay without token (expect 403), cross-session token replay, check SameSite cookie attribute |
| SQL Injection | Error-based (' OR 1=1--), union-based enumeration, time-based blind (SLEEP(5)), boolean-based blind |
| SSRF | Internal IPs, cloud metadata endpoints (AWS/GCP/Azure), IPv6/hex/decimal encoding bypasses |
| Path Traversal | ../../../etc/passwd, URL encoding, double encoding bypasses |
See attack_patterns.md for complete test payloads (XSS filter bypasses, context-specific XSS, SQL injection per database engine, SSRF bypass techniques, and DOM-based XSS source/sink pairs).
Infrastructure Security
Key checks:
- Cloud storage: S3 bucket public access (
aws s3 ls s3://bucket --no-sign-request), bucket policies, ACLs - HTTP security headers: HSTS, CSP (no
unsafe-inline/unsafe-eval), X-Content-Type-Options, X-Frame-Options, Referrer-Policy - TLS configuration:
nmap --script ssl-enum-ciphers -p 443 target.comortestssl.sh— reject TLS 1.0/1.1, RC4, 3DES, export-grade ciphers - Port scanning:
nmap -sV target.com— flag dangerous open ports (FTP/21, Telnet/23, Redis/6379, MongoDB/27017)
Pen Test Report Generation
Generate professional reports from structured findings:
# Generate markdown report from findings JSON
python scripts/pentest_report_generator.py --findings findings.json --format md --output report.md
# Generate JSON report
python scripts/pentest_report_generator.py --findings findings.json --format json --output report.json
Findings JSON Format
[
{
"title": "SQL Injection in Login Endpoint",
"severity": "critical",
"cvss_score": 9.8,
"cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"category": "A03:2021 - Injection",
"description": "The /api/login endpoint is vulnerable to SQL injection via the email parameter.",
"evidence": "Request: POST /api/login {\"email\": \"' OR 1=1--\", \"password\": \"x\"}\nResponse: 200 OK with admin session token",
"impact": "Full database access, authentication bypass, potential remote code execution",
"remediation": "Use parameterized queries. Replace string concatenation with prepared statements.",
"references": ["https://cwe.mitre.org/data/definitions/89.html"]
}
]
Report Structure
- Executive Summary: Business impact, overall risk level, top 3 findings
- Scope: What was tested, what was excluded, testing dates
- Methodology: Tools used, testing approach (black/gray/white box)
- Findings Table: Sorted by severity with CVSS scores
- Detailed Findings: Each with description, evidence, impact, remediation
- Remediation Priority Matrix: Effort vs. impact for each fix
- Appendix: Raw tool output, full payload lists
Responsible Disclosure Workflow
Responsible disclosure is mandatory for any vulnerability found during authorized testing. Standard timeline: report on day 1, follow up at day 7, status update at day 30, public disclosure at day 90.
Key principles: Never exploit beyond proof of concept, encrypt all communications, do not access real user data, document everything with timestamps.
See responsible_disclosure.md for full disclosure timelines (standard 90-day, accelerated 30-day, extended 120-day), communication templates, legal considerations, bug bounty program integration, and CVE request process.
Workflows
Workflow 1: Quick Security Check (15 Minutes)
For pre-merge reviews or quick health checks:
# 1. Generate OWASP checklist
python scripts/vulnerability_scanner.py --target web --scope quick
# 2. Scan dependencies
python scripts/dependency_auditor.py --file package.json --severity high
# 3. Check for secrets in recent commits
# (Use gitleaks or trufflehog as described in Secret Scanning section)
# 4. Review HTTP security headers
curl -sI https://target.com | grep -iE "(strict-transport|content-security|x-frame|x-content-type)"
Decision: If any critical or high findings, block the merge.
Workflow 2: Full Penetration Test (Multi-Day Assessment)
Day 1 — Reconnaissance:
- Map the attack surface: endpoints, authentication flows, third-party integrations
- Run automated OWASP checklist (full scope)
- Run dependency audit across all manifests
- Run secret scan on full git history
Day 2 — Manual Testing:
- Test authentication and authorization (IDOR, BOLA, BFLA)
- Test injection points (SQLi, XSS, SSRF, command injection)
- Test business logic flaws
- Test API-specific vulnerabilities (GraphQL, rate limiting, mass assignment)
Day 3 — Infrastructure and Reporting:
- Check cloud storage permissions
- Verify TLS configuration and security headers
- Port scan for unnecessary services
- Compile findings into structured JSON
- Generate pen test report
# Generate final report
python scripts/pentest_report_generator.py --findings findings.json --format md --output pentest-report.md
Workflow 3: CI/CD Security Gate
Automated security checks on every PR: secret scanning (TruffleHog), dependency audit (npm audit, pip audit), SAST (Semgrep with p/security-audit, p/owasp-top-ten), and security headers check on staging.
Gate Policy: Block merge on critical/high findings. Warn on medium. Log low/info.
Anti-Patterns
- Testing in production without authorization — Always get written permission and use staging/test environments when possible
- Ignoring low-severity findings — Low findings compound; a chain of lows can become a critical exploit path
- Skipping responsible disclosure — Every vulnerability found must be reported through proper channels
- Relying solely on automated tools — Tools miss business logic flaws, chained exploits, and novel attack vectors
- Testing without a defined scope — Scope creep leads to legal liability; document what is and isn't in scope
- Reporting without remediation guidance — Every finding must include actionable remediation steps
- Storing evidence insecurely — Pen test evidence (screenshots, payloads, tokens) is sensitive; encrypt and restrict access
- One-time testing — Security testing must be continuous; integrate into CI/CD and schedule periodic assessments
Cross-References
| Skill | Relationship |
|---|---|
| senior-secops | Defensive security operations — monitoring, incident response, SIEM configuration |
| senior-security | Security policy and governance — frameworks, risk registers, compliance |
| dependency-auditor | Deep supply chain security — SBOMs, license compliance, transitive risk |
| code-reviewer | Code review practices — includes security review checklist |
| 1 | |
| 2 | name "security-pen-testing" |
| 3 | description "Use when the user asks to perform security audits, penetration testing, vulnerability scanning, OWASP Top 10 checks, or offensive security assessments. Covers static analysis, dependency scanning, secret detection, API security testing, and pen test report generation." |
| 4 | |
| 5 | |
| 6 | # Security Penetration Testing |
| 7 | |
| 8 | Hands-on offensive security testing skill for finding vulnerabilities before attackers do. This is NOT compliance checking (see senior-secops) or security policy writing (see senior-security) — this is about systematic vulnerability discovery through authorized testing. |
| 9 | |
| 10 | |
| 11 | |
| 12 | ## Table of Contents |
| 13 | |
| 14 | [Overview] |
| 15 | [OWASP Top 10 Systematic Audit] |
| 16 | [Static Analysis] |
| 17 | [Dependency Vulnerability Scanning] |
| 18 | [Secret Scanning] |
| 19 | [API Security Testing] |
| 20 | [Web Vulnerability Testing] |
| 21 | [Infrastructure Security] |
| 22 | [Pen Test Report Generation] |
| 23 | [Responsible Disclosure Workflow] |
| 24 | [Workflows] |
| 25 | [Anti-Patterns] |
| 26 | [Cross-References] |
| 27 | |
| 28 | |
| 29 | |
| 30 | ## Overview |
| 31 | |
| 32 | ### What This Skill Does |
| 33 | |
| 34 | This skill provides the methodology, checklists, and automation for **offensive security testing** — actively probing systems to discover exploitable vulnerabilities. It covers web applications, APIs, infrastructure, and supply chain security. |
| 35 | |
| 36 | ### Distinction from Other Security Skills |
| 37 | |
| 38 | | Skill | Focus | Approach | |
| 39 | |-------|-------|----------| |
| 40 | | **security-pen-testing** (this) | Finding vulnerabilities | Offensive — simulate attacker techniques | |
| 41 | | senior-secops | Security operations | Defensive — monitoring, incident response, SIEM | |
| 42 | | senior-security | Security policy | Governance — policies, frameworks, risk registers | |
| 43 | | skill-security-auditor | CI/CD gates | Automated — pre-merge security checks | |
| 44 | |
| 45 | ### Prerequisites |
| 46 | |
| 47 | All testing described here assumes **written authorization** from the system owner. Unauthorized testing is illegal under the CFAA and equivalent laws worldwide. Always obtain a signed scope-of-work or rules-of-engagement document before starting. |
| 48 | |
| 49 | |
| 50 | |
| 51 | ## OWASP Top 10 Systematic Audit |
| 52 | |
| 53 | Use the vulnerability scanner tool for automated checklist generation: |
| 54 | |
| 55 | |
| 56 | # Generate OWASP checklist for a web application |
| 57 | python scripts/vulnerability_scanner.py --target web --scope full |
| 58 | |
| 59 | # Quick API-focused scan |
| 60 | python scripts/vulnerability_scanner.py --target api --scope quick --json |
| 61 | |
| 62 | |
| 63 | ### Quick Reference |
| 64 | |
| 65 | | # | Category | Key Tests | |
| 66 | |---|----------|-----------| |
| 67 | | A01 | Broken Access Control | IDOR, vertical escalation, CORS, JWT claim manipulation, forced browsing | |
| 68 | | A02 | Cryptographic Failures | TLS version, password hashing, hardcoded keys, weak PRNG | |
| 69 | | A03 | Injection | SQLi, NoSQLi, command injection, template injection, XSS | |
| 70 | | A04 | Insecure Design | Rate limiting, business logic abuse, multi-step flow bypass | |
| 71 | | A05 | Security Misconfiguration | Default credentials, debug mode, security headers, directory listing | |
| 72 | | A06 | Vulnerable Components | Dependency audit (npm/pip/go), EOL checks, known CVEs | |
| 73 | | A07 | Auth Failures | Brute force, session cookie flags, session invalidation, MFA bypass | |
| 74 | | A08 | Integrity Failures | Unsafe deserialization, SRI checks, CI/CD pipeline integrity | |
| 75 | | A09 | Logging Failures | Auth event logging, sensitive data in logs, alerting thresholds | |
| 76 | | A10 | SSRF | Internal IP access, cloud metadata endpoints, DNS rebinding | |
| 77 | |
| 78 | |
| 79 | # Audit dependencies |
| 80 | python scripts/dependency_auditor.py --file package.json --severity high |
| 81 | python scripts/dependency_auditor.py --file requirements.txt --json |
| 82 | |
| 83 | |
| 84 | See [owasp_top_10_checklist.md] for detailed test procedures, code patterns to detect, remediation steps, and CVSS scoring guidance for each category. |
| 85 | |
| 86 | |
| 87 | |
| 88 | ## Static Analysis |
| 89 | |
| 90 | **Recommended tools:** CodeQL (custom queries for project-specific patterns), Semgrep (rule-based scanning with auto-fix), ESLint security plugins (`eslint-plugin-security`, `eslint-plugin-no-unsanitized`). |
| 91 | |
| 92 | Key patterns to detect: SQL injection via string concatenation, hardcoded JWT secrets, unsafe YAML/pickle deserialization, missing security middleware (e.g., Express without Helmet). |
| 93 | |
| 94 | See [attack_patterns.md] for code patterns and detection payloads across injection types. |
| 95 | |
| 96 | |
| 97 | |
| 98 | ## Dependency Vulnerability Scanning |
| 99 | |
| 100 | **Ecosystem commands:** `npm audit`, `pip audit`, `govulncheck ./...`, `bundle audit check` |
| 101 | |
| 102 | **CVE Triage Workflow:** |
| 103 | **Collect** — Run ecosystem audit tools, aggregate findings |
| 104 | **Deduplicate** — Group by CVE ID across direct and transitive deps |
| 105 | **Prioritize** — Critical + exploitable + reachable = fix immediately |
| 106 | **Remediate** — Upgrade, patch, or mitigate with compensating controls |
| 107 | **Verify** — Rerun audit to confirm fix, update lock files |
| 108 | |
| 109 | |
| 110 | python scripts/dependency_auditor.py --file package.json --severity critical --json |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | ## Secret Scanning |
| 116 | |
| 117 | **Tools:** TruffleHog (git history + filesystem), Gitleaks (regex-based with custom rules). |
| 118 | |
| 119 | |
| 120 | # Scan git history for verified secrets |
| 121 | trufflehog git file://. --only-verified --json |
| 122 | |
| 123 | # Scan filesystem |
| 124 | trufflehog filesystem . --json |
| 125 | |
| 126 | |
| 127 | **Integration points:** Pre-commit hooks (gitleaks, trufflehog), CI/CD gates (GitHub Actions with `trufflesecurity/trufflehog@main`). Configure `.gitleaks.toml` for custom rules (AWS keys, API keys, private key headers) and allowlists for test fixtures. |
| 128 | |
| 129 | |
| 130 | |
| 131 | ## API Security Testing |
| 132 | |
| 133 | ### Authentication Bypass |
| 134 | |
| 135 | **JWT manipulation:** Change `alg` to `none`, RS256-to-HS256 confusion, claim modification (`role: "admin"`, `exp: 9999999999`) |
| 136 | **Session fixation:** Check if session ID changes after authentication |
| 137 | |
| 138 | ### Authorization Flaws |
| 139 | |
| 140 | **IDOR/BOLA:** Change resource IDs in every endpoint — test read, update, delete across users |
| 141 | **BFLA:** Regular user tries admin endpoints (expect 403) |
| 142 | **Mass assignment:** Add privileged fields (`role`, `is_admin`) to update requests |
| 143 | |
| 144 | ### Rate Limiting & GraphQL |
| 145 | |
| 146 | **Rate limiting:** Rapid-fire requests to auth endpoints; expect 429 after threshold |
| 147 | **GraphQL:** Test introspection (should be disabled in prod), query depth attacks, batch mutations bypassing rate limits |
| 148 | |
| 149 | See [attack_patterns.md] for complete JWT manipulation payloads, IDOR testing methodology, BFLA endpoint lists, GraphQL introspection/depth/batch attack patterns, and rate limiting bypass techniques. |
| 150 | |
| 151 | |
| 152 | |
| 153 | ## Web Vulnerability Testing |
| 154 | |
| 155 | | Vulnerability | Key Tests | |
| 156 | |--------------|-----------| |
| 157 | | **XSS** | Reflected (script/img/svg payloads), Stored (persistent fields), DOM-based (innerHTML + location.hash) | |
| 158 | | **CSRF** | Replay without token (expect 403), cross-session token replay, check SameSite cookie attribute | |
| 159 | | **SQL Injection** | Error-based (`' OR 1=1--`), union-based enumeration, time-based blind (`SLEEP(5)`), boolean-based blind | |
| 160 | | **SSRF** | Internal IPs, cloud metadata endpoints (AWS/GCP/Azure), IPv6/hex/decimal encoding bypasses | |
| 161 | | **Path Traversal** | `../../../etc/passwd`, URL encoding, double encoding bypasses | |
| 162 | |
| 163 | See [attack_patterns.md] for complete test payloads (XSS filter bypasses, context-specific XSS, SQL injection per database engine, SSRF bypass techniques, and DOM-based XSS source/sink pairs). |
| 164 | |
| 165 | |
| 166 | |
| 167 | ## Infrastructure Security |
| 168 | |
| 169 | **Key checks:** |
| 170 | **Cloud storage:** S3 bucket public access (`aws s3 ls s3://bucket --no-sign-request`), bucket policies, ACLs |
| 171 | **HTTP security headers:** HSTS, CSP (no `unsafe-inline`/`unsafe-eval`), X-Content-Type-Options, X-Frame-Options, Referrer-Policy |
| 172 | **TLS configuration:** `nmap --script ssl-enum-ciphers -p 443 target.com` or `testssl.sh` — reject TLS 1.0/1.1, RC4, 3DES, export-grade ciphers |
| 173 | **Port scanning:** `nmap -sV target.com` — flag dangerous open ports (FTP/21, Telnet/23, Redis/6379, MongoDB/27017) |
| 174 | |
| 175 | |
| 176 | |
| 177 | ## Pen Test Report Generation |
| 178 | |
| 179 | Generate professional reports from structured findings: |
| 180 | |
| 181 | |
| 182 | # Generate markdown report from findings JSON |
| 183 | python scripts/pentest_report_generator.py --findings findings.json --format md --output report.md |
| 184 | |
| 185 | # Generate JSON report |
| 186 | python scripts/pentest_report_generator.py --findings findings.json --format json --output report.json |
| 187 | |
| 188 | |
| 189 | ### Findings JSON Format |
| 190 | |
| 191 | |
| 192 | [ |
| 193 | { |
| 194 | "title": "SQL Injection in Login Endpoint", |
| 195 | "severity": "critical", |
| 196 | "cvss_score": 9.8, |
| 197 | "cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", |
| 198 | "category": "A03:2021 - Injection", |
| 199 | "description": "The /api/login endpoint is vulnerable to SQL injection via the email parameter.", |
| 200 | "evidence": "Request: POST /api/login {\"email\": \"' OR 1=1--\", \"password\": \"x\"}\nResponse: 200 OK with admin session token", |
| 201 | "impact": "Full database access, authentication bypass, potential remote code execution", |
| 202 | "remediation": "Use parameterized queries. Replace string concatenation with prepared statements.", |
| 203 | "references": ["https://cwe.mitre.org/data/definitions/89.html"] |
| 204 | } |
| 205 | ] |
| 206 | |
| 207 | |
| 208 | ### Report Structure |
| 209 | |
| 210 | **Executive Summary**: Business impact, overall risk level, top 3 findings |
| 211 | **Scope**: What was tested, what was excluded, testing dates |
| 212 | **Methodology**: Tools used, testing approach (black/gray/white box) |
| 213 | **Findings Table**: Sorted by severity with CVSS scores |
| 214 | **Detailed Findings**: Each with description, evidence, impact, remediation |
| 215 | **Remediation Priority Matrix**: Effort vs. impact for each fix |
| 216 | **Appendix**: Raw tool output, full payload lists |
| 217 | |
| 218 | |
| 219 | |
| 220 | ## Responsible Disclosure Workflow |
| 221 | |
| 222 | Responsible disclosure is **mandatory** for any vulnerability found during authorized testing. Standard timeline: report on day 1, follow up at day 7, status update at day 30, public disclosure at day 90. |
| 223 | |
| 224 | **Key principles:** Never exploit beyond proof of concept, encrypt all communications, do not access real user data, document everything with timestamps. |
| 225 | |
| 226 | See [responsible_disclosure.md] for full disclosure timelines (standard 90-day, accelerated 30-day, extended 120-day), communication templates, legal considerations, bug bounty program integration, and CVE request process. |
| 227 | |
| 228 | |
| 229 | |
| 230 | ## Workflows |
| 231 | |
| 232 | ### Workflow 1: Quick Security Check (15 Minutes) |
| 233 | |
| 234 | For pre-merge reviews or quick health checks: |
| 235 | |
| 236 | |
| 237 | # 1. Generate OWASP checklist |
| 238 | python scripts/vulnerability_scanner.py --target web --scope quick |
| 239 | |
| 240 | # 2. Scan dependencies |
| 241 | python scripts/dependency_auditor.py --file package.json --severity high |
| 242 | |
| 243 | # 3. Check for secrets in recent commits |
| 244 | # (Use gitleaks or trufflehog as described in Secret Scanning section) |
| 245 | |
| 246 | # 4. Review HTTP security headers |
| 247 | curl -sI https://target.com | grep -iE "(strict-transport|content-security|x-frame|x-content-type)" |
| 248 | |
| 249 | |
| 250 | **Decision**: If any critical or high findings, block the merge. |
| 251 | |
| 252 | ### Workflow 2: Full Penetration Test (Multi-Day Assessment) |
| 253 | |
| 254 | **Day 1 — Reconnaissance:** |
| 255 | Map the attack surface: endpoints, authentication flows, third-party integrations |
| 256 | Run automated OWASP checklist (full scope) |
| 257 | Run dependency audit across all manifests |
| 258 | Run secret scan on full git history |
| 259 | |
| 260 | **Day 2 — Manual Testing:** |
| 261 | Test authentication and authorization (IDOR, BOLA, BFLA) |
| 262 | Test injection points (SQLi, XSS, SSRF, command injection) |
| 263 | Test business logic flaws |
| 264 | Test API-specific vulnerabilities (GraphQL, rate limiting, mass assignment) |
| 265 | |
| 266 | **Day 3 — Infrastructure and Reporting:** |
| 267 | Check cloud storage permissions |
| 268 | Verify TLS configuration and security headers |
| 269 | Port scan for unnecessary services |
| 270 | Compile findings into structured JSON |
| 271 | Generate pen test report |
| 272 | |
| 273 | |
| 274 | # Generate final report |
| 275 | python scripts/pentest_report_generator.py --findings findings.json --format md --output pentest-report.md |
| 276 | |
| 277 | |
| 278 | ### Workflow 3: CI/CD Security Gate |
| 279 | |
| 280 | Automated security checks on every PR: secret scanning (TruffleHog), dependency audit (`npm audit`, `pip audit`), SAST (Semgrep with `p/security-audit`, `p/owasp-top-ten`), and security headers check on staging. |
| 281 | |
| 282 | **Gate Policy**: Block merge on critical/high findings. Warn on medium. Log low/info. |
| 283 | |
| 284 | |
| 285 | |
| 286 | ## Anti-Patterns |
| 287 | |
| 288 | **Testing in production without authorization** — Always get written permission and use staging/test environments when possible |
| 289 | **Ignoring low-severity findings** — Low findings compound; a chain of lows can become a critical exploit path |
| 290 | **Skipping responsible disclosure** — Every vulnerability found must be reported through proper channels |
| 291 | **Relying solely on automated tools** — Tools miss business logic flaws, chained exploits, and novel attack vectors |
| 292 | **Testing without a defined scope** — Scope creep leads to legal liability; document what is and isn't in scope |
| 293 | **Reporting without remediation guidance** — Every finding must include actionable remediation steps |
| 294 | **Storing evidence insecurely** — Pen test evidence (screenshots, payloads, tokens) is sensitive; encrypt and restrict access |
| 295 | **One-time testing** — Security testing must be continuous; integrate into CI/CD and schedule periodic assessments |
| 296 | |
| 297 | |
| 298 | |
| 299 | ## Cross-References |
| 300 | |
| 301 | | Skill | Relationship | |
| 302 | |-------|-------------| |
| 303 | | [senior-secops] | Defensive security operations — monitoring, incident response, SIEM configuration | |
| 304 | | [senior-security] | Security policy and governance — frameworks, risk registers, compliance | |
| 305 | | [dependency-auditor] | Deep supply chain security — SBOMs, license compliance, transitive risk | |
| 306 | | [code-reviewer] | Code review practices — includes security review checklist | |
| 307 |
Details
- Updated
- Aug 30, 2026
- License
- MIT
- Stars on the repo
- ★ 26,349
- Checked
- Source
- alirezarezvani/claude-skills ↗
- Creator
- alirezarezvani · 363 listings
Similar skills
See all →
SkillSecurity guidance and vulnerability review for codebasesSecurity audit
MCPYou need to audit Active Directory security postureAd security reviewer
SkillApply modern web development best practices for security
SkillHelps Claude write secure web applicationsSecure Coding Guide for Web Applications
MCPReviews completed implementation against governing securitySecurity reviewer
SkillAccount-based marketing for B2B SaaSAccount-Based Marketing OperationsMore from alirezarezvani
SkillResume a paused experiment/ar:ar-resume — Resume Experiment
SkillShow experiment dashboard with results, active loops/ar:ar-status — Experiment Dashboard
SkillStart an autonomous experiment loop with user-selected/ar:loop — Autonomous Experiment Loop
SkillRun a single experiment iteration/ar:run — Single Experiment Iteration
SkillSet up a new autoresearch experiment interactively/ar:setup — Create New Experiment
Skill/cs:boardroom <brief/cs:boardroom — Multi-Role Boardroom Deliberation