Skip to content

YARA · elceef yara-rulz

ELCEEF_Winrar_CVE_2023_38831_Exploit

Detects ZIP archives exploiting CVE-2023-38831 in WinRAR

Exploitelceef yara-rulzMIT LicenseCompiles with YARA-X
Author
marcin@ulikowski.pl
Date
2023-09-23
Modified
2023-09-28
Score / Quality
75 / 75

What this rule detects

Detects ZIP archives exploiting CVE-2023-38831 in WinRAR

It defines 1 patterns (0 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

winrar-cve-2023-38831-exploit.yarMIT License
rule ELCEEF_Winrar_CVE_2023_38831_Exploit : CVE_2023_38831 FILE
{
	meta:
		description = "Detects ZIP archives exploiting CVE-2023-38831 in WinRAR"
		author = "marcin@ulikowski.pl"
		id = "7d592eb7-b344-59ed-adf8-fe69ebb1e43f"
		date = "2023-09-23"
		modified = "2023-09-28"
		reference = "https://www.group-ib.com/blog/cve-2023-38831-winrar-zero-day"
		source_url = "https://github.com/elceef/yara-rulz/blob/5683b294a12cf0c875b624933586029ae43a852f/rules/WinRAR_CVE_2023_38831.yara#L1-L17"
		license_url = "https://github.com/elceef/yara-rulz/blob/5683b294a12cf0c875b624933586029ae43a852f/LICENSE"
		hash = "00175d538cba0c493e397a0b7f4b28f9a90dd0ee40f69795ae28d23ce0d826c0"
		hash = "ca8ca67df7853b86b6a107c8fd7f73b757de9143ea8844d0e6209249e8377885"
		logic_hash = "06f1d807429fb175831cf333b05b44b6ce33b4ae981e16c03e36ec7564a4fdd1"
		score = 75
		quality = 75
		tags = "CVE-2023-38831, FILE"

	strings:
		$ = { 50 4b 03 04 [24] 00 00 [3-64] 2e ?? ?? ?? 20 2f [3-64] 2e ?? ?? ?? 20 2e ( 626174 | 636d64 | 707331 ) }

	condition:
		uint16be( 0 ) == 0x504b and all of them
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$hex{ 50 4b 03 04 [24] 00 00 [3-64] 2e ?? ?? ?? 20 2f [3-64] 2e ?? ?? ?? 20 2e ( 626174 | 636d64 | 707331 ) }

Condition

uint16be( 0 ) == 0x504b and all of them

In plain words (Heuristic)

  • All patterns in the rule must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • 00175d538cba0c493e397a0b7f4b28f9a90dd0ee40f69795ae28d23ce0d826c0
  • ca8ca67df7853b86b6a107c8fd7f73b757de9143ea8844d0e6209249e8377885

Licence & attribution

Author: marcin@ulikowski.pl

Source repository: elceef yara-rulz @ 5683b294a1

Licence: MIT License (repository licence)

Copyright notice: Copyright (c) 2022 Marcin Ulikowski

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 7d592eb7-b344-59ed-adf8-fe69ebb1e43f

Tags:CVE_2023_38831FILE