Catalogue / pentest-engagement-planning
pentest-engagement-planning
Older skill: source not recordedSignedPlans and coordinates an authorized penetration-testing engagement: scoping and written authorization, environment preparation, provider notification, tester and methodology selection, monitoring that distinguishes tests from real attacks, remediation tracking, cleanup, and retest scheduling. Use wh…--- name: pentest-engagement-planning description: >- Plans and coordinates an authorized penetration-testing engagement: scoping and written authorization, environment preparation, provider notification, tester and methodology selection, monitoring that distinguishes tests from real attacks, remediation tracking, cleanup, and retest scheduling. Use when the user asks to "plan a penetration test", "define pentest scope", "prepare for a security assessment", "build a pentest checklist", or "get ready for remediation after a pentest". Not for executing attacks, exploits, or social engineering itself, and never for testing systems without the owner's written permission. ---
Plan a Pentest Engagement End to End
A checklist-driven method covering the five phases of a penetration-testing engagement — scope, preparation, expertise, monitoring, remediation — so the test is authorized, observable, recoverable, and its findings actually get fixed.
Every phase involves actions that touch systems outside your control: scans, packet captures, account creation, service restarts, artifact removal. Each needs the owner's written authorization and an explicit go-ahead in the conversation, with the exact targets, window, rate limits, and methods spelled out. Anything beyond the agreed scope needs fresh authorization.
Phase 1 — Scope definition
Objectives first. Establish why the test exists (find vulnerabilities, satisfy compliance, reassure customers), what success looks like, and what will happen to the findings. If a pentest is not actually the right tool, say so before anything is scheduled.
Pick the test type:
| Type | Purpose | Surface | |---|---|---| | External | assess the outside attack surface | public-facing systems | | Internal | assess insider/lateral risk | internal network | | Web application | find app-layer flaws | named applications | | Social engineering | test the human layer | staff, processes — only if expressly authorized | | Red team | full adversary simulation | the whole organization |
Enumerate likely threats: where damage would hurt most, how sensitive the exposed data is, which legacy systems hide old bugs, and which assets are critical enough to prioritize.
Fix the boundaries in writing:
- In-scope: exact IPs, domains, applications
- Out-of-scope: third-party systems, production data, anything shared with vendors
- Allowed techniques and rate limits, test window, emergency contact, halt triggers, and the change-approval procedure for scope changes
Never include production denial-of-service testing. An example scope block:
Target: customers-portal.example.com (staging) Type: gray-box web application test Duration: 5 business days Excluded: DoS testing, production database access Access: one standard user account
Budget: price scales with asset value, system complexity, testing depth, and the provider's reputation — and bargain testing usually buys shallow results. Decide one-time versus ongoing testing on criticality, not on the cheapest quote.
Phase 2 — Environment preparation
| Environment option | Trade-off | |---|---| | Production | realistic, but carries real risk | | Staging | safer, but may have drifted from production | | Isolated clone | closest to ideal; expensive to build |
- Freeze deployments for the window and record current versions; patch only for security emergencies, and tell the testers — every mid-test change breaks reproducibility.
- Verify backups with an actual restoration test, keep backup access outside tester privileges, and document recovery procedures.
- Create least-privilege test accounts; share the inventory of known existing findings so paid time is not spent rediscovering them.
- Review compliance obligations (GDPR, PCI-DSS, HIPAA) and sensitive-data handling with the responsible specialists.
- Check the hosting provider's testing policy and file whatever approval it requires — AWS, Azure and GCP each have their own process; never assume they are the same or that none is needed.
- Run preliminary automated scans and fix the obvious issues first, so the engagement focuses on what scanners cannot find. Typical pre-scan discovery (with the target's approval):
nmap -sV --script vuln TARGET # service and known-vulnerability check nikto -h http://TARGET # web server issue scan
Review what these scripts actually do and their impact before anyone executes them.
Phase 3 — Expertise and methodology
Choosing testers: weigh recommendations and references, years of relevant network/web/mobile experience, recognized credentials (OSCP, GPEN, CEH, CREST), sample report quality, methodology, and availability. Price alone signals nothing about quality.
Methodology and access level:
| Access | Knowledge given | Simulates | |---|---|---| | Black box | nothing | outside attacker | | Gray box | partial access | insider with limited reach | | White box | full access | informed audit |
Anchor the work to a published standard (PTES, OWASP, NIST) and agree the manual-versus-automated balance and the update/escalation cadence.
Report contract: executive summary for management; technical findings with reproducible evidence; risk ratings on CVSS or an agreed custom scale; remediation guidance; retest instructions. Ask for machine-readable output (CSV/XML) so findings flow into a tracker.
Phase 4 — Monitoring without false alarms
Baseline normal behavior first — authentication patterns, application error rates, network connections, file access, configuration changes — and confirm centralized collection, retention, access controls, IDS/IPS, SIEM alerting, WAF, and endpoint coverage actually work. Brief the operations team on the schedule so approved activity correlates with test timestamps while genuine attacks still get a response.
tail -f /var/log/auth.log # authentication events tail -f /var/log/apache2/access.log # web traffic tcpdump -i eth0 -w capture.pcap # packet capture
- Packet capture may record personal or confidential data: fix the interface, capture filters, duration, storage location, access list, and deletion schedule before starting.
- Read-only tailing of the real auth/web logs is usually fine; restarting logging services (rsyslog, auditd) is a configuration change that needs its own approval.
- Halt testing when agreed operational limits are crossed — error-rate spikes are the signal.
Phase 5 — Remediation and closure
- Assign each finding an owner, deadline, and mitigation, with engineering time reserved by risk ranking.
- Retest disputed findings under controlled conditions before accepting the dispute.
- After approved work ends: remove only the identified test artifacts, revoke test accounts and credentials, restore the approved configuration, and audit the cleanup. Deleting vaguely described files or unrelated changes is never part of cleanup.
- Schedule the next assessment — annually, quarterly, or triggered by major changes — based on release frequency, regulation, risk tolerance, and how severe past findings were. Findings age as systems change; there is no universal interval.
Pre-test gate: scope documented · written authorization held · environment prepared · provider approval filed · operations briefed · monitoring on · backups verified.
Post-test gate: report reviewed · findings prioritized · owners and deadlines assigned · fixes implemented · retest done and results recorded · cleanup audited · next test scheduled.
Troubleshooting
| Problem | Response | |---|---| | Scope creep mid-test | stop, document, require change approval before continuing | | Testing disturbs production | move to off-hours windows or staging | | Findings disputed | produce the evidence and retest under observation | | Remediation stalls | force ranking, owners, and deadlines | | Budget overrun | fixed scope, fixed-price contract |
Constraints to state honestly
Production testing always carries residual risk; budget and time caps limit coverage; tester skill varies widely; and every finding has a shelf life. Report the limits of coverage alongside the results — the engagement example above (staging gray-box portal test, synthetic accounts, production data excluded, monitored, retested) is only as valuable as its closure record.
Never
- Touch, scan, or attack any system without written authorization from its owner, current in this conversation, covering exactly the target and technique.
- Perform denial-of-service testing against production, or exceed agreed rate limits, windows, or techniques.
- Disable security controls, logging, or monitoring to make testing easier; report blockers instead.
- Expand scope, create accounts, capture traffic, restart services, or delete artifacts without a fresh explicit approval.
- Leave test accounts, backdoors, or test data behind after closure.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 9.0 kB | 1652fbfee4d5 |
| examples.json | 2.3 kB | f7ccb52283b4 |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 1.0.1 Current | Not recorded | 6 Oct 2026 | |
| 1.0.0 | Not recorded | 3 Oct 2026 |
Locking a skill to one version needs Pro.