YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_APT_MAL_IR_Druidfly_Wiper_Jun25
Detects Wiper used by the Iranian DruidFly group
- 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
rule SIGNATURE_BASE_APT_MAL_IR_Druidfly_Wiper_Jun25 : FILE
{
meta:
= "Detects Wiper used by the Iranian DruidFly group"
= "Florian Roth"
= "4d731d9a-6f35-51a3-84de-5aa33114b75c"
= "2025-06-21"
= "2026-05-15"
= "https://x.com/threatintel/status/1936049254432231444"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/mal_wipers_jun25.yar#L64-L91"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "81eb22828306f3197b35fef2035cef2c548f587f8511902852964850023389d7"
= "9d3872506b03ea03a2c3cd7304c6b2d9dfafa04a29e19dc9be4924eaaa5db2d6"
= 80
= 85
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $xc1 | hex | { 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 | hex | { 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 | text | "%s:%d:%s(): [+] Overwriting \"%s\" \"..." | ascii |
| $s1 | text | "C:\\Windows\\System32\\drivers\\beep.sys" | ascii fullword |
| $s2 | text | "\\DosDevices\\sectorio" | wide fullword |
Condition
uint16( 0 ) == 0x5a4d and filesize < 2000KB and ( 1 of ( $x* ) or 2 of them ) or 3 of themIn 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.
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)
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
Related rules
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-11-22
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-06-16
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-06-16
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-11-09
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth· 2022-12-14
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth· 2021-05-27
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-06-21
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth· 2026-08-31