/penetration-tester:recording-pentest-engagementfrom penetration-tester
Packages pentest engagement artifacts into a timestamped archive with SHA-256 manifest and optional GPG signing. Verifies integrity and blocks packaging on mismatches.
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.
A penetration test produces a lot of artifacts: scan outputs in multiple formats, screenshots showing the state of vulnerable pages, raw tool logs (nmap, Burp, custom scripts), the ROE and any amendments, exec-summary docs, and the findings themselves. Six months after the engagement closes, a question arises — sometimes benign ("can you remind me what we found?"), sometimes adversarial ("the customer claims we accessed an out-of-scope system; show us the logs"). The answer needs to be: "yes, here's the archive, and here's cryptographic proof it hasn't been touched since the engagement closed."
This skill hashes supported, non-excluded regular files and optionally
packages the engagement directory with a SHA-256 manifest. An existing
manifest is a verification baseline: mismatches preserve its bytes and
block signing and packaging. Choose a distinct --manifest path to
create a deliberate new snapshot; retain the original for investigation.
Freeze evidence writers during hashing and packaging: this is not an
atomic filesystem snapshot. Review excluded files and symlink findings
separately; the tarball may contain entries the manifest does not cover.
The skill also surfaces inconsistencies that would weaken the chain-of-custody claim: out-of-tree paths referenced in findings (meaning the finding refers to a file not actually in the archive), files in the directory not listed in the manifest, manifest entries whose hashes don't match. These are HIGH findings — they mean the archive is incomplete or has been modified after the fact, neither of which is acceptable for evidence purposes.
| Finding | Severity | Threshold | Affected control |
|---|---|---|---|
| File in tree not in manifest | HIGH | Found during walk; manifest entry missing | (evidence integrity) |
| Manifest entry hash mismatch | CRITICAL | Computed SHA-256 differs from manifest | (evidence integrity) |
| Manifest entry without file | HIGH | Manifest lists a path that doesn't exist | (evidence integrity) |
| Findings reference out-of-tree path | MEDIUM | A finding's evidence field points to a file not in the archive | (evidence completeness) |
| Symlink in tree | MEDIUM | Symlinks break archive portability and integrity | (evidence integrity) |
| Empty file in tree | INFO | 0-byte file; possibly an export error | (operational) |
| Archive package complete | INFO | All checks pass | (positive confirmation) |
| Manifest signed | INFO | GPG signature present and valid form | (positive confirmation) |
engagements/acme-2026-q2/
├── roe.yaml
├── roe.amendments/
│ └── amendment-001-20260615.yaml
├── scope/
│ ├── allowed-ips.txt
│ └── normalized-targets.json
├── findings/
│ ├── cluster1-tls-2026-06-05.json
│ ├── cluster1-headers-2026-06-05.json
│ ├── cluster3-secrets-2026-06-07.json
│ └── ...
├── evidence/
│ ├── screenshots/
│ ├── tool-logs/
│ └── raw-scan-output/
├── reports/
│ ├── vulnerability-report.md
│ ├── owasp-mapping.json
│ └── executive-summary.md
└── manifest.sha256 # produced by this skill
python3 ./scripts/record_engagement.py engagements/acme-2026-q2/
The skill walks the directory recursively, builds a SHA-256 manifest, and produces a chain-of-custody report.
Options:
Usage: record_engagement.py PATH [OPTIONS]
Options:
--output FILE Findings output
--format FMT json | jsonl | markdown (default: markdown)
--min-severity SEV default info
--manifest FILE Manifest output path (default: PATH/manifest.sha256)
--tar FILE Also create a .tar.gz archive at this path
--sign Sign the manifest with GPG (uses default identity)
--signer KEY GPG key ID to sign with
--exclude GLOB Skip files matching glob (repeatable)
The skill emits a SHA-256 manifest in standard sha256sum format
(one line per file: hash + two-space + path). The manifest is
verifiable independent of the skill:
(cd engagements/acme-2026-q2 && sha256sum -c manifest.sha256)
Run the command from the engagement directory because paths are relative to that directory. A successful check verifies the listed files only; it does not prove completeness, collection time, authorship or custody.
python3 ./scripts/record_engagement.py engagements/acme-2026-q2/ --sign
The skill shells out to gpg --detach-sign against the manifest,
producing manifest.sha256.asc. Later verification:
gpg --verify manifest.sha256.asc manifest.sha256
sha256sum -c manifest.sha256
Both checks together: the manifest's contents match the archive, AND the manifest itself is signed by an identifiable party.
python3 ./scripts/record_engagement.py engagements/acme-2026-q2/ \
--tar engagements/archives/acme-2026-q2.tar.gz
The tarball contains the engagement directory + manifest + signature. Hand the tarball to legal / archive / customer.
python3 ./scripts/record_engagement.py engagements/acme-2026-q2/ \
--sign \
--tar engagements/archives/acme-2026-q2.tar.gz \
--output engagements/acme-2026-q2/chain-of-custody.md
DATE=$(date +%Y%m%d)
python3 ./scripts/record_engagement.py engagements/acme-2026-q2/ \
--manifest engagements/acme-2026-q2/manifest-$DATE.sha256 \
--output engagements/acme-2026-q2/snapshot-$DATE.md
Daily snapshots build a time-series of the engagement's state which can be useful in incident-investigation contexts.
# Customer claims the archive is incomplete; verify before disputing
python3 ./scripts/record_engagement.py engagements/acme-2026-q2/ --min-severity high
A zero exit status means no unfiltered HIGH/CRITICAL findings.
--min-severity controls display only. Missing, malformed or unreadable
existing manifests fail closed; symlink and other MEDIUM findings still
need operator review. No cryptographic verification is performed by this
command. Use the independent manifest/signature checks before handoff.
JSON / JSONL / Markdown per lib/report.py. Exit codes: 0 clean,
1 high/critical, 2 error.
Each shared Finding includes skill_id, title, severity, target,
detail, remediation, fingerprint and optional evidence. Existing
manifests are not rewritten on a successful verification either. Report,
manifest, signature and archive destinations must be distinct; archives
must be outside the engagement tree. Existing signatures are preserved
when --sign is requested again; verify them separately or use a new
snapshot path. A requested output must not replace collected evidence.
--sign requested → emits HIGH
finding, manifest written unsigned, exits 1.--tar requested → manifest still
written; archive creation failure surfaces as HIGH finding.references/THEORY.md — Chain of custody as a legal concept,
evidence-integrity standards (NIST SP 800-86), SHA-256 vs
SHA-3 vs SHA-512 tradeoffs, GPG detached-signature semantics,
archive format choices (tar vs zip vs WORM), retention horizons
per jurisdictionreferences/PLAYBOOK.md — Engagement directory templates per
engagement type, daily-snapshot cron pattern, customer-handoff
protocol, dispute-resolution playbook (when the customer
challenges the archive), long-term storage and access-control
patternsWhat SKILL.md sets; muted values are Claude Code's defaults
26 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".
/auditing-npm-dependenciesAudit a Node.js project's installed npm dependency tree for known
CVEs by wrapping the npm audit JSON output and emitting findings in
the canonical penetration-tester schema. Detects direct AND transitive
vulnerabilities, normalizes npm's severity scale (info/low/moderate/
high/critical) to the shared Severity enum, and parses both v1 and
v2 audit output formats so the skill works against npm 6 and npm
7+ lockfiles.
Use when: pre-merge gate on a Node project, post-incident sweep
after a transitive package compromise (e.g. event-stream, ua-parser,
node-ipc, color.js), SOC2 vendor-management evidence collection,
or auditing an inherited or acquired Node codebase.
Threshold: any HIGH or CRITICAL CVE in the resolved dependency
tree. MODERATE / LOW reported informationally.
Trigger with: "audit npm deps", "npm vulnerability scan", "check
node packages for CVEs", "npm audit".
/auditing-python-dependenciesAudit a Python project's installed dependencies for known CVEs by
wrapping pip-audit (PyPA's official vulnerability auditor) and
emitting findings in the canonical penetration-tester schema.
Detects vulnerable direct AND transitive packages, normalizes
pip-audit's severity output via OSV severity bands, falls back to
pip list --outdated when pip-audit isn't installed, and supports
requirements.txt, pyproject.toml (PEP 621), Pipfile.lock, and
poetry.lock as input sources.
Use when: pre-merge gate on a Python project, post-incident sweep
after a PyPI compromise (e.g. ctx, request-toolbelt typosquats,
ultralytics 8.3.42 compromise), SOC2 evidence collection, or
inheriting an unfamiliar Python codebase.
Threshold: any HIGH or CRITICAL CVE in the resolved dependency
tree. MODERATE / LOW reported informationally.
Trigger with: "audit python deps", "pip vulnerability scan",
"check pypi packages for CVEs", "pip-audit run".
/checking-http-security-headersAudit a target's HTTP security headers — CSP, HSTS, X-Frame-Options,
X-Content-Type-Options, Referrer-Policy, Permissions-Policy, and the
Cross-Origin trio (COOP, COEP, CORP).
Use when: SOC2 / PCI auditor flagged "missing security headers" or a
Mozilla Observatory grade is below B, OR you need HSTS preload
eligibility for chrome://net-internals.
Threshold: any missing required header on production HTML response,
HSTS max-age below 31536000s (preload requirement), CSP with
'unsafe-inline' or 'unsafe-eval', X-Frame-Options absent AND CSP
frame-ancestors absent (clickjacking), Cache-Control allowing public
cache on authenticated endpoint.
Trigger with: "audit security headers", "check csp", "hsts check",
"header posture".
/checking-license-complianceAudit a project's dependency licenses against an explicit policy
(allow-list / deny-list / review-required) and flag incompatibilities
before they ship to production. Reads SPDX license identifiers from
npm package manifests, Python METADATA / PKG-INFO files, and
pyproject.toml; classifies each license by family (permissive,
weak-copyleft, strong-copyleft, proprietary, unknown); detects
copyleft contamination and SPDX-incompatible license combinations.
Use when: pre-release legal review, M&A code-audit due diligence,
preparing an OSS attribution NOTICE file, or switching a project's
own license.
Threshold: any GPL-family license in a project declaring MIT or
Apache-2.0; any UNKNOWN-license package; any metadata-vs-source
license mismatch.
Trigger with: "check licenses", "license compliance audit",
"SPDX scan", "GPL contamination check".
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin penetration-testerOther plugins' skills for the same job