cscli scenarios install sigmahq/proc_creation_win_rar_susp_greedy_compression1type: trigger2name: sigmahq/proc_creation_win_rar_susp_greedy_compression3description: |4 Detects RAR usage that creates an archive from a suspicious folder, either a system folder or one of the folders often used by attackers for staging purposes5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.Image endsWith '\\rar.exe' || evt.Parsed.Description == 'Command line RAR' || evt.Parsed.CommandLine contains '.exe a ' || evt.Parsed.CommandLine contains ' a -m') && evt.Parsed.CommandLine contains ' -hp' && evt.Parsed.CommandLine contains ' -r ' && (Match(' :\\*.', evt.Parsed.CommandLine) || Match(' :\\\\*.', evt.Parsed.CommandLine) || Match(' :\\$Recycle.bin\\', evt.Parsed.CommandLine) || Match(' :\\PerfLogs\\', evt.Parsed.CommandLine) || Match(' :\\Temp', evt.Parsed.CommandLine) || Match(' :\\Users\\Public\\', evt.Parsed.CommandLine) || Match(' :\\Windows\\', evt.Parsed.CommandLine) || evt.Parsed.CommandLine contains ' %public%'))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t10591516 label: "Suspicious Greedy Compression Using Rar.EXE"17 behavior : "windows:audit"18 remediation: false1920scope:21 type: ParentProcessId22 expression: evt.Parsed.ParentProcessId2324