The report is what the client reads; the bundle is what they can audit. One ZIP holds the reports, the vault, the findings table, the state, the audit trail and the checksums that prove the bytes did not change.
One archive, everything in it
pentest_export_bundle requires an accepted Rules of Engagement and assembles the whole project into a single deterministic ZIP: narrative reports, evidence vault files, the findings table in CSV and JSON, engagement state, audit trail, tool runs, a process record, and a SARIF log. It then adds manifest.json, README.txt and sha256sums.txt so a recipient can verify what they received without trusting the narrative.
Three parameters only: formats (any of md, html, json, pdf, slides, docx), lang (en or ru) and a free-text note written into the README. With no formats, the engine exports md, html, json, pdf and docx. For the vault alone, pentest_evidence_package builds a smaller ZIP with manifest.json, README.txt, sha256sums.txt and the evidence under files/; the bundle is the full-project variant, not a replacement. The build measured on 28 November 2026 ships 51 agent tools, a 47-entry Kali catalogue and 39 OSINT connectors — the sources a bundle's tool inventory and findings come from.
Caps are enforced rather than warned about: 64 MiB per entry, 4000 entries, up to 1000 evidence records, and a SARIF log capped at 1000 results. Zero-byte entries are skipped, unreadable vault files are skipped and reported back in skipped, and duplicate names are suffixed (-2) instead of overwriting. A slides outline and a Markdown report both end in .md, which is why a bundled slides file is renamed .slides.md.
The archive layout
This is the real listing of the published sample bundle: 26 entries, 789,981 bytes uncompressed, 498,173 bytes zipped.
| Path | Files | Contents |
|---|---|---|
manifest.json | 1 | Generator, schema 1.0.0, engagement identity, counts, per-file SHA-256 |
README.txt | 1 | Bundle key, verification instruction, redaction and retention note, your note |
sha256sums.txt | 1 | Checksums for the 21 bundled content files |
reports/ | 5 | .md, .html, .pdf, .docx, .json |
evidence/<kind>/ | 10 | 9 tool-output captures, 1 web-assessment JSON |
findings/ | 2 | findings.csv, findings.json (3 findings) |
state/ | 3 | engagement.json, tool-runs.json, commands.txt |
process/ | 1 | engagement-process.md — internal working record |
The sample set was produced by v1.3.0: it carries findings/findings.sarif (three results, three CWE rules) and the recorded audit trail; state/report-model.json is written only when an export supplies the model, which the default engine path does not. Evidence is grouped by kind — tool-output/, json/, http/, screenshot/ — and each file is named <evidenceId>-<slug>.<ext>, so a register row can be matched to a file by id alone. findings.csv carries one row per finding with severity, CVSS, vector, CWE, OWASP, WSTG, asset, phase, status, the exploited flag, evidence refs, remediation and impact — the same columns a GRC import expects.
Manifest, README and sums
manifest.json is the machine-readable index: schemaVersion, generator, generatedAt, the engagement block (id, name, client, status, mode, completedAt), a counts block (files, reports, evidence, findings, toolRuns), bytes, and a files array with name, kind, bytes and sha256 per entry. The sample reports files: 21, reports: 5, evidence: 10, findings: 3, toolRuns: 9.
README.txt is the human key: engagement id, client, generation time, a one-line description of each directory, the verification command, the redaction caveat and your note. sha256sums.txt holds one line per content file — the lowercase hash, two spaces, then the path relative to the archive root. The sample has 21 lines. It deliberately does not list the three metadata files, because they are the wrapper around the checksummed set; manifest.json carries the same hashes for programmatic comparison.
Determinism, and what it actually promises
The archive is deterministic for the same engagement state and the same report files. The generation time is taken from the engagement — completedAt, then startedAt — not from the wall clock, every ZIP entry carries the fixed DOS timestamp 1980-01-01, and the entry order is built from the input order rather than directory enumeration. Re-exporting a completed engagement therefore reproduces the same archive bytes and the same SHA-256.
The qualifier matters. If a report is regenerated between exports, its bytes change and so does the bundle. If the engagement is still active, the reports are freshly generated and the archive will differ. Determinism is a property of an unchanged project, not a promise that every export is identical.
Destination and audit
The ZIP is written to $DSH_HOME/redteam/bundles/<session>/bundle-<session>-<timestamp>.zip, mode 0600, through a temporary file and a rename, so a crashed write never leaves a half archive at the final name. The path, size, entry count and SHA-256 are stored on the session and shown in the panel; an audit record bundle_exported captures the same summary.
Nothing is uploaded. The bundle exists only on the machine that generated it until you move it, which makes the transport your responsibility — and the retention policy yours too.
Verifying a bundle you received
Verification has three levels, and all three are quick.
# 1. the archive itself, against the hash the sender quoted
sha256sum rt-20261127-f11c.zip
# 2. every content file, from inside the extracted directory
unzip -q rt-20261127-f11c.zip -d bundle
cd bundle && sha256sum -c sha256sums.txt
# 3. the manifest's own per-file hashes
jq -r '.files[] | "\(.sha256) \(.name)"' \
manifest.json | sha256sum -c -
The sample passes all of it: the ZIP hashes to 95ed65e5…78aeb206, and sha256sum -c returns OK for all 23 listed files. A mismatch means the bytes changed after export — a truncated download, an edited report, or a rebuilt archive — and the answer is to obtain a fresh copy, not to regenerate the checksum.
What the bundle does not contain
It does not contain OSINT or API keys, credentials, cookie jars or the DSH credential store. It does not contain tool binaries, the Kali image, wordlists or the browser's raw profile — only artefacts that were captured as evidence. It does not contain other sessions, DSH logs, model prompts or the plugin's configuration. And it does not contain approval decisions as a machine-readable file: approvals appear in process/engagement-process.md and in the state document, not as a separate register.
state/engagement.json and state/commands.txt hold real targets, real command lines, phase notes and the audit tail. That is what makes the bundle auditable — and what makes it confidential. Share it with the engagement owner, not with a distribution list.
Hand-off checklist and retention
Before the archive leaves your machine: confirm the engagement is completed and the report files in the ZIP are the final set; read README.txt with your note in place; open findings.csv and confirm the rows match the report; check that no evidence file is missing (the tool returns skipped for anything it could not read); and record the archive SHA-256 in the delivery message. On the receiving side, run the three checks above and archive the checksum next to the ZIP.
Retention belongs in the engagement contract: keep the bundle for the agreed period, store it encrypted, and delete it — along with the vault — when the period ends. A bundle is a snapshot of client data, not a backup of your workbench.
Deep reference: documentation, tool reference, wiki, sample artefacts, resources.
What good looks like
- A completed engagement, a final report set and one bundle whose manifest counts match the files on disk.
- The archive SHA-256 quoted in the delivery message and re-checked by the recipient with
sha256sum -c. - No credentials, keys or unrelated sessions in the archive; the state document treated as confidential.
- A retention date agreed before hand-over, not after.