YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Ducklogs
Detects DuckLogs based on specific strings
- Author
- Sekoia.io
- Date
- 2022-12-01
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects DuckLogs based on specific strings
Targets: Windows PE.
It defines 15 patterns (15 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
infostealer-win-ducklogs.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Ducklogs : FILE
{
meta:
= "Detects DuckLogs based on specific strings"
= "Sekoia.io"
= "165c7d3d-de7e-4d71-b94a-8ab4a0e5ddd5"
= "2022-12-01"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_ducklogs.yar#L1-L30"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "5db1a5595ec41488da620606bbcb36d0d686f9d6b7a0479439c53625df0886a0"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$dck = "DuckLogs" ascii wide
$str01 = "CheckRemoteDebuggerPresent" ascii
$str02 = "MozGlueNotFound" ascii
$str03 = "get_DecryptedPassword" ascii
$str04 = "get_Extension" ascii
$str05 = "set_UseShellExecute" ascii
$str06 = "FirefoxPasswords" ascii
$str07 = "GetAllGeckoCookies" ascii
$str08 = "GetAllBlinkDownloadsBy" ascii
$str09 = "Grabbers" ascii
$str10 = "Utility" ascii
$str11 = "Persistance" ascii
$str12 = "Clipboard" ascii
$str13 = "WaterfoxGrabber" ascii
$str14 = "AvastGrabber" ascii
condition:
uint16( 0 ) == 0x5A4D and ( ( #dck > 4 and 2 of ( $str* ) ) or 12 of them )
}
Strings (15 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $dck | text | "DuckLogs" | ascii wide |
| $str01 | text | "CheckRemoteDebuggerPresent" | ascii |
| $str02 | text | "MozGlueNotFound" | ascii |
| $str03 | text | "get_DecryptedPassword" | ascii |
| $str04 | text | "get_Extension" | ascii |
| $str05 | text | "set_UseShellExecute" | ascii |
| $str06 | text | "FirefoxPasswords" | ascii |
| $str07 | text | "GetAllGeckoCookies" | ascii |
| $str08 | text | "GetAllBlinkDownloadsBy" | ascii |
| $str09 | text | "Grabbers" | ascii |
| $str10 | text | "Utility" | ascii |
| $str11 | text | "Persistance" | ascii |
| $str12 | text | "Clipboard" | ascii |
| $str13 | text | "WaterfoxGrabber" | ascii |
| $str14 | text | "AvastGrabber" | ascii |
Condition
uint16( 0 ) == 0x5A4D and ( ( #dck > 4 and 2 of ( $str* ) ) or 12 of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 2 patterns in ( $str* ) must match.
- At least 12 patterns in the rule must match.
- Pattern $dck must occur > 4 times.
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: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
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: 165c7d3d-de7e-4d71-b94a-8ab4a0e5ddd5
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-03-06