Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Loader_Win_Gcleaner

Detect the GCleaner loader using specific strings

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

What this rule detects

Detect the GCleaner loader using specific strings

Associated malware family: Gcleaner.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

loader-win-gcleaner.yarDetection Rule License 1.1
rule SEKOIA_Loader_Win_Gcleaner : FILE
{
	meta:
		description = "Detect the GCleaner loader using specific strings"
		author = "Sekoia.io"
		id = "0c085da3-ec77-4141-a927-bef1578a6dee"
		date = "2022-10-11"
		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_gcleaner.yar#L1-L22"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "f38aaab2911e4e901780bb6df2c58f02fa80d3e39fb56f60072285d0a929ba23"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "G-Cleaner can clean unneeded files, settings, and Registry entries" ascii
		$str02 = "3.  Click \"Run G-Cleaner\"" ascii
		$str03 = "Garbage_Cleaner" ascii
		$str04 = "GCleaner.Properties" ascii
		$str05 = "SOFTWARE\\GCleaner\\Install" wide
		$str06 = "SOFTWARE\\GCleaner\\Trial" wide
		$str07 = "SOFTWARE\\GCleaner\\License" wide
		$str08 = "G-Cleaner activation" wide

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

Strings (8 patterns)

IdentifierTypeValueModifiers
$str01text"G-Cleaner can clean unneeded files, settings, and Registry entries"ascii
$str02text"3. Click \"Run G-Cleaner\""ascii
$str03text"Garbage_Cleaner"ascii
$str04text"GCleaner.Properties"ascii
$str05text"SOFTWARE\\GCleaner\\Install"wide
$str06text"SOFTWARE\\GCleaner\\Trial"wide
$str07text"SOFTWARE\\GCleaner\\License"wide
$str08text"G-Cleaner activation"wide

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 6 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: 0c085da3-ec77-4141-a927-bef1578a6dee

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE