YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Pcrat
Detects PCRat / Gh0st
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects PCRat / Gh0st
Familia de malware asociada: Pcrat.
Objetivos: PE de Windows.
Define 20 patrones (20 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_Pcrat : FILE
{
meta:
= "Detects PCRat / Gh0st"
= "ditekSHen"
= "de5b3e08-16da-56e2-a0a4-d8bed5840804"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L8534-L8561"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "ad56d7d6a2bb6d09bc4530c31b51456b6bbca5def1810449fd2a31973cce18f8"
= 75
= 75
= "FILE"
strings:
$s1 = "ClearEventLogA" fullword ascii
$s2 = "NetUserAdd" fullword ascii
$s3 = "<H1>403 Forbidden</H1>" fullword ascii
$s4 = ":]%d-%d-%d %d:%d:%d" fullword ascii
$s5 = "Mozilla/4.0 (compatible)" fullword ascii
$s6 = "<Enter>" fullword ascii
$s7 = "\\cmd.exe" fullword ascii
$s8 = "Program Files\\Internet Explorer\\IEXPLORE.EXE" fullword ascii
$s9 = "Collegesoft ScenicPlayer" fullword wide
$a1 = "360tray.exe" fullword ascii
$a2 = "avp.exe" fullword ascii
$a3 = "RavMonD.exe" fullword ascii
$a4 = "360sd.exe" fullword ascii
$a5 = "Mcshield.exe" fullword ascii
$a6 = "egui.exe" fullword ascii
$a7 = "kxetray.exe" fullword ascii
$a8 = "knsdtray.exe" fullword ascii
$a9 = "TMBMSRV.exe" fullword ascii
$a10 = "avcenter.exe" fullword ascii
$a11 = "ashDisp.exe" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and 5 of ( $s* ) and 6 of ( $a* )
}
Cadenas (20 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "ClearEventLogA" | fullword ascii |
| $s2 | texto | "NetUserAdd" | fullword ascii |
| $s3 | texto | "<H1>403 Forbidden</H1>" | fullword ascii |
| $s4 | texto | ":]%d-%d-%d %d:%d:%d" | fullword ascii |
| $s5 | texto | "Mozilla/4.0 (compatible)" | fullword ascii |
| $s6 | texto | "<Enter>" | fullword ascii |
| $s7 | texto | "\\cmd.exe" | fullword ascii |
| $s8 | texto | "Program Files\\Internet Explorer\\IEXPLORE.EXE" | fullword ascii |
| $s9 | texto | "Collegesoft ScenicPlayer" | fullword wide |
| $a1 | texto | "360tray.exe" | fullword ascii |
| $a2 | texto | "avp.exe" | fullword ascii |
| $a3 | texto | "RavMonD.exe" | fullword ascii |
| $a4 | texto | "360sd.exe" | fullword ascii |
| $a5 | texto | "Mcshield.exe" | fullword ascii |
| $a6 | texto | "egui.exe" | fullword ascii |
| $a7 | texto | "kxetray.exe" | fullword ascii |
| $a8 | texto | "knsdtray.exe" | fullword ascii |
| $a9 | texto | "TMBMSRV.exe" | fullword ascii |
| $a10 | texto | "avcenter.exe" | fullword ascii |
| $a11 | texto | "ashDisp.exe" | fullword ascii |
Condición
uint16( 0 ) == 0x5a4d and 5 of ( $s* ) and 6 of ( $a* )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 5 patrones de ( $s* ).
- Deben coincidir al menos 6 patrones de ( $a* ).
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: de5b3e08-16da-56e2-a0a4-d8bed5840804
Etiquetas:FILE
Reglas relacionadas
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06