YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Ducktail
Detects DuckTail
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects DuckTail
Associated malware family: Ducktail.
Targets: Windows PE.
It defines 15 patterns (14 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-ducktail.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Ducktail : FILE
{
meta:
= "Detects DuckTail"
= "ditekSHen"
= "2d1a8f9e-ed5f-53fa-8ba8-b6d1344f6d39"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9963-L9991"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "a416212e5f87b33fdc14590c3d6d6ebc2915c2b383adf78d660c9408beb2323f"
= 75
= 75
= "FILE"
strings:
$s1 = "&global_scope_id=" wide
$s2 = "#ResolveMyIpAll" wide
$s3 = "#ApproveInvitesHandler" wide
$s4 = "#ProcessShareCok" wide
$s5 = "#InviteEmpHandler" wide
$s6 = "__activeScenarioIDs=%" wide
$s7 = "&__a=1&fb_dtsg=" wide
$s8 = "adAccountLimit\":(.*?)}" wide
$s9 = "|PUSH|" fullword wide
$s10 = "|SCREEN|" fullword wide
$s11 = "|SCREEC|" fullword wide
$s12 = "_ad_accounts>k__" ascii
$s13 = "get_Pwds" fullword ascii
$s14 = "Telegram.Bot" ascii
$s15 = { 2f 00 7b 00 43 00 59 00 52 00 7d 00 2e 00 74 00
78 00 74 00 00 15 2f 00 7b 00 4c 00 4f 00 47 00
7d 00 2e 00 74 00 78 00 74 00 00 15 2f 00 7b 00
43 00 46 00 47 00 7d 00 2e 00 74 00 78 00 74 00
00 15 2f 00 7b 00 50 00 52 00 53 00 7d 00 2e 00
74 00 78 00 74 00 00 15 2f 00 7b 00 53 00 43 00
52 00 7d 00 2e 00 6a 00 70 00 67 }
condition:
uint16( 0 ) == 0x5a4d and 13 of them
}
Strings (15 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "&global_scope_id=" | wide |
| $s2 | text | "#ResolveMyIpAll" | wide |
| $s3 | text | "#ApproveInvitesHandler" | wide |
| $s4 | text | "#ProcessShareCok" | wide |
| $s5 | text | "#InviteEmpHandler" | wide |
| $s6 | text | "__activeScenarioIDs=%" | wide |
| $s7 | text | "&__a=1&fb_dtsg=" | wide |
| $s8 | text | "adAccountLimit\":(.*?)}" | wide |
| $s9 | text | "|PUSH|" | fullword wide |
| $s10 | text | "|SCREEN|" | fullword wide |
| $s11 | text | "|SCREEC|" | fullword wide |
| $s12 | text | "_ad_accounts>k__" | ascii |
| $s13 | text | "get_Pwds" | fullword ascii |
| $s14 | text | "Telegram.Bot" | ascii |
| $s15 | hex | { 2f 00 7b 00 43 00 59 00 52 00 7d 00 2e 00 74 00 78 00 74 00 00 15 2f 00 7b 00 4c 00 4f 00 47 00 7d 00 2e 00 74 00 78 00 74 00 00 … |
Condition
uint16( 0 ) == 0x5a4d and 13 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 13 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.
References
Licence & attribution
Author: ditekSHen
Source repository: ditekSHen detection @ e76c93dcde
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 2d1a8f9e-ed5f-53fa-8ba8-b6d1344f6d39
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· dr4k0nia· 2023-06-16
- MalwareWithSecure Labs IOCs· WithSecure· 2022-11-17
- MalwareWithSecure Labs IOCs· WithSecure· 2022-07-18
- RUSSIANPANDA_Ducktail_MainbotMetadata onlyMalwareRussianPanda· RussianPanda· 2023-12-24
- RUSSIANPANDA_Ducktail_Myrdpservice_BotMetadata onlyMalwareRussianPanda· RussianPanda· 2023-12-24
- RUSSIANPANDA_DucktailMetadata onlyMalwareRussianPanda· RussianPanda· 2023-04-25
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06