Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_EXPL_Cleo_Exploitation_Log_Indicators_Dec24_1

Detects indicators found in logs during and after Cleo software exploitation (as reported by Huntress in December 2024)

Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
X__Junior
Date
2024-12-10
Modified
2024-12-12
Score / Quality
75 / 83

What this rule detects

Detects indicators found in logs during and after Cleo software exploitation (as reported by Huntress in December 2024)

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

Summary generated from the rule's metadata and condition.

Rule source

susp-expl-cleo-exploitation-log-indicators-dec24-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_EXPL_Cleo_Exploitation_Log_Indicators_Dec24_1 : FILE
{
	meta:
		description = "Detects indicators found in logs during and after Cleo software exploitation (as reported by Huntress in December 2024)"
		author = "X__Junior"
		id = "81daf184-4c38-5d84-899b-9d0de2f39934"
		date = "2024-12-10"
		modified = "2024-12-12"
		reference = "https://www.huntress.com/blog/threat-advisory-oh-no-cleo-cleo-software-actively-being-exploited-in-the-wild"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_cleo_dec24.yar#L18-L52"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "786951478a0fc5db24f6e1d8dcc5eaa8880dbd928da97828a61f1f1f0f21e21d"
		logic_hash = "481ddd570d0292036b421223ce0f839ece86cc1a97aa226a8b9fbd1d63905d1b"
		score = 75
		quality = 83
		tags = "FILE"

	strings:
		$sa1 = "<Thread type=\"AutoRun\" action=" ascii
		$sa2 = "<Mark date=" ascii
		$sa3 = "<Event>" ascii
		$sa4 = "<Command text" ascii
		$sb1 = "[System.Net.WebRequest]::create" ascii
		$sb2 = "Invoke-RestMethod" ascii
		$sb3 = "Invoke-WebRequest" ascii
		$sb4 = "iwr " ascii
		$sb5 = "Net.WebClient" ascii
		$sb6 = "Resume-BitsTransfer" ascii
		$sb7 = "Start-BitsTransfer" ascii
		$sb8 = "wget " ascii
		$sb9 = "WinHttp.WinHttpRequest" ascii
		$sb10 = ".DownloadFile(" ascii
		$sb11 = ".DownloadString(" ascii
		$sb12 = "Bypass" nocase ascii
		$sb13 = "-EncodedCommand" ascii
		$sb14 = "-windowstyle hidden" ascii
		$sb15 = " -enc " ascii

	condition:
		filesize < 1MB and all of ( $sa* ) and 1 of ( $sb* )
}

Strings (19 patterns)

IdentifierTypeValueModifiers
$sa1text"<Thread type=\"AutoRun\" action="ascii
$sa2text"<Mark date="ascii
$sa3text"<Event>"ascii
$sa4text"<Command text"ascii
$sb1text"[System.Net.WebRequest]::create"ascii
$sb2text"Invoke-RestMethod"ascii
$sb3text"Invoke-WebRequest"ascii
$sb4text"iwr "ascii
$sb5text"Net.WebClient"ascii
$sb6text"Resume-BitsTransfer"ascii
$sb7text"Start-BitsTransfer"ascii
$sb8text"wget "ascii
$sb9text"WinHttp.WinHttpRequest"ascii
$sb10text".DownloadFile("ascii
$sb11text".DownloadString("ascii
$sb12text"Bypass"nocase ascii
$sb13text"-EncodedCommand"ascii
$sb14text"-windowstyle hidden"ascii
$sb15text" -enc "ascii

Condition

filesize < 1MB and all of ( $sa* ) and 1 of ( $sb* )

In plain words (Heuristic)

  • The file must be smaller than 1MB (a cheap guard that skips large files).
  • All patterns in ( $sa* ) must match.
  • At least 1 patterns in ( $sb* ) 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).

  • 786951478a0fc5db24f6e1d8dcc5eaa8880dbd928da97828a61f1f1f0f21e21d

Licence & attribution

Author: X__Junior

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

Rule id: 81daf184-4c38-5d84-899b-9d0de2f39934

Tags:FILE