Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_EXPL_Cleo_Exploitation_XML_Indicators_Dec24_1

Detects XML used 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
70 / 83

What this rule detects

Detects XML used 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-xml-indicators-dec24-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_EXPL_Cleo_Exploitation_XML_Indicators_Dec24_1 : FILE
{
	meta:
		description = "Detects XML used during and after Cleo software exploitation (as reported by Huntress in December 2024)"
		author = "X__Junior"
		id = "b30ca09f-b84c-5de8-9bf7-9f3269f32c1f"
		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#L112-L146"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "b103f708e85416fc6d7af9605da4b57b3abe42fb9c6c9ec0f539b4c877580bd2"
		logic_hash = "c9be15aec57fdde62815ee04daa5616940ab7949784d382a4825dce9f1e28568"
		score = 70
		quality = 83
		tags = "FILE"

	strings:
		$sa1 = "<Action actiontype=\"Commands\"" ascii
		$sa2 = "<?xml version=" ascii
		$sa3 = "<Runninglocalrequired>" ascii
		$sa4 = "<Autostartup>" 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 < 10KB and all of ( $sa* ) and 1 of ( $sb* )
}

Strings (19 patterns)

IdentifierTypeValueModifiers
$sa1text"<Action actiontype=\"Commands\""ascii
$sa2text"<?xml version="ascii
$sa3text"<Runninglocalrequired>"ascii
$sa4text"<Autostartup>"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 < 10KB and all of ( $sa* ) and 1 of ( $sb* )

In plain words (Heuristic)

  • The file must be smaller than 10KB (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).

  • b103f708e85416fc6d7af9605da4b57b3abe42fb9c6c9ec0f539b4c877580bd2

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: b30ca09f-b84c-5de8-9bf7-9f3269f32c1f

Tags:FILE