suspicious_certutil_command
Description
Detects a suspicious Microsoft certutil execution with sub commands like 'decode' sub command, which is sometimes used to decode malicious code with the built-in certutil utility License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md.
Query · yara_l
events:
((re.regex($selection.target.process.command_line, `.* -decode .*`) or re.regex($selection.target.process.command_line, `.* /decode .*`) or re.regex($selection.target.process.command_line, `.* -decodehex .*`) or re.regex($selection.target.process.command_line, `.* /decodehex .*`) or re.regex($selection.target.process.command_line, `.* -urlcache .*`) or re.regex($selection.target.process.command_line, `.* /urlcache .*`) or re.regex($selection.target.process.command_line, `.* -verifyctl .*`) or re.regex($selection.target.process.command_line, `.* /verifyctl .*`) or re.regex($selection.target.process.command_line, `.* -encode .*`) or re.regex($selection.target.process.command_line, `.* /encode .*`) or re.regex($selection.target.process.command_line, `.*certutil.* -URL.*`) or re.regex($selection.target.process.command_line, `.*certutil.* /URL.*`) or re.regex($selection.target.process.command_line, `.*certutil.* -ping.*`) or re.regex($selection.target.process.command_line, `.*certutil.* /ping.*`)) and ($selection.metadata.product_event_type = "4688" or $selection.metadata.product_event_type = "1"))
condition:
$selection