← cd ..OSBinaries

Fsutil.exe

File System Utility

Full path

C:\Windows\System32\fsutil.exeC:\Windows\SysWOW64\fsutil.exe

Commands

  1. TamperUser T1485

    Can be used to forensically erase a file

    fsutil.exe file setZeroData offset=0 length=9999999999 {PATH_ABSOLUTE}

    Zero out a file

    os: Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

  2. TamperUser T1485

    Can be used to hide file creation activity

    fsutil.exe usn deletejournal /d c:

    Delete the USN journal volume to hide file creation activity

    os: Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

  3. ExecuteUser T1218

    Spawn a pre-planted executable from fsutil.exe.

    fsutil.exe trace decode

    Executes a pre-planted binary named netsh.exe from the current directory.

    os: Windows 11

    Execute: EXE

  4. TamperUser T1562.001

    Exhaust available disk space to impair defensive tools (preventing Windows Defender updates and halting local logging) or cause endpoint denial of service.

    fsutil.exe file createnew {PATH_ABSOLUTE} {LENGTH_IN_BYTES}

    Instantly creates a new file of any specified size to exhaust free disk space.

    os: Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

Detection

Resources

acknowledgement: Elliot Killick @elliotkillick, Jimmy @bohops, Grzegorz Tworek @0gtweet, MSNightmare @MSNightmare, DevCop95 @DevCop95