Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Trojan_Win_Grandoreiro

Finds Grandorerio samples based on the specific strings

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

What this rule detects

Finds Grandorerio samples based on the specific strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

trojan-win-grandoreiro.yarDetection Rule License 1.1
rule SEKOIA_Trojan_Win_Grandoreiro : FILE
{
	meta:
		description = "Finds Grandorerio samples based on the specific strings"
		author = "Sekoia.io"
		id = "e48c86a1-e34f-4945-817a-9c85198a77bb"
		date = "2022-08-24"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/trojan_win_grandoreiro.yar#L1-L26"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "7424478b0cdfe922c2f98bf42e505f22fb0700cfeb54912630ce404c59b05c5e"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$mut = "ZTP@11" wide
		$reg01 = "Software\\Embarcadero\\Locales" wide
		$reg02 = "Software\\CodeGear\\Locales" wide
		$reg03 = "Software\\Borland\\Locales" wide
		$reg04 = "Software\\Borland\\Delphi\\Locale" wide
		$reg05 = "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes" wide
		$str01 = "SELECT * FROM AntiVirusProduct" wide
		$str02 = "GetTickCount64" wide
		$str03 = "C:\\Program Files (x86)\\Embarcadero\\Studio\\20.0\\lib\\Clever Internet Suite" wide
		$str04 = "{43826D1E-E718-42EE-BC55-A1E261C37BFE}" wide

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

Strings (10 patterns)

IdentifierTypeValueModifiers
$muttext"ZTP@11"wide
$reg01text"Software\\Embarcadero\\Locales"wide
$reg02text"Software\\CodeGear\\Locales"wide
$reg03text"Software\\Borland\\Locales"wide
$reg04text"Software\\Borland\\Delphi\\Locale"wide
$reg05text"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes"wide
$str01text"SELECT * FROM AntiVirusProduct"wide
$str02text"GetTickCount64"wide
$str03text"C:\\Program Files (x86)\\Embarcadero\\Studio\\20.0\\lib\\Clever Internet Suite"wide
$str04text"{43826D1E-E718-42EE-BC55-A1E261C37BFE}"wide

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: e48c86a1-e34f-4945-817a-9c85198a77bb

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE