Detect CVE-2025-6218: RARLAB WinRAR Path Traversal Exploitation in Sumo Logic CSE
Detects exploitation of CVE-2025-6218, a path traversal vulnerability in RARLAB WinRAR. Attackers can craft malicious archive files that, when extracted, write files outside the intended extraction directory, enabling arbitrary file placement on the victim system. This vulnerability is actively exploited in the wild (CISA KEV) and can lead to code execution, persistence, or privilege escalation by dropping malicious files to sensitive locations such as startup folders, system directories, or application data paths.
MITRE ATT&CK
- Tactic
- Initial Access Execution Persistence
Sumo Detection Query
_sourceCategory=windows/sysmon EventCode=11
| parse field=Message "Image: *\n" as ProcessImage
| parse field=Message "ParentImage: *\n" as ParentImage
| parse field=Message "TargetFilename: *\n" as TargetFile
| where matches(toLowerCase(ProcessImage), ".*winrar\.exe") or matches(toLowerCase(ParentImage), ".*winrar\.exe")
| where matches(toLowerCase(TargetFile), ".*\\\\startup\\\\.*")
or matches(toLowerCase(TargetFile), ".*\\\\system32\\\\.*")
or matches(toLowerCase(TargetFile), ".*\\\\syswow64\\\\.*")
or matches(toLowerCase(TargetFile), ".*\\\\windows\\\\tasks\\\\.*")
or matches(TargetFile, ".*\.\.[/\\\\].*")
| fields _messagetime, _sourceHost, ProcessImage, ParentImage, TargetFile
| sort by _messagetime desc Sumo Logic query detecting Sysmon file creation events from WinRAR targeting sensitive Windows paths, indicative of CVE-2025-6218 exploitation.
Data Sources
Required Tables
False Positives & Tuning
- Enterprise deployment pipelines extracting configuration files to controlled paths
- Security researchers testing WinRAR extraction behavior in lab environments
- Legitimate software bundles distributed via RAR format that install to system directories
Other platforms for CVE-2025-6218
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1WinRAR Path Traversal to Startup Folder
Expected signal: Sysmon Event ID 11 (FileCreate) with Image=WinRAR.exe and TargetFilename pointing to the Startup folder path
- Test 2WinRAR Extraction with Relative Path Traversal Sequence
Expected signal: Sysmon Event ID 11 with TargetFilename containing path traversal sequence and WinRAR.exe as the initiating process
- Test 3WinRAR Drop Executable to Windows Tasks Directory
Expected signal: Sysmon Event ID 11 (FileCreate) with Image containing WinRAR.exe and TargetFilename matching C:\Windows\Tasks\*
Unlock Pro Content
Get the full detection package for CVE-2025-6218 including response playbook, investigation guide, and atomic red team tests.