YARA · WithSecure Labs IOCs
WITHSECURELABS_Ducktail_Nativeaot
Detects NativeAOT variants of DUCKTAIL malware
- Author
- WithSecure
- Date
- 2022-11-17
- Modified
- 2022-11-22
- Score / Quality
- 75 / 75
What this rule detects
Detects NativeAOT variants of DUCKTAIL malware
Associated malware family: Ducktail.
Targets: Windows PE.
It has no patterns: the condition alone decides (modules, file properties or other rules). YARA modules used: pe.
Summary generated from the rule's metadata and condition.
Rule source
Includes the imports needed to compile it on its own.
import "pe"
rule WITHSECURELABS_Ducktail_Nativeaot : FILE
{
meta:
= "Detects NativeAOT variants of DUCKTAIL malware"
= "WithSecure"
= "1961d3e1-987b-588b-bfc2-8239797cd049"
= "2022-11-17"
= "2022-11-22"
= "https://labs.withsecure.com/publications/ducktail_returns"
= "https://github.com/WithSecureLabs/iocs/blob/1a8384468dd292c6d2c5114c32e42dc0da1f5ae1/DUCKTAIL/ducktail_nativeaot.yara#L2-L22"
= "https://github.com/WithSecureLabs/iocs/blob/1a8384468dd292c6d2c5114c32e42dc0da1f5ae1/LICENSE"
= "b043e4639f89459cae85161e6fbf73b22470979e"
= "073b092bf949c31628ee20f7458067bbb05fda3a"
= "d1f6b5f9718a2fe9eaac0c1a627228d3f3b86f87"
= "976b28ac45e5a13d4ce900b857e6bd3afc82b65b0235791fd698b762287cd60e"
= 75
= 75
= "FILE"
= "1.0"
condition:
uint16( 0 ) == 0x5A4D and filesize > 15MB and ( pe.section_index ( ".managed" ) >= 0 or pe.exports ( "DotNetRuntimeDebugHeader" ) ) and pe.exports ( "SendFile" ) and pe.exports ( "Start" ) and pe.exports ( "Open" )
}
Condition
uint16( 0 ) == 0x5A4D and filesize > 15MB and ( pe.section_index ( ".managed" ) >= 0 or pe.exports ( "DotNetRuntimeDebugHeader" ) ) and pe.exports ( "SendFile" ) and pe.exports ( "Start" ) and pe.exports ( "Open" )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be larger than 15MB.
- Uses the pe module.
- Checks exported functions or the DLL name.
- Checks PE sections (names, count or properties).
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).
- b043e4639f89459cae85161e6fbf73b22470979e
- 073b092bf949c31628ee20f7458067bbb05fda3a
- d1f6b5f9718a2fe9eaac0c1a627228d3f3b86f87
Licence & attribution
Author: WithSecure
Source repository: WithSecure Labs IOCs @ 1a8384468d
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright (c) 2022, WithSecure Oyj
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 1961d3e1-987b-588b-bfc2-8239797cd049
Metadata
| version | 1.0 |
|---|
Tags:FILE
Related rules
- MalwareWithSecure Labs IOCs· WithSecure· 2022-07-18
- MalwareSignature Base (Florian Roth / Nextron)· dr4k0nia· 2023-06-16
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- RUSSIANPANDA_Ducktail_MainbotMetadata onlyMalwareRussianPanda· RussianPanda· 2023-12-24
- RUSSIANPANDA_Ducktail_Myrdpservice_BotMetadata onlyMalwareRussianPanda· RussianPanda· 2023-12-24
- RUSSIANPANDA_DucktailMetadata onlyMalwareRussianPanda· RussianPanda· 2023-04-25
- MalwareWithSecure Labs IOCs· WithSecure· 2026-01-22
- MalwareWithSecure Labs IOCs· WithSecure· 2026-05-28