YARA · SEKOIA.IO Community
SEKOIA_Crimeware_Njrat_Strings
Detects njRAT based on some strings
- Author
- Sekoia.io
- Date
- 2022-08-22
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects njRAT based on some strings
Associated malware family: Njrat.
Targets: Windows PE.
It defines 8 patterns (8 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
crimeware-njrat-strings.yarDetection Rule License 1.1
rule SEKOIA_Crimeware_Njrat_Strings : FILE
{
meta:
= "Detects njRAT based on some strings"
= "Sekoia.io"
= "215807ae-fbcb-478d-8941-e0787b883669"
= "2022-08-22"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/crimeware_njrat_strings.yar#L1-L24"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "47102adde81682c3c1c856c3495c6f98a9e39aa052eac2ab0a803dab44d19c26"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "set cdaudio door closed" wide
$ = "set cdaudio door open" wide
$ = "ping 0" wide
$ = "[endof]" wide
$ = "TiGeR-Firewall" wide
$ = "NetSnifferCs" wide
$ = "IPBlocker" wide
$ = "Sandboxie Control" wide
condition:
uint16be( 0 ) == 0x4d5a and filesize < 1MB and 5 of them
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "set cdaudio door closed" | wide |
| $ | text | "set cdaudio door open" | wide |
| $ | text | "ping 0" | wide |
| $ | text | "[endof]" | wide |
| $ | text | "TiGeR-Firewall" | wide |
| $ | text | "NetSnifferCs" | wide |
| $ | text | "IPBlocker" | wide |
| $ | text | "Sandboxie Control" | wide |
Condition
uint16be( 0 ) == 0x4d5a and filesize < 1MB and 5 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).
- At least 5 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.
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: 215807ae-fbcb-478d-8941-e0787b883669
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-10-03
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-10-03
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-10-03
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- SECUINFRA_DROPPER_Njrat_VBSMetadata onlyMalwareSecuInfra Falcon Team· SECUINFRA Falcon Team· 2022-02-27
- SECUINFRA_MAL_NjratMetadata onlyMalwareSecuInfra Falcon Team· SECUINFRA Falcon Team· 2022-02-27
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp· 2021-01-22
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-30