YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Blacknet
Detects BlackNET RAT
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects BlackNET RAT
Familia de malware asociada: Blacknet.
Objetivos: PE de Windows.
Define 18 patrones (18 de texto, 0 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
rule DITEKSHEN_MALWARE_Win_Blacknet : FILE
{
meta:
= "Detects BlackNET RAT"
= "ditekSHen"
= "c1ece46a-3cd9-54aa-a105-1c5b19357a7e"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L2222-L2250"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "64e00325a5a6a595067c6133800e73d943f45e2783475c24ed4a9bd9937fe0d6"
= 75
= 75
= "FILE"
= "920079-920082"
= "920079-920082"
= "MALWARE.Win.Trojan.BlackNET"
strings:
$s1 = "SbieCtrl" fullword wide
$s2 = "SpyTheSpy" fullword wide
$s3 = "\\BlackNET.dat" fullword wide
$s4 = "StartDDOS" fullword wide
$s5 = "UDPAttack" fullword wide
$s6 = "ARMEAttack" fullword wide
$s7 = "TCPAttack" fullword wide
$s8 = "HTTPGetAttack" fullword wide
$s9 = "RetriveLogs" fullword wide
$s10 = "StealPassword" fullword wide
$s11 = "/create /f /sc ONSTART /RL HIGHEST /tn \"'" fullword wide
$b1 = "DeleteScript|BN|" fullword wide
$b2 = "|BN|Online" fullword wide
$b3 = "NewLog|BN|" fullword wide
$cnc1 = "/getCommand.php?id=" fullword wide
$cnc2 = "/upload.php?id=" fullword wide
$cnc3 = "connection.php?data=" fullword wide
$cnc4 = "/receive.php?command=" fullword wide
condition:
uint16( 0 ) == 0x5a4d and ( 9 of ( $s* ) or all of ( $cnc* ) or all of ( $b* ) or 12 of them )
}
Cadenas (18 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "SbieCtrl" | fullword wide |
| $s2 | texto | "SpyTheSpy" | fullword wide |
| $s3 | texto | "\\BlackNET.dat" | fullword wide |
| $s4 | texto | "StartDDOS" | fullword wide |
| $s5 | texto | "UDPAttack" | fullword wide |
| $s6 | texto | "ARMEAttack" | fullword wide |
| $s7 | texto | "TCPAttack" | fullword wide |
| $s8 | texto | "HTTPGetAttack" | fullword wide |
| $s9 | texto | "RetriveLogs" | fullword wide |
| $s10 | texto | "StealPassword" | fullword wide |
| $s11 | texto | "/create /f /sc ONSTART /RL HIGHEST /tn \"'" | fullword wide |
| $b1 | texto | "DeleteScript|BN|" | fullword wide |
| $b2 | texto | "|BN|Online" | fullword wide |
| $b3 | texto | "NewLog|BN|" | fullword wide |
| $cnc1 | texto | "/getCommand.php?id=" | fullword wide |
| $cnc2 | texto | "/upload.php?id=" | fullword wide |
| $cnc3 | texto | "connection.php?data=" | fullword wide |
| $cnc4 | texto | "/receive.php?command=" | fullword wide |
Condición
uint16( 0 ) == 0x5a4d and ( 9 of ( $s* ) or all of ( $cnc* ) or all of ( $b* ) or 12 of them )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $cnc* ).
- Deben coincidir todos los patrones de ( $b* ).
- Deben coincidir al menos 9 patrones de ( $s* ).
- Deben coincidir al menos 12 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: c1ece46a-3cd9-54aa-a105-1c5b19357a7e
Metadatos
| snort2_sid | 920079-920082 |
|---|---|
| snort3_sid | 920079-920082 |
| clamav_sig | MALWARE.Win.Trojan.BlackNET |
Etiquetas:FILE
Reglas relacionadas
- Herramienta ofensivaSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-30
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06