YARA · SEKOIA.IO Community
SEKOIA_Apt_Turla_Comlook
Detects Class and Method names used inside ComLook
- Autor
- Sekoia.io
- Fecha
- 2023-10-30
- Modificada
- 2024-12-19
- Puntuación / Calidad
- 75 / 80
Qué detecta esta regla
Detects Class and Method names used inside ComLook
Familia de malware asociada: Comlook.
Objetivos: PE de Windows.
Define 14 patrones (14 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
apt-turla-comlook.yarDetection Rule License 1.1
rule SEKOIA_Apt_Turla_Comlook : FILE
{
meta:
= "Detects Class and Method names used inside ComLook"
= "Sekoia.io"
= "c3bf886b-f952-47f9-aff6-3cd74c27077d"
= "2023-10-30"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_turla_comlook.yar#L1-L31"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "882a2efda4c3888c34a2802797c9eac4ab8b96774f2eea19e586ff9c8adb9292"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ClassName1 = "AgentConfig"
$ClassName2 = "CommandPerforming"
$MethodName1 = "CmdCommand"
$MethodName2 = "GetConfigCommand"
$MethodName3 = "GetFileCommand"
$MethodName4 = "PutFileCommand"
$MethodName5 = "SetConfigCommand"
$MethodName6 = "AgentProtocol"
$Log1 = "CONFIG_SERVERS_LIST_PARSING_ERROR" ascii wide
$Log2 = "GET_UIDS_TO_CHECK_PARSING_ERROR" ascii wide
$Log3 = "PAYLOAD_PARSING_FILEPATH_AND_FILE_ERROR" ascii wide
$Log4 = "COMMAND_EMPTY_ERROR" ascii wide
$Log5 = "IMAP_USERNAME_FORMAT_INCORRECT" ascii wide
$Log6 = "NO_MESSAGES_TO_RETRIEVE" ascii wide
condition:
uint16be( 0 ) == 0x4d5a and filesize < 10MB and any of ( $ClassName* ) and any of ( $MethodName* ) and any of ( $Log* )
}
Cadenas (14 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $ClassName1 | texto | "AgentConfig" | |
| $ClassName2 | texto | "CommandPerforming" | |
| $MethodName1 | texto | "CmdCommand" | |
| $MethodName2 | texto | "GetConfigCommand" | |
| $MethodName3 | texto | "GetFileCommand" | |
| $MethodName4 | texto | "PutFileCommand" | |
| $MethodName5 | texto | "SetConfigCommand" | |
| $MethodName6 | texto | "AgentProtocol" | |
| $Log1 | texto | "CONFIG_SERVERS_LIST_PARSING_ERROR" | ascii wide |
| $Log2 | texto | "GET_UIDS_TO_CHECK_PARSING_ERROR" | ascii wide |
| $Log3 | texto | "PAYLOAD_PARSING_FILEPATH_AND_FILE_ERROR" | ascii wide |
| $Log4 | texto | "COMMAND_EMPTY_ERROR" | ascii wide |
| $Log5 | texto | "IMAP_USERNAME_FORMAT_INCORRECT" | ascii wide |
| $Log6 | texto | "NO_MESSAGES_TO_RETRIEVE" | ascii wide |
Condición
uint16be( 0 ) == 0x4d5a and filesize < 10MB and any of ( $ClassName* ) and any of ( $MethodName* ) and any of ( $Log* )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- El archivo debe ocupar menos de 10MB (un límite barato que descarta archivos grandes).
- Debe coincidir al menos un patrón de ( $ClassName* ).
- Debe coincidir al menos un patrón de ( $MethodName* ).
- Debe coincidir al menos un patrón de ( $Log* ).
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: c3bf886b-f952-47f9-aff6-3cd74c27077d
Metadatos
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Etiquetas:FILE
Reglas relacionadas
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- 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