Authorized Web Pentest
Use this only for defensive testing of applications the user owns or has written authorization to test.
Authorization Gate
Before active testing, ask the user to confirm:
Confirm: the target URL is
<target>, you own this application or have written authorization to test it, and active security testing is allowed during this session.
Do not send payloads or scans until the user confirms. Passive source review and reading public pages is fine.
Scope File
Create an engagement directory:
ENGAGEMENT="web-pentest-$(date +%Y%m%d-%H%M%S)"
mkdir -p "$ENGAGEMENT"/{evidence,findings,reports}
printf "%s\n" "<hostname>" > "$ENGAGEMENT/scope.txt"
Every active request must target a host in scope.txt. Stop on off-scope redirects.
Phases
- Setup:
- Record authorization, target, scope, and time window.
- Passive/source recon:
- Map routes, auth, sinks, trust boundaries, and deployment config from code.
- Read-only live recon:
- Headers, robots/sitemap, public links, login surface, XHR endpoints.
- Vulnerability analysis:
- Injection, XSS, auth/authz, SSRF, file handling, deserialization, CORS, security headers.
- Proof:
- Every finding needs a reproducible request/response or code path.
- No destructive payloads without explicit approval.
- Report:
- Findings, severity, impact, evidence, reproduction, minimal fix.
Rules
- No exploit, no report. Suspicions without proof are notes, not findings.
- Rate-limit active requests.
- Redact credentials and tokens in chat. Store full values only in local evidence files when needed.
- Cloud metadata hosts are off-limits unless explicitly authorized and owned.
- A clean run means "no exploitable issue found in this scope/time/method," not "secure."