Skip to content
WETNav

Defense evasion · Windows · LOLBAS

fsutil.exe

File System utility

Manages NTFS and volumes. Deleting the USN change journal hides recent file activity, and its file commands can zero out or inflate files, so journal and file operations are worth checking.

Legitimate use

Admins use it to query and manage NTFS features, quotas and volumes.

Worst caseHigh

Subcommands

usn

USN change journal context. deletejournal removes the record of recent file changes.

High
deletejournal

Deletes the USN journal on a volume, hiding recent file creation and change activity.

High
file

File operations. setzerodata zeroes a file; createnew can inflate a file to exhaust disk.

Medium
setzerodata

Zeroes out the content of a file, destroying it in place.

High
volume

Volume operations, including dismount.

Low

Command lines to worry about

  • High

    USN journal deleted

    Deleting the USN change journal removes a record of recent file creation and change. A targeted anti-forensics step.

    Detection regexfsutil(\.exe)?\s+usn\s+deletejournal\b

    T1070.004

  • High

    File zeroed out

    setzerodata overwrites a file's content with zeros, destroying it in place rather than just deleting it.

    Detection regexfsutil(\.exe)?\s+file\s+setzerodata\b

    T1485

Where it is recorded

  • Security4688Process creation with the full command line, when command-line auditing is enabled.
  • Sysmon1Process creation with command line, hashes and parent process.

Community detections

4 SigmaHQ rules for fsutil.exe. The explainer checks every pasted command line against all of them.

  • High
    Fsutil Suspicious Invocation

    Detects suspicious parameters of fsutil (deleting USN journal, configuring it with small size, etc). Might be used by ransomwares during the attack (seen by NotPetya and others).

    T1070T1485by Ecco, E.M. Anhaus, oscd.community

  • High
    Suspicious Spool Service Child Process

    Detects suspicious print spool service (spoolsv.exe) child processes.

    T1203T1068by Justin C. (@endisphotic), @dreadphones (detection), Thomas Patzke (Sigma rule)

  • High
    Webshell Hacking Activity Patterns

    Detects certain parent child patterns found in cases in which a web shell is used to perform certain credential dumping or exfiltration activities on a compromised system

    T1505.003T1018T1033T1087by Florian Roth (Nextron Systems)

  • Low
    Fsutil Drive Enumeration

    Attackers may leverage fsutil to enumerated connected drives.

    T1120by Christopher Peacock '@securepeacock', SCYTHE '@scythe_io'

Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.