{"id":"afe52666-401e-4a02-b4ff-5d128990b8cb","title":"Suspicious Greedy Compression Using Rar.EXE","description":"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 purposes","author":"X__Junior (Nextron Systems), Florian Roth (Nextron Systems)","status":"test","level":"high","date":"2022-12-15","modified":"2024-01-02","tags":["attack.execution","attack.t1059"],"technique_ids":["T1059"],"logsource":{"product":"windows","category":"process_creation"},"falsepositives":["Unknown"],"references":["https://decoded.avast.io/martinchlumecky/png-steganography"],"source_path":"rules/windows/process_creation/proc_creation_win_rar_susp_greedy_compression.yml","source_sha256":"6cb00a089f525cbbc99fbbfcef572838536e2a97e0d62ede0d08a9f25a0f3e7f","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_rar_susp_greedy_compression.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Suspicious Greedy Compression Using Rar.EXE\nid: afe52666-401e-4a02-b4ff-5d128990b8cb\nstatus: test\ndescription: 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 purposes\nreferences:\n    - https://decoded.avast.io/martinchlumecky/png-steganography\nauthor: X__Junior (Nextron Systems), Florian Roth (Nextron Systems)\ndate: 2022-12-15\nmodified: 2024-01-02\ntags:\n    - attack.execution\n    - attack.t1059\nlogsource:\n    product: windows\n    category: process_creation\ndetection:\n    # Example : rar.exe a -m5 -r -y -ta20210204000000 -hp1qazxcde32ws -v2560k Asia1Dpt-PC-c.rar c:\\\\*.doc c:\\\\*.docx c:\\\\*.xls c:\\\\*.xlsx c:\\\\*.pdf c:\\\\*.ppt c:\\\\*.pptx c:\\\\*.jpg c:\\\\*.txt >nul\n    selection_opt_1:\n        - Image|endswith: '\\rar.exe'\n        - Description: 'Command line RAR'\n    selection_opt_2:\n        CommandLine|contains:\n            - '.exe a '\n            - ' a -m'\n    selection_cli_flags:\n        CommandLine|contains|all:\n            - ' -hp' # password\n            - ' -r ' # recursive\n    selection_cli_folders:\n        CommandLine|contains:\n            - ' ?:\\\\\\*.'\n            - ' ?:\\\\\\\\\\*.'\n            - ' ?:\\$Recycle.bin\\'\n            - ' ?:\\PerfLogs\\'\n            - ' ?:\\Temp'\n            - ' ?:\\Users\\Public\\'\n            - ' ?:\\Windows\\'\n            - ' %public%'\n    condition: 1 of selection_opt_* and all of selection_cli_*\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059","id":"T1059","name":"Command and Scripting Interpreter","page":"techniques/enterprise/T1059/"}],"data_path":"data/detection-rules/afe52666-401e-4a02-b4ff-5d128990b8cb.json","kind":"sigma"}
