YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Njrat
Detects NjRAT / Bladabindi / NjRAT Golden
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects NjRAT / Bladabindi / NjRAT Golden
Familia de malware asociada: Njrat.
Objetivos: PE de Windows.
Define 10 patrones (7 de texto, 1 hex, 2 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
rule DITEKSHEN_MALWARE_Win_Njrat : FILE
{
meta:
= "Detects NjRAT / Bladabindi / NjRAT Golden"
= "ditekSHen"
= "078dea64-8f95-5939-a1fb-c0a888adcf0d"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5203-L5220"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "92d535a7c7f361b7a0901d0b99427ebc82a69577bfea73c04a7f9d51d2054b36"
= 75
= 75
= "FILE"
strings:
$x1 = /Njrat\s\d+\.\d+\sGolden\s/ wide
$s1 = /\sfirewall\s(add|delete)\sallowedprogram/ wide
$s2 = { 63 00 6d 00 64 00 2e 00 65 00 78 00 65 00 20 00 2f 00 (63|6b) 00 20 00 70 00 69 00 6e 00 67 }
$s3 = "Execute ERROR" wide
$s4 = "Download ERROR" wide
$s5 = "[kl]" fullword wide
$s6 = "UploadValues" fullword wide
$s7 = "winmgmts:\\\\.\\root\\SecurityCenter2" fullword wide
$s8 = "HideM" fullword wide
$s9 = "No Antivirus" fullword wide
condition:
uint16( 0 ) == 0x5a4d and 4 of them
}
Cadenas (10 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | regex | /Njrat\s\d+\.\d+\sGolden\s/ | wide |
| $s1 | regex | /\sfirewall\s(add|delete)\sallowedprogram/ | wide |
| $s2 | hex | { 63 00 6d 00 64 00 2e 00 65 00 78 00 65 00 20 00 2f 00 (63|6b) 00 20 00 70 00 69 00 6e 00 67 } | |
| $s3 | texto | "Execute ERROR" | wide |
| $s4 | texto | "Download ERROR" | wide |
| $s5 | texto | "[kl]" | fullword wide |
| $s6 | texto | "UploadValues" | fullword wide |
| $s7 | texto | "winmgmts:\\\\.\\root\\SecurityCenter2" | fullword wide |
| $s8 | texto | "HideM" | fullword wide |
| $s9 | texto | "No Antivirus" | fullword wide |
Condición
uint16( 0 ) == 0x5a4d and 4 of themEn palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 4 patrones de la regla.
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Referencias
Licencia y atribución
Autor: ditekSHen
Repositorio de origen: ditekSHen detection @ e76c93dcde
Licencia: BSD 2-Clause License (licencia del repositorio)
Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.
Id de la regla: 078dea64-8f95-5939-a1fb-c0a888adcf0d
Etiquetas:FILE
Reglas relacionadas
- 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
- SECUINFRA_DROPPER_Njrat_VBSSolo metadatosMalwareSecuInfra Falcon Team· SECUINFRA Falcon Team· 2022-02-27
- SECUINFRA_MAL_NjratSolo metadatosMalwareSecuInfra Falcon Team· SECUINFRA Falcon Team· 2022-02-27
- Herramienta ofensivaSignature Base (Florian Roth / Nextron)· Arnim Rupp· 2021-01-22
- Herramienta ofensivaSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-30