Skip to main content

vulkro-sf org audit-trail

Checks the live org's Setup Audit Trail for privilege escalation and Setup changes made out of hours.

vulkro-sf org audit-trail --target-org <alias>
vulkro-sf org audit-trail -o <alias> --check-apt-playbooks --format json
FindingSeverityMeaning
SF-AUDIT-TRAIL-001HighA permission was escalated in the last 30 days.
SF-AUDIT-TRAIL-002MediumA Setup change was made out of hours.

It reads the latest 1000 audit rows, so in a busy org older changes fall outside the window.

Flags​

FlagMeaning
--target-org, -o <alias>Org alias or username from sf org login. Required.
--format <fmt>Output format. Default table.
--check-apt-playbooksAlso match the audit trail and session timeline against the bundled attack playbooks (APT-CRED-EXFIL-001, APT-DATA-EXFIL-002, APT-PRIV-ESC-003, APT-LATERAL-MOVE-004, APT-PERSISTENCE-005). Same as VULKRO_SF_APT_PLAYBOOKS=1.

A playbook match is a lead to investigate, not proof of a compromise.

See also: org login-history, org forensic-snapshot.

Command reference​

Generated from vulkro-sf org audit-trail --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.

SetupAuditTrail privilege escalation tracking (SF-AUDIT-TRAIL-001/-002).

vulkro-sf org audit-trail [OPTIONS] --target-org <TARGET_ORG>

Options​

FlagDescription
-t, --target-org <TARGET_ORG>
-f, --format <FORMAT>[default: table]. Default: table.
--check-apt-playbooksCross-reference the SetupAuditTrail plus AuthSession timeline against the bundled APT TTP playbooks (Tier 6 subsystem 4). Equivalent to setting VULKRO_SF_APT_PLAYBOOKS=1
-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 audit-trail --help
SetupAuditTrail privilege escalation tracking (SF-AUDIT-TRAIL-001/-002).

Optional Tier 6 subsystem 4 add-on: pass `--check-apt-playbooks` (or set `VULKRO_SF_APT_PLAYBOOKS=1`) to also walk the SetupAuditTrail plus AuthSession timeline against the bundled APT TTP playbooks (APT-CRED-EXFIL-001 / -DATA-EXFIL-002 / -PRIV-ESC-003 / -LATERAL-MOVE-004 / -PERSISTENCE-005). Findings append to the SF-AUDIT-TRAIL-001 / -002 output. The env var is honoured so non-interactive CI runs do not need to add the flag in every job spec.

The add-on also assesses the 2025-2026 playbooks (SF-APT-PLAYBOOK-001): indicators found are High; a playbook whose logs, licences or relied-on checks are not available in this command is an Info "not checked" note, never a clean result, and notes alone keep exit 0.

Exit codes: 0 = no findings; 1 = findings reported; 2 = error.

Usage: vulkro-sf org audit-trail [OPTIONS] --target-org <TARGET_ORG>

Options:
-t, --target-org <TARGET_ORG>


-f, --format <FORMAT>
[default: table]

--check-apt-playbooks
Cross-reference the SetupAuditTrail plus AuthSession timeline against the bundled APT TTP playbooks (Tier 6 subsystem 4). Equivalent to setting `VULKRO_SF_APT_PLAYBOOKS=1`

-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')