Plan penetration testing engagements: scope definition, methodology selection (OWASP, PTES), rules of engagement, testing phases, reporting format, and remediation tracking. TRIGGER when: user says /pen-test-plan, asks about planning a penetration test, needs help defining pentest scope, or wants to structure a security testing engagement.
You are a senior security engineer planning a structured penetration testing engagement. Produce a comprehensive test plan that defines scope, methodology, rules of engagement, testing phases, and reporting standards to ensure thorough and professional security testing.
Process
Step 1: Define Engagement Scope
Establish clear boundaries for what will and will not be tested.
What systems, applications, or networks are in scope?
What environments will be tested (production, staging, dedicated test)?
What is the engagement type (black-box, grey-box, white-box)?
What is the testing window and timezone?
Are there any systems or actions explicitly out of scope?
Restore any modified configurations to original state
Verify no persistent access mechanisms remain
Confirm all testing artifacts are removed from target systems
Document any changes that could not be reversed
Step 5: Define Reporting Format
Establish the structure and standards for the final penetration test report.
Finding severity classification:
Severity
CVSS Range
Description
Remediation SLA
Critical
9.0 - 10.0
Immediate risk of data breach, full system compromise, or RCE with no authentication
7 days
High
7.0 - 8.9
Significant data exposure, authentication bypass, privilege escalation
30 days
Medium
4.0 - 6.9
Limited data exposure, requires specific conditions to exploit
90 days
Low
0.1 - 3.9
Minor information disclosure, defense-in-depth improvements
180 days
Informational
0.0
Best practice recommendations, no direct security impact
Backlog
Individual finding template:
### [SEVERITY] Finding Title
**ID:** PT-YYYY-NNN
**CVSS Score:** X.X (Vector string)
**Affected Asset:** [URL, IP, component]
**Category:** [OWASP Top 10 category or CWE]
**Description:**
[Clear explanation of the vulnerability and why it matters]
**Steps to Reproduce:**
1. [Step-by-step reproduction instructions]
2. [Include specific requests, parameters, payloads]
3. [Include screenshots or request/response pairs]
**Impact:**
[What an attacker could achieve by exploiting this vulnerability]
**Recommendation:**
[Specific, actionable remediation guidance with code examples where applicable]
**References:**
- [CWE link]
- [OWASP reference]
- [Vendor advisory if applicable]
Step 6: Remediation Tracking
Establish a process for tracking remediation of identified findings.
Remediation tracker:
Finding ID
Severity
Title
Owner
Remediation SLA
Status
Retest Date
Retest Result
PT-2026-001
Critical
SQL Injection in search API
Backend Team
7 days
Remediated
date
Pass
PT-2026-002
High
Broken access control on admin endpoints
API Team
30 days
In Progress
date
Pending
PT-2026-003
Medium
Missing rate limiting on authentication
Platform Team
90 days
Not Started
date
Pending
Remediation workflow:
Finding delivered — Tester shares finding with development/security team
Triage and assign — Team confirms finding, assigns owner, sets target date
Remediate — Owner implements fix following the provided recommendation
Verify fix — Owner validates fix in staging with the reproduction steps
Request retest — Owner requests tester to verify remediation
Retest — Tester confirms vulnerability is resolved and no regressions introduced
Close — Finding marked as remediated with retest evidence
Output Format
Present the test plan as a structured document:
## Penetration Test Plan
### Engagement Overview
- Target: [application, system, or network]
- Type: [black-box / grey-box / white-box]
- Methodology: [OWASP / PTES / NIST]
- Testing window: [dates and hours]
- Environment: [production / staging / dedicated test]
### Scope
- In-scope and out-of-scope tables
### Rules of Engagement
- Authorized actions, prohibited actions, emergency contacts
### Testing Phases
- Phase breakdown with activities, tools, and expected outputs
### Reporting Standards
- Severity classification, finding template, deliverable timeline
### Remediation Process
- SLA definitions, tracking process, retest procedures
### Authorization
- Sign-off from system owner and legal
Quality Checklist
Scope explicitly lists both in-scope and out-of-scope targets with no ambiguity
Rules of engagement include emergency stop procedures and contact information
Methodology is appropriate for the target type (web, mobile, network, cloud)
Testing phases are sequenced logically with clear entry and exit criteria
Severity classification uses an industry-standard scoring system (CVSS)
Reporting format includes reproduction steps sufficient for developers to verify and fix
Remediation SLAs are realistic and aligned with organizational capacity
Legal authorization and cloud provider notifications are completed before testing begins
Data handling and destruction requirements are clearly defined
Cleanup procedures ensure no tester artifacts remain on target systems
Edge Cases
For production testing: require explicit written authorization; test during low-traffic windows; have rollback plans; coordinate with on-call teams for immediate incident response if needed
For API-only targets: supplement automated scanning with thorough manual testing of business logic, authorization, and rate limiting which scanners frequently miss
For cloud infrastructure tests: verify cloud provider penetration testing policies (AWS, GCP, Azure each have specific requirements); include IAM and resource policy review
For microservices architectures: test inter-service authentication and authorization, not just the external API gateway; verify service mesh security configurations
For CI/CD pipeline testing: include supply chain attack scenarios (dependency confusion, pipeline poisoning); test secret management and build artifact integrity
For retests after remediation: verify the specific fix does not introduce regressions; test bypass variations of the original vulnerability; confirm fix is deployed to all affected environments
1---2name: pen-test-plan3description: Plan penetration testing engagements: scope definition, methodology selection (OWASP, PTES), rules of engagement, testing phases, reporting format, and remediation tracking. TRIGGER when: user says /pen-test-plan, asks about planning a penetration test, needs help defining pentest scope, or wants to structure a security testing engagement.4---56# Penetration Test Planning78You are a senior security engineer planning a structured penetration testing engagement. Produce a comprehensive test plan that defines scope, methodology, rules of engagement, testing phases, and reporting standards to ensure thorough and professional security testing.910## Process1112### Step 1: Define Engagement Scope1314Establish clear boundaries for what will and will not be tested.1516- What systems, applications, or networks are in scope?17- What environments will be tested (production, staging, dedicated test)?18- What is the engagement type (black-box, grey-box, white-box)?19- What is the testing window and timezone?20- Are there any systems or actions explicitly out of scope?2122**Scope definition template:**2324| Scope Element | In Scope | Out of Scope |25|---------------|----------|-------------|26| **Applications** | *e.g., api.example.com, app.example.com* | *e.g., legacy.example.com (EOL system)* |27| **Networks** | *e.g., 10.0.1.0/24, external perimeter* | *e.g., 10.0.99.0/24 (third-party managed)* |28| **Cloud accounts** | *e.g., AWS account 123456789012* | *e.g., shared services account* |29| **User roles** | *e.g., anonymous, authenticated user, admin* | *e.g., super-admin (break-glass only)* |30| **Attack types** | *e.g., injection, auth bypass, privilege escalation* | *e.g., physical access, social engineering, DDoS* |3132**Engagement type comparison:**3334| Type | Tester Knowledge | Realism | Coverage | Typical Duration |35|------|-----------------|---------|----------|-----------------|36| **Black-box** | No internal knowledge, external attacker perspective | Highest | Lowest (may miss internal paths) | 2-4 weeks |37| **Grey-box** | Credentials, API docs, architecture diagrams provided | Medium | Medium (balances realism and coverage) | 1-3 weeks |38| **White-box** | Full source code, infrastructure access, documentation | Lowest | Highest (most thorough) | 2-5 weeks |3940### Step 2: Select Methodology4142Choose and tailor the testing methodology based on the target and engagement type.4344**Methodology selection guide:**4546| Methodology | Best For | Key Phases | Standard Reference |47|-------------|----------|------------|-------------------|48| **OWASP Testing Guide** | Web applications, APIs | Information gathering, configuration testing, authentication, authorization, input validation, business logic, client-side | OWASP WSTG v4.2 |49| **PTES (Penetration Testing Execution Standard)** | Full-scope engagements (network + application) | Pre-engagement, intelligence gathering, threat modeling, vulnerability analysis, exploitation, post-exploitation, reporting | ptes.org |50| **OWASP Mobile Testing Guide** | iOS and Android applications | Architecture, data storage, cryptography, authentication, network communication, platform interaction, code quality | OWASP MASTG |51| **NIST SP 800-115** | Government and regulated environments | Planning, discovery, attack, reporting | NIST 800-115 |52| **CIS Benchmarks** | Infrastructure and configuration review | Benchmark comparison against hardening standards | CIS |5354**OWASP Top 10 coverage checklist (for web application tests):**5556- [ ] A01: Broken Access Control (IDOR, privilege escalation, forced browsing)57- [ ] A02: Cryptographic Failures (weak TLS, plaintext secrets, poor key management)58- [ ] A03: Injection (SQLi, NoSQLi, OS command, LDAP, XPath)59- [ ] A04: Insecure Design (business logic flaws, missing threat modeling)60- [ ] A05: Security Misconfiguration (default creds, verbose errors, unnecessary features)61- [ ] A06: Vulnerable and Outdated Components (known CVEs, unpatched libraries)62- [ ] A07: Identification and Authentication Failures (brute force, weak passwords, session issues)63- [ ] A08: Software and Data Integrity Failures (insecure deserialization, unsigned updates)64- [ ] A09: Security Logging and Monitoring Failures (missing audit trails, no alerting)65- [ ] A10: Server-Side Request Forgery (SSRF to internal services, cloud metadata)6667### Step 3: Establish Rules of Engagement6869Define the operational boundaries and communication protocols for the engagement.7071**Rules of engagement document:**7273| Rule | Definition |74|------|-----------|75| **Testing window** | *e.g., Mon-Fri 09:00-17:00 UTC, or 24/7 for production-like staging* |76| **Notification contacts** | Primary: *name, phone, email*; Secondary: *name, phone, email* |77| **Emergency stop procedure** | Tester calls primary contact immediately; cease all testing; preserve evidence |78| **Allowed actions** | Vulnerability scanning, manual exploitation, credential stuffing (test accounts only), privilege escalation |79| **Prohibited actions** | Denial of service, data destruction, social engineering of employees, modification of production data, accessing real customer data |80| **Data handling** | All findings encrypted at rest; shared via secure channel only; destroyed 90 days post-engagement |81| **Third-party systems** | Do not test third-party SaaS without written authorization; report any unintentional access immediately |82| **Credential usage** | Use only provided test accounts; do not create unauthorized accounts; report any real credentials discovered |8384**Legal and authorization checklist:**8586- [ ] Written authorization signed by system owner with legal authority87- [ ] Scope document reviewed and signed by both parties88- [ ] Cloud provider notification completed (AWS penetration testing policy, etc.)89- [ ] Third-party authorization obtained for any shared infrastructure90- [ ] Non-disclosure agreement (NDA) executed91- [ ] Liability and indemnification clauses reviewed by legal92- [ ] Data processing agreement in place if tester will access personal data93- [ ] Insurance verification (professional liability / errors and omissions)9495### Step 4: Plan Testing Phases9697Structure the engagement into distinct phases with clear objectives and deliverables.9899**Phase 1: Reconnaissance and Information Gathering**100101| Activity | Technique | Tools | Output |102|----------|-----------|-------|--------|103| Passive reconnaissance | DNS enumeration, OSINT, certificate transparency | Subfinder, Amass, crt.sh, Shodan | Target inventory, subdomain list |104| Active reconnaissance | Port scanning, service enumeration, technology fingerprinting | Nmap, Masscan, Wappalyzer | Open port/service inventory, technology stack |105| Application mapping | Crawling, sitemap analysis, API endpoint discovery | Burp Suite, OWASP ZAP, Postman | Application sitemap, API endpoint catalog |106| Authentication enumeration | Login page analysis, registration flow, password policy | Manual testing, Burp Suite | Auth mechanism inventory, policy assessment |107108**Phase 2: Vulnerability Identification**109110| Activity | Technique | Tools | Output |111|----------|-----------|-------|--------|112| Automated scanning | Vulnerability scanning, DAST | Burp Scanner, Nuclei, Nikto | Automated findings (to be validated) |113| Manual testing | Business logic review, auth bypass attempts, injection testing | Burp Suite, sqlmap, custom scripts | Validated vulnerability list |114| Configuration review | Server hardening, TLS configuration, header analysis | testssl.sh, SecurityHeaders.com, manual | Configuration findings |115| Dependency analysis | Known CVE identification in third-party components | Snyk, OWASP Dependency-Check | Vulnerable component inventory |116117**Phase 3: Exploitation and Proof of Concept**118119| Activity | Technique | Tools | Output |120|----------|-----------|-------|--------|121| Vulnerability exploitation | Targeted exploitation of confirmed vulnerabilities | Burp Suite, Metasploit, custom PoCs | Exploitation evidence (screenshots, request/response) |122| Privilege escalation | Horizontal and vertical privilege escalation attempts | Manual testing, custom scripts | Privilege escalation paths documented |123| Chaining | Combine low-severity findings into higher-impact attack chains | Manual analysis | Attack chain narratives |124| Data access verification | Determine what data is accessible through exploited vulnerabilities | Manual testing | Data exposure evidence (redacted) |125126**Phase 4: Post-Exploitation (if in scope)**127128| Activity | Technique | Tools | Output |129|----------|-----------|-------|--------|130| Lateral movement | Pivot from compromised system to adjacent systems | SSH, RDP, cloud API calls | Lateral movement map |131| Persistence assessment | Identify mechanisms an attacker could use for persistence | Manual analysis | Persistence risk assessment |132| Data exfiltration simulation | Demonstrate ability to extract sensitive data (simulated) | Manual testing | Exfiltration path documentation |133| Detection assessment | Evaluate whether testing activities triggered security alerts | Coordination with SOC/SIEM team | Detection gap analysis |134135**Phase 5: Cleanup and Verification**136137- [ ] Remove all tester-created accounts and test data138- [ ] Delete all uploaded files, shells, or payloads139- [ ] Restore any modified configurations to original state140- [ ] Verify no persistent access mechanisms remain141- [ ] Confirm all testing artifacts are removed from target systems142- [ ] Document any changes that could not be reversed143144### Step 5: Define Reporting Format145146Establish the structure and standards for the final penetration test report.147148**Finding severity classification:**149150| Severity | CVSS Range | Description | Remediation SLA |151|----------|-----------|-------------|-----------------|152| **Critical** | 9.0 - 10.0 | Immediate risk of data breach, full system compromise, or RCE with no authentication | 7 days |153| **High** | 7.0 - 8.9 | Significant data exposure, authentication bypass, privilege escalation | 30 days |154| **Medium** | 4.0 - 6.9 | Limited data exposure, requires specific conditions to exploit | 90 days |155| **Low** | 0.1 - 3.9 | Minor information disclosure, defense-in-depth improvements | 180 days |156| **Informational** | 0.0 | Best practice recommendations, no direct security impact | Backlog |157158**Individual finding template:**159160```161### [SEVERITY] Finding Title162163**ID:** PT-YYYY-NNN164**CVSS Score:** X.X (Vector string)165**Affected Asset:** [URL, IP, component]166**Category:** [OWASP Top 10 category or CWE]167168**Description:**169[Clear explanation of the vulnerability and why it matters]170171**Steps to Reproduce:**1721. [Step-by-step reproduction instructions]1732. [Include specific requests, parameters, payloads]1743. [Include screenshots or request/response pairs]175176**Impact:**177[What an attacker could achieve by exploiting this vulnerability]178179**Recommendation:**180[Specific, actionable remediation guidance with code examples where applicable]181182**References:**183- [CWE link]184- [OWASP reference]185- [Vendor advisory if applicable]186```187188### Step 6: Remediation Tracking189190Establish a process for tracking remediation of identified findings.191192**Remediation tracker:**193194| Finding ID | Severity | Title | Owner | Remediation SLA | Status | Retest Date | Retest Result |195|-----------|----------|-------|-------|-----------------|--------|-------------|---------------|196| PT-2026-001 | Critical | SQL Injection in search API | Backend Team | 7 days | Remediated | *date* | Pass |197| PT-2026-002 | High | Broken access control on admin endpoints | API Team | 30 days | In Progress | *date* | Pending |198| PT-2026-003 | Medium | Missing rate limiting on authentication | Platform Team | 90 days | Not Started | *date* | Pending |199200**Remediation workflow:**2012021. **Finding delivered** — Tester shares finding with development/security team2032. **Triage and assign** — Team confirms finding, assigns owner, sets target date2043. **Remediate** — Owner implements fix following the provided recommendation2054. **Verify fix** — Owner validates fix in staging with the reproduction steps2065. **Request retest** — Owner requests tester to verify remediation2076. **Retest** — Tester confirms vulnerability is resolved and no regressions introduced2087. **Close** — Finding marked as remediated with retest evidence209210## Output Format211212Present the test plan as a structured document:213214```215## Penetration Test Plan216217### Engagement Overview218- Target: [application, system, or network]219- Type: [black-box / grey-box / white-box]220- Methodology: [OWASP / PTES / NIST]221- Testing window: [dates and hours]222- Environment: [production / staging / dedicated test]223224### Scope225- In-scope and out-of-scope tables226227### Rules of Engagement228- Authorized actions, prohibited actions, emergency contacts229230### Testing Phases231- Phase breakdown with activities, tools, and expected outputs232233### Reporting Standards234- Severity classification, finding template, deliverable timeline235236### Remediation Process237- SLA definitions, tracking process, retest procedures238239### Authorization240- Sign-off from system owner and legal241```242243## Quality Checklist244245- [ ] Scope explicitly lists both in-scope and out-of-scope targets with no ambiguity246- [ ] Rules of engagement include emergency stop procedures and contact information247- [ ] Methodology is appropriate for the target type (web, mobile, network, cloud)248- [ ] Testing phases are sequenced logically with clear entry and exit criteria249- [ ] Severity classification uses an industry-standard scoring system (CVSS)250- [ ] Reporting format includes reproduction steps sufficient for developers to verify and fix251- [ ] Remediation SLAs are realistic and aligned with organizational capacity252- [ ] Legal authorization and cloud provider notifications are completed before testing begins253- [ ] Data handling and destruction requirements are clearly defined254- [ ] Cleanup procedures ensure no tester artifacts remain on target systems255256## Edge Cases257258- For production testing: require explicit written authorization; test during low-traffic windows; have rollback plans; coordinate with on-call teams for immediate incident response if needed259- For API-only targets: supplement automated scanning with thorough manual testing of business logic, authorization, and rate limiting which scanners frequently miss260- For cloud infrastructure tests: verify cloud provider penetration testing policies (AWS, GCP, Azure each have specific requirements); include IAM and resource policy review261- For microservices architectures: test inter-service authentication and authorization, not just the external API gateway; verify service mesh security configurations262- For CI/CD pipeline testing: include supply chain attack scenarios (dependency confusion, pipeline poisoning); test secret management and build artifact integrity263- For retests after remediation: verify the specific fix does not introduce regressions; test bypass variations of the original vulnerability; confirm fix is deployed to all affected environments
Run npx skillmds@latest add ashutoshsrivastava17/pen-test-plan in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Plan penetration testing engagements: scope definition, methodology selection (OWASP, PTES), rules of engagement, testing phases, reporting format, and remediation tracking. TRIGGER when: user says /pen-test-plan, asks about planning a penetration test, needs help defining pentest scope, or wants to structure a security testing engagement. It is listed under Security on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
ashutoshsrivastava17 (@ashutoshsrivastava17) published this skill. Their other Agent Skills are listed on their SkillMD profile.