YARA · WithSecure Labs IOCs
WITHSECURELABS_Andariel_Gopherrat
Detects GopherRAT samples
- Autor
- WithSecure
- Fecha
- 2026-01-22
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects GopherRAT samples
Objetivos: PE de Windows.
Define 8 patrones (7 de texto, 1 hex, 0 regex). Módulos YARA usados: pe.
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
Incluye los imports necesarios para compilarla por sí sola.
import "pe"
rule WITHSECURELABS_Andariel_Gopherrat
{
meta:
= "Detects GopherRAT samples"
= "WithSecure"
= "88627e61-43fa-5d5b-94f3-77d540131f90"
= "2026-01-22"
= "2026-01-22"
= "https://github.com/WithSecureLabs/iocs"
= "https://github.com/WithSecureLabs/iocs/blob/1a8384468dd292c6d2c5114c32e42dc0da1f5ae1/Andariel2025/andariel.yara#L86-L105"
= "https://github.com/WithSecureLabs/iocs/blob/1a8384468dd292c6d2c5114c32e42dc0da1f5ae1/LICENSE"
= "2a42590be19b4b9a258c63f683c724165d64cc7bf22e4b7e7dec3ff73ea9175c"
= 75
= 75
= ""
strings:
$cmdName1 = "GetMACHashID"
$cmdName2 = "startHeartbeat"
$cmdName3 = "encodeTo949"
$cmdName4 = "xorDecrypt"
$cmdName5 = "StartShell"
$cmdName6 = "getLogicalDrives"
$cmdName7 = "sendSocksCommand"
$xorKey = {357095A221F033AC}
condition:
pe.is_pe and ( 3 of ( $cmdName* ) or $xorKey )
}
Cadenas (8 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $cmdName1 | texto | "GetMACHashID" | |
| $cmdName2 | texto | "startHeartbeat" | |
| $cmdName3 | texto | "encodeTo949" | |
| $cmdName4 | texto | "xorDecrypt" | |
| $cmdName5 | texto | "StartShell" | |
| $cmdName6 | texto | "getLogicalDrives" | |
| $cmdName7 | texto | "sendSocksCommand" | |
| $xorKey | hex | {357095A221F033AC} |
Condición
pe.is_pe and ( 3 of ( $cmdName* ) or $xorKey )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 3 patrones de ( $cmdName* ).
- Usa el módulo pe.
- El patrón $xorKey debe estar presente.
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: WithSecure
Repositorio de origen: WithSecure Labs IOCs @ 1a8384468d
Licencia: BSD 2-Clause License (licencia del repositorio)
Aviso de copyright: Copyright (c) 2022, WithSecure Oyj
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: 88627e61-43fa-5d5b-94f3-77d540131f90
Reglas relacionadas
- Sospechoso / huntingWithSecure Labs IOCs· WithSecure· 2026-01-22
- MalwareWithSecure Labs IOCs· WithSecure· 2026-01-22
- MalwareWithSecure Labs IOCs· WithSecure· 2022-11-17
- GenéricaWithSecure Labs IOCs· WithSecure· 2026-01-22
- GenéricaWithSecure Labs IOCs· WithSecure· 2026-01-22
- GenéricaWithSecure Labs IOCs· WithSecure· 2026-01-22
- GenéricaWithSecure Labs IOCs· WithSecure· 2026-01-22
- GenéricaWithSecure Labs IOCs· WithSecure· 2026-01-22