Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_APT_MAL_IR_Druidfly_Wiper_Jun25

Detects Wiper used by the Iranian DruidFly group

APT / threat actorSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth
Date
2025-06-21
Modified
2026-05-15
Score / Quality
80 / 85

What this rule detects

Detects Wiper used by the Iranian DruidFly group

Targets: Windows PE.

It defines 5 patterns (3 text, 2 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

apt-mal-ir-druidfly-wiper-jun25.yarDetection Rule License 1.1
rule SIGNATURE_BASE_APT_MAL_IR_Druidfly_Wiper_Jun25 : FILE
{
	meta:
		description = "Detects Wiper used by the Iranian DruidFly group"
		author = "Florian Roth"
		id = "4d731d9a-6f35-51a3-84de-5aa33114b75c"
		date = "2025-06-21"
		modified = "2026-05-15"
		reference = "https://x.com/threatintel/status/1936049254432231444"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/mal_wipers_jun25.yar#L64-L91"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "81eb22828306f3197b35fef2035cef2c548f587f8511902852964850023389d7"
		logic_hash = "9d3872506b03ea03a2c3cd7304c6b2d9dfafa04a29e19dc9be4924eaaa5db2d6"
		score = 80
		quality = 85
		tags = "FILE"

	strings:
		$xc1 = { 2E 62 61 63 6B 75 70 00 2E 63 6F 6E 66 69 67 00   // .backup .config
               2E 64 62 00 00 00 00 00 2E 73 71 6C 69 74 65 00 }
		$xc2 = { 00 5C 5C 2E 5C 25 63 3A 00 25 63 3A 5C 00 00 00
               00 4E 54 46 53 00 00 00 00 5C }
		$x1 = "%s:%d:%s(): [+] Overwriting \"%s\" \"..." ascii
		$s1 = "C:\\Windows\\System32\\drivers\\beep.sys" ascii fullword
		$s2 = "\\DosDevices\\sectorio" wide fullword

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 2000KB and ( 1 of ( $x* ) or 2 of them ) or 3 of them
}

Strings (5 patterns)

IdentifierTypeValueModifiers
$xc1hex{ 2E 62 61 63 6B 75 70 00 2E 63 6F 6E 66 69 67 00 // .backup .config 2E 64 62 00 00 00 00 00 2E 73 71 6C 69 74 65 00 }
$xc2hex{ 00 5C 5C 2E 5C 25 63 3A 00 25 63 3A 5C 00 00 00 00 4E 54 46 53 00 00 00 00 5C }
$x1text"%s:%d:%s(): [+] Overwriting \"%s\" \"..."ascii
$s1text"C:\\Windows\\System32\\drivers\\beep.sys"ascii fullword
$s2text"\\DosDevices\\sectorio"wide fullword

Condition

uint16( 0 ) == 0x5a4d and filesize < 2000KB and ( 1 of ( $x* ) or 2 of them ) or 3 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 2000KB (a cheap guard that skips large files).
  • At least 1 patterns in ( $x* ) must match.
  • At least 2 patterns in the rule must match.
  • At least 3 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).

  • 81eb22828306f3197b35fef2035cef2c548f587f8511902852964850023389d7

Licence & attribution

Author: Florian Roth

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: 4d731d9a-6f35-51a3-84de-5aa33114b75c

Tags:FILE