possible_credential_in_files_execution_sysmon_behavior
Description
This content detects powershell users trying to discover credentials in Files (Based off of SOCPrime Red Tests) License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md.
Query · yara_l
events:
($selection1.metadata.product_event_type = "1" and $selection1.target.process.file.full_path = "C:\\Windows\\System32\\findstr.exe" and (re.regex($selection1.target.process.command_line, `C:\\Windows\\System32\\findstr\.exe -si pass.*`) or re.regex($selection1.target.process.command_line, `C:\\Windows\\System32\\findstr\.exe -si user.*`)) and $selection1.principal.process.file.full_path = "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe")
condition:
$selection1