add_programs_to_firewall_exclusion_from_temp_directory_sysmon
Description
Add Programs To Firewall Exclusion From Temp Directory. License: https://github.com/Neo23x0/sigma/blob/master/LICENSE.Detection.Rules.md.
Query · yara_l
events:
($selection.metadata.product_event_type = "1" and re.regex($selection.target.process.file.full_path, `.*\\netsh\.exe`) and re.regex($selection.target.process.command_line, `.*netsh firewall add allowedprogram \"C:\\Users\\admin\\AppData\\Local\\Temp.*`) and re.regex($selection.target.process.command_line, `.*ENABLE`))
condition:
$selection