YARA · SEKOIA.IO Community
SEKOIA_Apt_Qnapworm_Loader_May2022
Detects the QNAPWorm loader
- Author
- Sekoia.io
- Date
- 2022-05-23
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects the QNAPWorm loader
Targets: Windows PE.
It defines 1 patterns (0 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
apt-qnapworm-loader-may2022.yarDetection Rule License 1.1
rule SEKOIA_Apt_Qnapworm_Loader_May2022 : FILE
{
meta:
= "Detects the QNAPWorm loader"
= "Sekoia.io"
= "c6e87a55-73ea-4df4-ab61-b5d34968d741"
= "2022-05-23"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_qnapworm_loader_may2022.yar#L1-L28"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "d31fdaaacd417a4191e79e3a287e84c55109158eaacc789b2129e2ba94e443f6"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$s1 = {
66 C1 C0 05
0F B7 D8
81 C3 85 D0 FF FF
66 C1 C3 02
0F B7 C3
0F B6 9A ?? ?? ?? ??
33 D8
88 1C 11
42
0F B6 D2
81 FA ?? 00 00 00
}
condition:
uint16be( 0 ) == 0x4d5a and all of ( $s* )
}
Strings (1 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | hex | { 66 C1 C0 05 0F B7 D8 81 C3 85 D0 FF FF 66 C1 C3 02 0F B7 C3 0F B6 9A ?? ?? ?? ?? 33 D8 88 1C 1 … |
Condition
uint16be( 0 ) == 0x4d5a and all of ( $s* )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $s* ) 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: 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: c6e87a55-73ea-4df4-ab61-b5d34968d741
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