vulkro-sf org session
Checks the live org's active sessions for ones that stay valid too long or are too old.
vulkro-sf org session --target-org <alias>
vulkro-sf org session -o <alias> --format json
| Finding | Severity | Meaning |
|---|---|---|
SF-SESSION-LIVE-001 | High | An admin (Modify All Data) has a session valid for more than one day. |
SF-SESSION-LIVE-002 | Medium | Any user has a session valid for more than one day. |
SF-SESSION-LIVE-003 | Low | An active session was created more than 30 days ago. |
A long-lived session lets a stolen session ID keep working after a password change. It reads session details only: no session tokens are read and no session is ended.
See also: org login-history, org mfa.
Command reference
Generated from vulkro-sf org session --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.
Live AuthSession audit: long-lived and stale sessions (SF-SESSION-LIVE-001 / -002 / -003).
vulkro-sf org session [OPTIONS] --target-org <TARGET_ORG>
Options
| Flag | Description |
|---|---|
-t, --target-org <TARGET_ORG> | Target org alias or username, as known to sf org login |
-f, --format <FORMAT> | Output format: table or json. Default: table. |
-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') |
Full vulkro-sf org session --help
Live AuthSession audit: long-lived and stale sessions (SF-SESSION-LIVE-001 / -002 / -003).
Pulls AuthSession rows whose `NumSecondsValid` exceeds one day OR whose `CreatedDate` is more than 30 days behind now, plus the set of UserIds that hold Modify All Data (so the audit can split the long-lived band into High-severity admin sessions and Medium-severity non-admin sessions without re-querying).
Rules: SF-SESSION-LIVE-001 High org-authsession-long-lived-admin Admin user with NumSecondsValid > 86400 (one day). Stable, multi-day admin sessions are the canonical takeover persistence vector. SF-SESSION-LIVE-002 Medium org-authsession-long-lived-any-user Any user with NumSecondsValid > 86400. Widens the account-takeover window for a stolen session id. SF-SESSION-LIVE-003 Low org-authsession-stale-active Active session whose CreatedDate is more than 30 days behind now. Stale workstation sessions never trigger a forced re-auth. SF-SESSION-IP-001 Medium org-session-ip-ranges-login-only Privileged profiles have login IP ranges, but 'Enforce login IP ranges on every request' or 'Lock sessions to the IP address' is off, so the ranges are checked at login only. SF-SESSION-HA-001 Medium org-export-app-no-high-assurance Data Loader / Workbench / Salesforce CLI connected app with no High Assurance session level policy.
The session-plane reads (SecuritySettings, privileged profiles, ConnectedApplication) are best-effort: one that fails is listed as not checked and the AuthSession rules still run.
Exit codes: 0 = no findings; 1 = findings reported; 2 = error.
Usage: vulkro-sf org session [OPTIONS] --target-org <TARGET_ORG>
Options:
-t, --target-org <TARGET_ORG>
Target org alias or username, as known to `sf org login`
-f, --format <FORMAT>
Output format: table or json
[default: table]
-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')