YARA · SEKOIA.IO Community
SEKOIA_Malware_Swordldr
Detects Swordldr. Maybe chunk_1 is too restrictive
- Author
- Sekoia.io
- Date
- 2024-09-25
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects Swordldr. Maybe chunk_1 is too restrictive
Targets: Windows PE.
It defines 10 patterns (0 text, 10 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-swordldr.yarDetection Rule License 1.1
rule SEKOIA_Malware_Swordldr : FILE
{
meta:
= "Detects Swordldr. Maybe chunk_1 is too restrictive"
= "Sekoia.io"
= "4068c007-50f4-4913-a352-4a40dd4e452b"
= "2024-09-25"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/malware_swordldr.yar#L1-L29"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "d0cc758082e303275cbb8cd6b2048eff"
= "7aa57da44718cd88f7d37b33a5d3ad74"
= "9e408181b9122925c0ff9efdaed688e659596b58b9108c0f280d9bc1624d73cb"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = { CC CC CC CC B0 01 C3 CC CC CC CC }
$ = { CC CC CC CC B0 02 C3 CC CC CC CC }
$ = { CC CC CC CC B0 03 C3 CC CC CC CC }
$ = { CC CC CC CC B0 04 C3 CC CC CC CC }
$ = { CC CC CC CC B0 05 C3 CC CC CC CC }
$ = { CC CC CC CC B0 06 C3 CC CC CC CC }
$ = { CC CC CC CC B0 07 C3 CC CC CC CC }
$ = { CC CC CC CC B0 08 C3 CC CC CC CC }
$ = { CC CC CC CC B0 09 C3 CC CC CC CC }
$chunk_1 = {
48 63 44 24 40 44 8B 44 86 04 48 63 44 24 40 45 23 ?? 45 03 C0 8B 54 86 04 48 63 44 24 40 41 2B D0 41 03 ?? 89 54 86 04
}
condition:
uint16be( 0 ) == 0x4d5a and 4 of them and #chunk_1 > 5
}
Strings (10 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | hex | { CC CC CC CC B0 01 C3 CC CC CC CC } | |
| $ | hex | { CC CC CC CC B0 02 C3 CC CC CC CC } | |
| $ | hex | { CC CC CC CC B0 03 C3 CC CC CC CC } | |
| $ | hex | { CC CC CC CC B0 04 C3 CC CC CC CC } | |
| $ | hex | { CC CC CC CC B0 05 C3 CC CC CC CC } | |
| $ | hex | { CC CC CC CC B0 06 C3 CC CC CC CC } | |
| $ | hex | { CC CC CC CC B0 07 C3 CC CC CC CC } | |
| $ | hex | { CC CC CC CC B0 08 C3 CC CC CC CC } | |
| $ | hex | { CC CC CC CC B0 09 C3 CC CC CC CC } | |
| $chunk_1 | hex | { 48 63 44 24 40 44 8B 44 86 04 48 63 44 24 40 45 23 ?? 45 03 C0 8B 54 86 04 48 63 44 24 40 41 2B D0 41 03 ?? 89 54 86 04 } |
Condition
uint16be( 0 ) == 0x4d5a and 4 of them and #chunk_1 > 5In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 4 patterns in the rule must match.
- Pattern $chunk_1 must occur > 5 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
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- d0cc758082e303275cbb8cd6b2048eff
- 7aa57da44718cd88f7d37b33a5d3ad74
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: 4068c007-50f4-4913-a352-4a40dd4e452b
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20