EXPL_RAR_Archive_with_Path_Traversal_Aug25
Description
Detects RAR archives abused for path traversal like CVE-2025-8088 and CVE-2025-6218
Query · yara
strings:
// Only look for the users Autostart folder because the most effective attack method
// Use \ and / to handle archives created on Windows and Linux
$s1 = "..\\\\..\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu"
$s2 = "..//../AppData/Roaming/Microsoft/Windows/Start Menu"
// CVE-2025-6218:
$s3 = "/.. /.. /AppData/Roaming/Microsoft/Windows/Start Menu/"
condition:
1 of ( $s* )
and (
uint16(0) == 0x4B50 // Yes, Winrar can chocke on ZIPs
or int32(0) == 0x21726152 // RAR
)