Atlantiraptor Docs

parse_usn

Type: Plugin · Category: parsers

Parse the USN journal from a device, image file or USN file.

This plugin calculates the full path of a USN entry by tracing its parent MFT entries through the MFT file. The MFT can be found in the same device or image that the USN is read from, or provided separately using a different file.

The plugin also considers information from the USN itself in resolving the full path. This technique is described here https://cybercx.com.au/blog/ntfs-usnjrnl-rewind/ in detail but it can result in more accurate path resolution when the directories have also been removed.

Argument Type Description
device accessors.OSPath The device file to open.
image_filename accessors.OSPath A raw image to open. You can also provide the accessor if using a raw image file.
accessor string The accessor to use.
mft_filename accessors.OSPath A path to a raw $MFT file to use for path resolution.
usn_filename accessors.OSPath A path to a raw USN file to parse. If not provided we extract it from the Device or Image file.
start_offset int64 The starting offset of the first USN record to parse.
fast_paths bool If set we resolve full paths using faster but less accurate algorithm.

Required permissions: FILESYSTEM_READ

Platforms: macOS, Linux, Windows

Source: vql/parsers/usn/usn.go