Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Loader_Win_Squirrelwaffle

Detect the Squirrelwaffle DLL

MalwareSquirrelwaffleSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2021-09-20
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detect the Squirrelwaffle DLL

Associated malware family: Squirrelwaffle.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

loader-win-squirrelwaffle.yarDetection Rule License 1.1
rule SEKOIA_Loader_Win_Squirrelwaffle : FILE
{
	meta:
		description = "Detect the Squirrelwaffle DLL"
		author = "Sekoia.io"
		id = "bea3125e-6e84-435f-855b-fd3239a0deac"
		date = "2021-09-20"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_squirrelwaffle.yar#L1-L16"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "ab1a95f09564d0417d5c06c578d4dc8d790ec09bc67716d8c9e5207262a0594d"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "AEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE" ascii
		$s2 = "c:\\equal\\True\\bird_Select\\780\\true.pdb" ascii

	condition:
		uint16( 0 ) == 0x5A4D and all of them
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$s1text"AEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE"ascii
$s2text"c:\\equal\\True\\bird_Select\\780\\true.pdb"ascii

Condition

uint16( 0 ) == 0x5A4D and all of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All 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: bea3125e-6e84-435f-855b-fd3239a0deac

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Squirrelwaffle rules