Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Guloader_Unpacker

GuLoader Unpacker

Suspicious / huntingSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2024-02-07
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

GuLoader Unpacker

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

Summary generated from the rule's metadata and condition.

Rule source

guloader-unpacker.yarDetection Rule License 1.1
rule SEKOIA_Guloader_Unpacker : FILE
{
	meta:
		description = "GuLoader Unpacker"
		author = "Sekoia.io"
		id = "dee4cad4-e3b4-4a12-860b-ff750b119fa8"
		date = "2024-02-07"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/guloader_unpacker.yar#L1-L20"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "6be9d7fa829480466aef2a7e78a7dadfac92f7774ab3374254305040c105496f"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$p1 = "([Parameter(Position = 0)] [Type[]] $" base64
		$p2 = "+=2){" base64
		$p3 = "}else {" base64

	condition:
		$p1 in ( filesize -30000 .. filesize ) and $p2 in ( filesize -30000 .. filesize ) and $p3 in ( filesize -30000 .. filesize ) and filesize > 300KB
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$p1text"([Parameter(Position = 0)] [Type[]] $"base64
$p2text"+=2){"base64
$p3text"}else {"base64

Condition

$p1 in ( filesize -30000 .. filesize ) and $p2 in ( filesize -30000 .. filesize ) and $p3 in ( filesize -30000 .. filesize ) and filesize > 300KB

In plain words (Heuristic)

  • The file must be larger than 300KB.
  • Pattern $p1 must be found within the range filesize -30000 .. filesize.
  • Pattern $p2 must be found within the range filesize -30000 .. filesize.
  • Pattern $p3 must be found within the range filesize -30000 .. filesize.

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: dee4cad4-e3b4-4a12-860b-ff750b119fa8

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE