YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Xehook_Str
Finds XehookStealer standalone samples based on specific strings.
- Autor
- Sekoia.io
- Fecha
- 2024-06-12
- Modificada
- 2024-12-19
- Puntuación / Calidad
- 75 / 80
Qué detecta esta regla
Finds XehookStealer standalone samples based on specific strings.
Objetivos: PE de Windows.
Define 17 patrones (17 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
infostealer-win-xehook-str.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Xehook_Str : FILE
{
meta:
= "Finds XehookStealer standalone samples based on specific strings."
= "Sekoia.io"
= "fa76988d-f0a2-4fc2-a122-c104fd585f34"
= "2024-06-12"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_xehook_str.yar#L1-L32"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "543ec3b523e5f00d3c285e453c8d11f3d5c7778b2986b7fe03f2d62ff18c2778"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str01 = "xehook" ascii
$str02 = "Classes.LogRecord" ascii
$str03 = "__ _____| |__ ___ ___ | | __" wide
$str04 = "\\ \\/ / _ \\ '_ \\ / _ \\ / _ \\| |/ /" wide
$str05 = " > < __/ | | | (_) | (_) | <" wide
$str06 = "/_/\\_\\___|_| |_|\\___/ \\___/|_|\\_\\" wide
$str07 = "https://t.me/xehook" wide
$str08 = "About PC.txt" wide
$str09 = "Browser: {4} v{5} ({6})" wide
$str10 = "http://ip-api.com/json/?fields=11827" wide
$str11 = "{0}gate.php?id={1}&build={2}&passwords={3}&cookies={4}" wide
$str12 = "getjson.php?id=" wide
$com01 = "CheckRemoteDebuggerPresent" ascii
$com02 = "get_CurrentThread" ascii
$com03 = "get_InstalledInputLanguages" ascii
$com04 = "get_Ticks" ascii
$com05 = "System.Security.Cryptography" ascii
condition:
uint16( 0 ) == 0x5A4D and 2 of ( $str* ) and 4 of ( $com* )
}
Cadenas (17 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $str01 | texto | "xehook" | ascii |
| $str02 | texto | "Classes.LogRecord" | ascii |
| $str03 | texto | "__ _____| |__ ___ ___ | | __" | wide |
| $str04 | texto | "\\ \\/ / _ \\ '_ \\ / _ \\ / _ \\| |/ /" | wide |
| $str05 | texto | " > < __/ | | | (_) | (_) | <" | wide |
| $str06 | texto | "/_/\\_\\___|_| |_|\\___/ \\___/|_|\\_\\" | wide |
| $str07 | texto | "https://t.me/xehook" | wide |
| $str08 | texto | "About PC.txt" | wide |
| $str09 | texto | "Browser: {4} v{5} ({6})" | wide |
| $str10 | texto | "http://ip-api.com/json/?fields=11827" | wide |
| $str11 | texto | "{0}gate.php?id={1}&build={2}&passwords={3}&cookies={4}" | wide |
| $str12 | texto | "getjson.php?id=" | wide |
| $com01 | texto | "CheckRemoteDebuggerPresent" | ascii |
| $com02 | texto | "get_CurrentThread" | ascii |
| $com03 | texto | "get_InstalledInputLanguages" | ascii |
| $com04 | texto | "get_Ticks" | ascii |
| $com05 | texto | "System.Security.Cryptography" | ascii |
Condición
uint16( 0 ) == 0x5A4D and 2 of ( $str* ) and 4 of ( $com* )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 2 patrones de ( $str* ).
- Deben coincidir al menos 4 patrones de ( $com* ).
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.
Referencias
Licencia y atribución
Autor: Sekoia.io
Repositorio de origen: SEKOIA.IO Community @ a438a5901a
Licencia: Detection Rule License 1.1 (licencia del repositorio)
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: fa76988d-f0a2-4fc2-a122-c104fd585f34
Metadatos
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Etiquetas:FILE
Reglas relacionadas
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-03-06