YARA · SEKOIA.IO Community
SEKOIA_Hacktool_Win_Cookiekatz
Finds ChromeKatz (CookieKatz version) standalone samples based on the strings
- Autor
- Sekoia.io
- Fecha
- 2024-10-30
- Modificada
- 2024-12-19
- Puntuación / Calidad
- 75 / 80
Qué detecta esta regla
Finds ChromeKatz (CookieKatz version) standalone samples based on the strings
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 SEKOIA_Hacktool_Win_Cookiekatz : FILE
{
meta:
= "Finds ChromeKatz (CookieKatz version) standalone samples based on the strings"
= "Sekoia.io"
= "a32769bb-4ec4-46c7-9402-21afdf8d4293"
= "2024-10-30"
= "2024-12-19"
= "https://github.com/Meckazin/ChromeKatz"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/hacktool_win_cookiekatz.yar#L1-L36"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "fef9fc33a788489af44b2f732c450d4ef018fbaced7f5471230b282dfd6f1169"
= "a030f551d0f3dedf0f19e22b415aa87dd1c43ab2242db8b5cad14ae6b7695b3a"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str01 = "CookieKatz.exe" ascii
$str02 = "--utility-sub-type=network.mojom.NetworkService" wide
$str03 = "chrome.dll" wide
$str04 = "msedge.dll" wide
$str05 = "msedgewebview2.exe" wide
$str06 = "Failed to read cookie struct" wide
$str07 = "Failed to read the root node from given address" wide
$str08 = "Error reading left node" wide
$str09 = "By Meckazin" ascii
$str10 = "By default targets first available Chrome process" ascii
$str11 = "Kittens love cookies too!" ascii
$str12 = "Attempting to read the cookie value from address: 0x%p" ascii
$str13 = "szCookieMonster" ascii
$str14 = "[*] Targeting Chrome" ascii
$str15 = "[*] Targeting Edge" ascii
$str16 = "[*] This Cookie map was empty" ascii
$str17 = "[+] Found browser process: %d" ascii wide
$str18 = "[*] Targeting process PID: %d" wide
$str19 = "[*] Found CookieMonster on 0x%p" wide
$str20 = "[*] CookieMap should be found in address 0x%p" wide
condition:
uint16( 0 ) == 0x5A4D and 8 of them
}
Cadenas (20 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $str01 | texto | "CookieKatz.exe" | ascii |
| $str02 | texto | "--utility-sub-type=network.mojom.NetworkService" | wide |
| $str03 | texto | "chrome.dll" | wide |
| $str04 | texto | "msedge.dll" | wide |
| $str05 | texto | "msedgewebview2.exe" | wide |
| $str06 | texto | "Failed to read cookie struct" | wide |
| $str07 | texto | "Failed to read the root node from given address" | wide |
| $str08 | texto | "Error reading left node" | wide |
| $str09 | texto | "By Meckazin" | ascii |
| $str10 | texto | "By default targets first available Chrome process" | ascii |
| $str11 | texto | "Kittens love cookies too!" | ascii |
| $str12 | texto | "Attempting to read the cookie value from address: 0x%p" | ascii |
| $str13 | texto | "szCookieMonster" | ascii |
| $str14 | texto | "[*] Targeting Chrome" | ascii |
| $str15 | texto | "[*] Targeting Edge" | ascii |
| $str16 | texto | "[*] This Cookie map was empty" | ascii |
| $str17 | texto | "[+] Found browser process: %d" | ascii wide |
| $str18 | texto | "[*] Targeting process PID: %d" | wide |
| $str19 | texto | "[*] Found CookieMonster on 0x%p" | wide |
| $str20 | texto | "[*] CookieMap should be found in address 0x%p" | wide |
Condición
uint16( 0 ) == 0x5A4D and 8 of themEn palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 8 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
Hashes de muestras
Hashes de las muestras que el autor lista en los metadatos de la regla (búscalos en tu plataforma de threat intelligence).
- fef9fc33a788489af44b2f732c450d4ef018fbaced7f5471230b282dfd6f1169
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: a32769bb-4ec4-46c7-9402-21afdf8d4293
Metadatos
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Etiquetas:FILE
Reglas relacionadas
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2024-09-06
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2024-02-29
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2023-12-05
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2023-11-15
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2023-08-23
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2022-02-08
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2022-07-22
- Herramienta ofensivaSEKOIA.IO Community· Sekoia.io· 2022-09-09