YARA · SEKOIA.IO Community
SEKOIA_Hacktool_Win_Cookiekatz
Finds ChromeKatz (CookieKatz version) standalone samples based on the strings
- Author
- Sekoia.io
- Date
- 2024-10-30
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Finds ChromeKatz (CookieKatz version) standalone samples based on the strings
Targets: Windows PE.
It defines 20 patterns (20 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
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 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $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 |
Condition
uint16( 0 ) == 0x5A4D and 8 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 8 patterns in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- fef9fc33a788489af44b2f732c450d4ef018fbaced7f5471230b282dfd6f1169
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: a32769bb-4ec4-46c7-9402-21afdf8d4293
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-09-06
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-02-29
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-12-05
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-11-15
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-08-23
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-02-08
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-07-22
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-09-09