#[non_exhaustive]pub enum VolatilityClass {
Residual = 0,
Persistent = 1,
ActivityDriven = 2,
RotatingBuffer = 3,
Volatile = 4,
}Expand description
Acquisition urgency for a forensic artifact under RFC 3227 Order of Volatility.
Values run from 0 (lowest urgency / most stable) to 4 (highest urgency / most
ephemeral). acquisition_order (umbrella crate) returns artifacts sorted 4→0
(most ephemeral first), matching live-response triage practice.
§Choosing the right class
| Class | Collect when | Rationale |
|---|---|---|
Volatile | Immediately — before reboot | Only in RAM |
RotatingBuffer | Before buffer fills | Fixed-size circular store |
ActivityDriven | Before more user activity | Overwritten by normal use |
Persistent | Standard scheduled collection | Present until explicit deletion |
Residual | Last — always present on a live volume | Storage-level structure |
§What Residual means — and what it does NOT mean
Residual is the lowest acquisition urgency class. Use it only for artifacts
that are structurally present on any live mounted volume and cannot be
destroyed by normal system operation (only by reformatting, physical destruction,
or deliberate forensic manipulation). The canonical example is $MFT — any
mounted NTFS volume always has an MFT; it is the last artifact you need to rush
to collect.
Residual does NOT mean “recoverable via .LOG1/.LOG2, VSS, or $UsnJrnl after
deletion.” That property applies to virtually every NTFS artifact and provides
no discrimination between classes. A registry key that could be recovered from
a transaction log after deletion is Persistent while it exists — use Persistent
for all live registry keys and files regardless of post-deletion recoverability.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Residual = 0
Storage-level artifact inherently present on any live mounted volume — cannot
be destroyed by normal system operation. Lowest acquisition urgency: collect
last. Example: $MFT (always present on NTFS), Volume Boot Record.
Not a synonym for “recoverable via VSS/.LOG1/.LOG2 after deletion” — that applies to virtually all NTFS artifacts and is not discriminating.
Persistent = 1
Present in its primary location until explicitly deleted. Default class for
registry keys, configuration files, and most forensic artifacts on a live
system. Examples: Run keys, NTDS.dit, event log files (the file itself, not
its contents — for contents see RotatingBuffer).
ActivityDriven = 2
Overwritten by ordinary user activity; degrades with normal system use. Examples: MRU lists, Recent Documents, browser history, typed URL cache.
RotatingBuffer = 3
Overwritten when a fixed-size circular buffer fills; oldest entries lost. Examples: Windows Event Log records (when log reaches max size), Prefetch files (128-entry limit), $UsnJrnl (wraps based on configured max size).
Volatile = 4
Lost on reboot or process termination; exists only in volatile memory. Collect immediately in a live response before system shutdown. Examples: RAM contents, process handles, network connections, open file handles, the in-memory ShimCache state not yet flushed to registry.
Trait Implementations§
Source§impl Clone for VolatilityClass
impl Clone for VolatilityClass
Source§fn clone(&self) -> VolatilityClass
fn clone(&self) -> VolatilityClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more