YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_HKTL_NET_NAME_RAT_Njrat_0_7D_Modded_Source_Code
Detects .NET red/black-team tools via name
- Author
- Arnim Rupp
- Date
- 2021-01-22
- Modified
- 2026-02-23
- Score / Quality
- 75 / 85
What this rule detects
Detects .NET red/black-team tools via name
Associated malware family: Njrat.
Targets: Windows PE.
It defines 2 patterns (2 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_HKTL_NET_NAME_RAT_Njrat_0_7D_Modded_Source_Code : FILE
{
meta:
= "Detects .NET red/black-team tools via name"
= "Arnim Rupp"
= "2b7d1f75-0164-561e-8199-32c601cbca98"
= "2021-01-22"
= "2026-02-23"
= "https://github.com/AliBawazeEer/RAT-NjRat-0.7d-modded-source-code"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_github_net_redteam_tools_names.yar#L513-L526"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "f437195348452242adc8b55d6d517a17764c53188fa2de5cd15848fd23827381"
= 75
= 85
= "FILE"
= "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE"
strings:
$name = "RAT-NjRat-0.7d-modded-source-code" ascii wide
$compile = "AssemblyTitle" ascii wide
condition:
( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and all of them
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $name | text | "RAT-NjRat-0.7d-modded-source-code" | ascii wide |
| $compile | text | "AssemblyTitle" | ascii wide |
Condition
( uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 ) and all of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All 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.
Licence & attribution
Author: Arnim Rupp
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (stated in the rule's own meta)
“Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE”
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 2b7d1f75-0164-561e-8199-32c601cbca98
Tags:FILE
Related rules
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-30
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-08-22
- 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