Skip to content

YARA · WithSecure Labs IOCs

WITHSECURELABS_Ducktail_Artifacts

Detects artifacts found in files associated to DUCKTAIL malware

MalwareDucktailWithSecure Labs IOCsBSD 2-Clause LicenseCompiles with YARA-X (with warnings)
Author
WithSecure
Date
2022-07-18
Modified
2022-07-26
Score / Quality
75 / 75

What this rule detects

Detects artifacts found in files associated to DUCKTAIL malware

Associated malware family: Ducktail.

Targets: Windows PE.

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

YARA-X says: warning[redundant_modifier]: redundant case-insensitive modifier

Summary generated from the rule's metadata and condition.

Rule source

ducktail-artifacts.yarBSD 2-Clause License
rule WITHSECURELABS_Ducktail_Artifacts : FILE
{
	meta:
		description = "Detects artifacts found in files associated to DUCKTAIL malware"
		author = "WithSecure"
		id = "937c9688-b74f-5e02-838f-ab6757a8d2a1"
		date = "2022-07-18"
		modified = "2022-07-26"
		reference = "https://labs.withsecure.com/publications/ducktail"
		source_url = "https://github.com/WithSecureLabs/iocs/blob/1a8384468dd292c6d2c5114c32e42dc0da1f5ae1/DUCKTAIL/ducktail_artifacts.yar#L1-L20"
		license_url = "https://github.com/WithSecureLabs/iocs/blob/1a8384468dd292c6d2c5114c32e42dc0da1f5ae1/LICENSE"
		hash = "3dbd9e1c3d0fd6358d4adcba04fdfc0b6e8acc49"
		hash = "9370243589327b458486e3f7637779c2a96b4250"
		hash = "b98170b18b906aee771dbd4dbd31e5963a90a50e"
		logic_hash = "1daa5e654058c802826b6a306b5bfc9d0c05c4ee54607e94e618a8d409ce74d9"
		score = 75
		quality = 75
		tags = "FILE"
		version = "1.0"

	strings:
		$pdb_path_1 = /[a-z]\:\\projects\\(viruttest|virot)\\/i nocase ascii
		$pdb_path_2 = /[a-z]\:\\users\\ductai\\/i nocase ascii
		$pdb_path_3 = "\\dataextractor.pdb" nocase ascii
		$email = "ductai2308@gmail.com" wide ascii

	condition:
		uint16( 0 ) == 0x5A4D and any of them
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$pdb_path_1regex/[a-z]\:\\projects\\(viruttest|virot)\\/inocase ascii
$pdb_path_2regex/[a-z]\:\\users\\ductai\\/inocase ascii
$pdb_path_3text"\\dataextractor.pdb"nocase ascii
$emailtext"ductai2308@gmail.com"wide ascii

Condition

uint16( 0 ) == 0x5A4D and any of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least one pattern 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).

  • 3dbd9e1c3d0fd6358d4adcba04fdfc0b6e8acc49
  • 9370243589327b458486e3f7637779c2a96b4250
  • b98170b18b906aee771dbd4dbd31e5963a90a50e

Licence & attribution

Author: WithSecure

Source repository: WithSecure Labs IOCs @ 1a8384468d

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright (c) 2022, WithSecure Oyj

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 937c9688-b74f-5e02-838f-ab6757a8d2a1

Metadata

version1.0

Tags:FILE

More Ducktail rules