CVE-2023-38331 Exploitation Attempt - Suspicious WinRAR Child Process

Detects exploitation attempt of CVE-2023-38331 (WinRAR before v6.23), where an attacker can leverage WinRAR to execute arbitrary commands and binaries.

Sigma rule (View on GitHub)

 1title: CVE-2023-38331 Exploitation Attempt - Suspicious WinRAR Child Process
 2id: ec3a3c2f-9bb0-4a9b-8f4b-5ec386544343
 3related:
 4    - id: e4556676-fc5c-4e95-8c39-5ef27791541f
 5      type: similar
 6status: experimental
 7description: Detects exploitation attempt of CVE-2023-38331 (WinRAR before v6.23), where an attacker can leverage WinRAR to execute arbitrary commands and binaries.
 8references:
 9    - https://www.group-ib.com/blog/cve-2023-38831-winrar-zero-day/
10    - https://github.com/knight0x07/WinRAR-Code-Execution-Vulnerability-CVE-2023-38831/blob/26ab6c40b6d2c09bb4fc60feaa4a3a90cfd20c23/Part-1-Overview.md
11author: Nasreddine Bencherchali (Nextron Systems), Andreas Braathen (mnemonic.io)
12date: 2023/08/30
13modified: 2024/01/22
14tags:
15    - detection.emerging_threats
16    - attack.execution
17    - attack.t1203
18    - cve.2023.38331
19logsource:
20    category: process_creation
21    product: windows
22detection:
23    selection_parent:
24        ParentImage|endswith: '\WinRAR.exe'
25    selection_folder:
26        CommandLine|contains: '\AppData\Local\Temp\Rar$'
27    selection_double_ext:
28        CommandLine|re: '\.[a-zA-Z0-9]{1,4} \.'
29    selection_binaries:
30        # Note: add additional binaries that the attacker might use
31        - Image|endswith:
32              - '\cmd.exe'
33              - '\cscript.exe'
34              - '\powershell.exe'
35              - '\pwsh.exe'
36              - '\wscript.exe'
37        - OriginalFileName:
38              - 'Cmd.Exe'
39              - 'cscript.exe'
40              - 'PowerShell.EXE'
41              - 'pwsh.dll'
42              - 'wscript.exe'
43    condition: all of selection_*
44falsepositives:
45    - Unlikely
46level: high

References

Related rules

to-top