YARA · SEKOIA.IO Community
SEKOIA_Win_Malware_Janelarat_Strings
Detect the JanelaRAT malware
- Author
- Sekoia.io
- Date
- 2023-08-11
- Modified
- 2024-12-19
- Score / Quality
- 75 / 78
What this rule detects
Detect the JanelaRAT malware
Associated malware family: Janelarat.
Targets: Windows PE.
It defines 2 patterns (1 text, 1 hex, 0 regex).
YARA-X says: warning[text_as_hex]: hex pattern could be written as text literal
Summary generated from the rule's metadata and condition.
Rule source
rule SEKOIA_Win_Malware_Janelarat_Strings : FILE
{
meta:
= "Detect the JanelaRAT malware"
= "Sekoia.io"
= "891f182e-8a7a-4d0c-a481-62c198bb901b"
= "2023-08-11"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/win_malware_janelarat_strings.yar#L1-L20"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "00df0a1f037e24ff1528d524fb7398735e2c3e0a9995a9f95a5293b04748f06e"
= "cf2ca92cf790211f69ea9645f1c1b865d5503d14a1dcce535b4a69c735ea3dad"
= 75
= 78
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$s2 = {4d 58 4e 4f 42 55 47 4d 41 47}
$s1 = "block.blq" wide
condition:
( uint16be( 0 ) == 0x4d5a ) and filesize > 100KB and filesize < 1MB and 2 of them
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s2 | hex | {4d 58 4e 4f 42 55 47 4d 41 47} | |
| $s1 | text | "block.blq" | wide |
Condition
( uint16be( 0 ) == 0x4d5a ) and filesize > 100KB and filesize < 1MB and 2 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 1MB (a cheap guard that skips large files).
- The file must be larger than 100KB.
- At least 2 patterns 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.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 00df0a1f037e24ff1528d524fb7398735e2c3e0a9995a9f95a5293b04748f06e
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: 891f182e-8a7a-4d0c-a481-62c198bb901b
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- 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