Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Raccoon_Str_Takemypainback

Detect Raccoon based on specific strings

MalwareRaccoonSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-10-03
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detect Raccoon based on specific strings

Associated malware family: Raccoon.

Targets: Windows PE.

It defines 5 patterns (5 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-raccoon-str-takemypainback.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Raccoon_Str_Takemypainback : FILE
{
	meta:
		description = "Detect Raccoon based on specific strings"
		author = "Sekoia.io"
		id = "2148636e-47c7-4bf2-8d1e-df68faf65111"
		date = "2022-10-03"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_raccoon_str_takemypainback.yar#L1-L19"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "50d30828dab7e197619eeac4ebd2ab6692a9ac40a5091e23642cd1bdde8e9910"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str0 = "\\ffcookies.txt" wide
		$str1 = "TakeMyPainBack" wide
		$str2 = "wallet.dat" wide
		$str3 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall" wide
		$str4 = "Network\\Cookies" wide

	condition:
		uint16( 0 ) == 0x5a4d and 4 of them
}

Strings (5 patterns)

IdentifierTypeValueModifiers
$str0text"\\ffcookies.txt"wide
$str1text"TakeMyPainBack"wide
$str2text"wallet.dat"wide
$str3text"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"wide
$str4text"Network\\Cookies"wide

Condition

uint16( 0 ) == 0x5a4d and 4 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 4 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.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 2148636e-47c7-4bf2-8d1e-df68faf65111

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Raccoon rules