cscli scenarios install sigmahq/proc_creation_win_regedit_export_critical_keys
1type: trigger2name: sigmahq/proc_creation_win_regedit_export_critical_keys3description: |4 Detects the export of a crital Registry key to a file.5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.Image endsWith '\\regedit.exe' || evt.Parsed.OriginalFileName == 'REGEDIT.EXE') && (evt.Parsed.CommandLine contains ' -E ' || evt.Parsed.CommandLine contains ' /E ' || evt.Parsed.CommandLine contains ' –E ' || evt.Parsed.CommandLine contains ' —E ' || evt.Parsed.CommandLine contains ' ―E ') && (evt.Parsed.CommandLine contains 'hklm' || evt.Parsed.CommandLine contains 'hkey_local_machine') && (evt.Parsed.CommandLine endsWith '\\system' || evt.Parsed.CommandLine endsWith '\\sam' || evt.Parsed.CommandLine endsWith '\\security'))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t10121516 label: "Exports Critical Registry Keys To a File"17 behavior : "windows:audit"18 remediation: false1920scope:21 type: ParentProcessId22 expression: evt.Parsed.ParentProcessId2324