Skip to main content

vulkro-sf org forensic-snapshot

Saves the live org's identity and sharing state to one JSON file you can analyse offline during an incident.

vulkro-sf org forensic-snapshot --target-org <alias> --output snapshot.json --incident-ref INC-4821

What the file holds​

Users, permission sets and their assignments, organization-wide defaults, sharing rules and recent login history. Each file also records a schema_version, the capture time, the org alias, the tool version and the optional incident reference.

Flags​

FlagMeaning
--target-org, -o <alias>Org alias or username from sf org login. Required.
--output, -O <path>Where to write the JSON file. Required. Note the capital -O.
--incident-ref <ref>Ticket or incident ID stored in the file, for chain of custody.

This command collects data only: it reports no findings. The file contains user and login data and is neither encrypted nor signed, so store it like any other incident evidence.

Exit codes: 0 snapshot written, 2 error (the org could not be read or the file could not be written). It never exits 1.

See also: org audit-trail, logs.

Command reference​

Generated from vulkro-sf org forensic-snapshot --help (vulkro-sf 0.33.0). Run scripts/gen-docs.sh in the product repository to refresh it; do not edit this section by hand.

Capture a point-in-time, offline-analysable forensic snapshot of an org's identity and sharing posture and write it to a single JSON bundle. The bundle pulls the live state a responder needs at incident time (users, permission-set assignments, the permission sets themselves, organization-wide defaults, sharing rules, and recent LoginHistory) through the user's authenticated sf CLI, then writes one self-contained JSON file the responder can carry to an air-gapped analysis box. No findings are produced here: this is a data-collection handoff, not an audit. Run logs analyze or org-family audits against the captured data offline.

vulkro-sf org forensic-snapshot [OPTIONS] --target-org <TARGET_ORG> --output <OUTPUT>

Options​

FlagDescription
-t, --target-org <TARGET_ORG>Target org alias or username, as known to sf org login
-O, --output <OUTPUT>Path to write the JSON snapshot bundle to.
--incident-ref <INCIDENT_REF>Optional incident / ticket reference recorded in the bundle for chain of custody (e.g. INC-4821)
-v, --verbose...Bump stderr log verbosity. -v enables debug-level tracing for the vulkro + vulkro_sf targets; -vv enables trace. Honoured only when RUST_LOG is unset (an explicit RUST_LOG always wins)
-q, --quietPrint only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged.
--no-colorTurn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb.
-h, --helpPrint help (see a summary with '-h')
Full vulkro-sf org forensic-snapshot --help
Capture a point-in-time, offline-analysable forensic snapshot of an org's identity and sharing posture and write it to a single JSON bundle. The bundle pulls the live state a responder needs at incident time (users, permission-set assignments, the permission sets themselves, organization-wide defaults, sharing rules, and recent LoginHistory) through the user's authenticated `sf` CLI, then writes one self-contained JSON file the responder can carry to an air-gapped analysis box. No findings are produced here: this is a data-collection handoff, not an audit. Run `logs analyze` or `org`-family audits against the captured data offline.

The bundle is `schema_version`-stamped (so an offline reader detects a format mismatch) and carries the capture time, the org alias, the tool version, and an optional `--incident-ref` ticket id for chain of custody. Each section is a normalised row array, forward-compatible with new SObject columns.

Exit codes: 0 = snapshot written; 2 = error (the org could not be queried or the output file could not be written). This command never exits 1 because it reports no findings.

Usage: vulkro-sf org forensic-snapshot [OPTIONS] --target-org <TARGET_ORG> --output <OUTPUT>

Options:
-t, --target-org <TARGET_ORG>
Target org alias or username, as known to `sf org login`

-O, --output <OUTPUT>
Path to write the JSON snapshot bundle to

--incident-ref <INCIDENT_REF>
Optional incident / ticket reference recorded in the bundle for chain of custody (e.g. `INC-4821`)

-v, --verbose...
Bump stderr log verbosity. `-v` enables debug-level tracing for the `vulkro` + `vulkro_sf` targets; `-vv` enables trace. Honoured only when `RUST_LOG` is unset (an explicit `RUST_LOG` always wins)

-q, --quiet
Print only warnings and errors on stderr: no progress, tips or next-step hints. Results on stdout and exit codes are unchanged

--no-color
Turn off coloured output. Colour is also off when NO_COLOR is set to a non-empty value or TERM=dumb

-h, --help
Print help (see a summary with '-h')