YARA · SEKOIA.IO Community
SEKOIA_Hacktool_Win_Cookiekatz
Finds ChromeKatz (CookieKatz version) standalone samples based on the strings
- Autor
- Sekoia.io
- Datum
- 2024-10-30
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Finds ChromeKatz (CookieKatz version) standalone samples based on the strings
Ziele: Windows-PE.
Sie definiert 20 Muster (20 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
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
}
Strings (20 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $str01 | Text | "CookieKatz.exe" | ascii |
| $str02 | Text | "--utility-sub-type=network.mojom.NetworkService" | wide |
| $str03 | Text | "chrome.dll" | wide |
| $str04 | Text | "msedge.dll" | wide |
| $str05 | Text | "msedgewebview2.exe" | wide |
| $str06 | Text | "Failed to read cookie struct" | wide |
| $str07 | Text | "Failed to read the root node from given address" | wide |
| $str08 | Text | "Error reading left node" | wide |
| $str09 | Text | "By Meckazin" | ascii |
| $str10 | Text | "By default targets first available Chrome process" | ascii |
| $str11 | Text | "Kittens love cookies too!" | ascii |
| $str12 | Text | "Attempting to read the cookie value from address: 0x%p" | ascii |
| $str13 | Text | "szCookieMonster" | ascii |
| $str14 | Text | "[*] Targeting Chrome" | ascii |
| $str15 | Text | "[*] Targeting Edge" | ascii |
| $str16 | Text | "[*] This Cookie map was empty" | ascii |
| $str17 | Text | "[+] Found browser process: %d" | ascii wide |
| $str18 | Text | "[*] Targeting process PID: %d" | wide |
| $str19 | Text | "[*] Found CookieMonster on 0x%p" | wide |
| $str20 | Text | "[*] CookieMap should be found in address 0x%p" | wide |
Bedingung
uint16( 0 ) == 0x5A4D and 8 of themIn Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Mindestens 8 Muster aus der Regel müssen treffen.
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Referenzen
Proben-Hashes
Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).
- fef9fc33a788489af44b2f732c450d4ef018fbaced7f5471230b282dfd6f1169
Lizenz & Namensnennung
Autor: Sekoia.io
Quell-Repository: SEKOIA.IO Community @ a438a5901a
Lizenz: Detection Rule License 1.1 (Repository-Lizenz)
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: a32769bb-4ec4-46c7-9402-21afdf8d4293
Metadaten
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Verwandte Regeln
- HacktoolSEKOIA.IO Community· Sekoia.io· 2024-09-06
- HacktoolSEKOIA.IO Community· Sekoia.io· 2024-02-29
- HacktoolSEKOIA.IO Community· Sekoia.io· 2023-12-05
- HacktoolSEKOIA.IO Community· Sekoia.io· 2023-11-15
- HacktoolSEKOIA.IO Community· Sekoia.io· 2023-08-23
- HacktoolSEKOIA.IO Community· Sekoia.io· 2022-02-08
- HacktoolSEKOIA.IO Community· Sekoia.io· 2022-07-22
- HacktoolSEKOIA.IO Community· Sekoia.io· 2022-09-09