Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Ducklogs

Detects DuckLogs based on specific strings

GenericSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
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:
		description = "Detects DuckLogs based on specific strings"
		author = "Sekoia.io"
		id = "165c7d3d-de7e-4d71-b94a-8ab4a0e5ddd5"
		date = "2022-12-01"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_ducklogs.yar#L1-L30"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "5db1a5595ec41488da620606bbcb36d0d686f9d6b7a0479439c53625df0886a0"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$dcktext"DuckLogs"ascii wide
$str01text"CheckRemoteDebuggerPresent"ascii
$str02text"MozGlueNotFound"ascii
$str03text"get_DecryptedPassword"ascii
$str04text"get_Extension"ascii
$str05text"set_UseShellExecute"ascii
$str06text"FirefoxPasswords"ascii
$str07text"GetAllGeckoCookies"ascii
$str08text"GetAllBlinkDownloadsBy"ascii
$str09text"Grabbers"ascii
$str10text"Utility"ascii
$str11text"Persistance"ascii
$str12text"Clipboard"ascii
$str13text"WaterfoxGrabber"ascii
$str14text"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.

Open in editor

References

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

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: 165c7d3d-de7e-4d71-b94a-8ab4a0e5ddd5

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE