/penetration-tester:confirming-pentest-authorizationfrom penetration-tester
Checks a local Rules of Engagement (ROE) file for required metadata, time windows, signer allowlist, and target scope before a penetration test. Use when starting an engagement or reviewing scope changes.
Ships in penetration-tester. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Check a local Rules of Engagement (ROE) file before handing targets to a scanner. Validate required metadata types, offset-aware timestamps, the current window, an optional signer allowlist, and literal target inclusions and exclusions. A malformed input or blocking finding returns nonzero even when a display filter hides that finding.
This is a structural check, not signature verification, ownership proof or legal authorization. Retain separately confirmed approval and signature verification evidence with the ROE. Active scanners still need to enforce resolved targets and redirects; this checker performs no network requests.
| Finding | Severity | Threshold | Affected control |
|---|---|---|---|
| ROE file missing | CRITICAL | No attestation file at the expected path | (legal) |
| Required field missing | CRITICAL | authorizer, in_scope_targets, time_window, emergency_contact, or signature absent | (legal) |
| Signature missing | CRITICAL | No signature_block in ROE | (legal) |
| Signer not in allowlist | CRITICAL | signer email/key id not in .allowed-authorizers | (legal) |
| Time window expired | HIGH | current time outside time_window.start / time_window.end | (legal) |
| Time window not yet active | HIGH | current time before time_window.start | (legal) |
| In-scope target list empty | HIGH | in_scope_targets field present but empty | (legal) |
| Target excluded or outside declared scope | CRITICAL | an explicit exclusion intersects the requested target, or no inclusion contains it | (scope) |
| Stale ROE (>30 days from sign date) | MEDIUM | last_signed_at older than 30 days; suggests refresh | (operational) |
| Structural checks passed | INFO | No blocking metadata or literal-scope finding; authenticity remains unverified | (structural result) |
./roe.yaml (or pass --roe FILE)..allowed-authorizers file listing email addresses or
GPG key fingerprints permitted to sign ROEs.Required blocks must be mappings and target sections must be lists. Timestamps
need an explicit UTC offset; the start must precede the end. A wildcard such
as *.acme.example matches descendant labels, not notacme.example or the
apex acme.example. Add the apex explicitly if approved. Exclusions take
precedence. Use literal, non-credentialed URLs without queries, fragments,
encoded paths or dot segments; unsupported entries are rejected.
engagement_id: ACME-2026-Q2-PENTEST-001
authorizer:
name: Jane Doe
email: [email protected]
role: CISO
organization: ACME Corp
in_scope_targets:
- host: app.acme.example
notes: production web app, full-stack pentest authorized
- host: api.acme.example
- cidr: 10.50.0.0/16
notes: internal corporate range
out_of_scope_targets:
- host: payments.acme.example
reason: PCI scope, separate authz required
- cidr: 10.99.0.0/16
reason: production database tier, separate authz required
time_window:
start: 2026-06-01T00:00:00Z
end: 2026-06-30T23:59:59Z
emergency_contact:
name: SOC On-Call
phone: "+1-555-555-5555"
email: [email protected]
rules:
- No exploitation of confirmed findings without written prompt approval
- No password cracking against production accounts
- All testing pauses on declared business-hours blackouts
signature_block:
signer: [email protected]
signed_at: 2026-05-30T14:22:00Z
signature: |
-----BEGIN PGP SIGNATURE-----
...
-----END PGP SIGNATURE-----
The skill looks for ./roe.yaml by default. Override with
--roe FILE. The ROE file should live with the engagement
artifacts, NOT in the repo under test — typical layout is
engagements/<client>-<date>/roe.yaml.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/confirming-pentest-authorization/scripts/check_authorization.py" --roe engagements/acme-2026-q2/roe.yaml
Options:
Usage: check_authorization.py [OPTIONS]
Options:
--roe FILE Path to ROE attestation YAML (default: ./roe.yaml)
--allowed FILE Path to allowed-authorizers list (default: .allowed-authorizers)
--check-target HOST Verify HOST is in the in-scope list (repeatable)
--output FILE Write findings to FILE
--format FMT json | jsonl | markdown (default: markdown)
--min-severity SEV Default info
CRITICAL = engagement is NOT authorized. Halt all testing immediately. Resolve the missing requirement before any further skill runs.
HIGH = the engagement was authorized at some point but the current state is out-of-window. Either extend the time window with a new signature or wait.
MEDIUM = operational concerns that warrant attention but don't block testing. A stale ROE should be refreshed; a manual out-of-scope target request needs explicit additional authz.
INFO = positive confirmation that the engagement is authorized.
Save the structural report alongside the ROE and independently verified
approval/signature evidence. The report alone does not establish permission;
it becomes one part of the engagement evidence chain (see recording-pentest-engagement for the
storage pattern).
python3 "${CLAUDE_PLUGIN_ROOT}/skills/confirming-pentest-authorization/scripts/check_authorization.py" --roe engagements/acme-2026-q2/roe.yaml --format markdown
# If exit code != 0, halt testing.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/confirming-pentest-authorization/scripts/check_authorization.py" \
--roe engagements/acme-2026-q2/roe.yaml \
--check-target app.acme.example \
--check-target api.acme.example
The skill returns an explicit INFO Finding per target if all checks pass, and a HIGH/CRITICAL Finding per target if any are out-of-scope.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/confirming-pentest-authorization/scripts/check_authorization.py" --roe engagements/acme-2026-q2/roe.yaml \
--format json \
--output engagements/acme-2026-q2/evidence/authz-check-$(date +%Y%m%d).json
JSON / JSONL / Markdown per lib/report.py. Exit codes: 0 means no blocking
structural finding, 1 means a blocking finding, and 2 means an input/read error.
--min-severity changes display only; it cannot change a blocking exit code.
Each finding uses the shared schema: skill_id, title, severity,
target, detail, remediation, and optional evidence/enrichment fields.
references/THEORY.md — Why pentest authorization is a legal
primitive (CFAA, CMA, equivalent statutes), ROE structure
history (OSSTMM / PTES origins), signature options
(PGP / S/MIME / DocuSign), scope-creep failure modesreferences/PLAYBOOK.md — ROE templates per engagement type
(external pentest, internal pentest, red team, purple team),
authorization escalation flow, time-window extension procedures,
emergency-stop protocolWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin penetration-tester26 skills in this plugin
/analyzing-tls-configAnalyze a target's TLS configuration — negotiated protocol version, cipher
suite, certificate chain, expiry, and downgrade vectors.
Use when: SOC2 auditor flagged your endpoint for "weak TLS" but you don't
know which control failed (TSC CC6.7 transmission integrity vs CC6.6
encryption) or which cipher is the problem.
Threshold: any negotiated TLSv1.0 or TLSv1.1, OR a cipher with RC4 / 3DES /
null / EXPORT, OR a cert with under 30 days to expiry, OR a chain that fails
hostname verification.
Trigger with: "audit tls", "check ssl config", "weak tls", "analyze tls".
/auditing-cors-policyAudit a target's CORS posture — Access-Control-Allow-Origin handling,
reflected-origin bypass, credentials+wildcard mismatch, preflight
OPTIONS behavior, Vary header correctness.
Use when: a third-party integration is failing CORS preflight and
someone proposes "just set Allow-Origin to *" as the fix, OR your
bug-bounty inbox has a credential-reuse exploit chain.
Threshold: any reflection of arbitrary Origin into Allow-Origin,
Allow-Credentials:true with wildcard origin (browser-rejected combo
but server config wrong), missing Vary:Origin on per-origin responses,
preflight cached over 86400s, OR Allow-Origin trust of attacker-
controlled subdomain pattern.
Trigger with: "audit cors", "check cors policy", "cors bypass",
"preflight check".
Other plugins' skills for the same job