Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Ginzostealer_Str

Finds samples of the Ginzo Stealer

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

What this rule detects

Finds samples of the Ginzo Stealer

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-ginzostealer-str.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Ginzostealer_Str : FILE
{
	meta:
		description = "Finds samples of the Ginzo Stealer"
		author = "Sekoia.io"
		id = "ef87e94b-9c53-44b4-b8a1-87d371a6d2cb"
		date = "2022-04-21"
		modified = "2024-12-19"
		reference = "https://blog.talosintelligence.com/2022/04/haskers-gang-zingostealer.html"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_ginzostealer_str.yar#L1-L20"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "b1c811a13cf0f632ac839b6a6de050fc59ffe3ed0704545feff02e13521ea53f"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str0 = "Ginzo.pdb" ascii
		$str1 = "Ginzo.exe" wide
		$str2 = "SELECT creation_utc,top_frame_site_key,host_key,name,value,encrypted_value,path,expires_utc,is_secure,is_httponly,last_access_utc,has_expires,is_persistent,priority,samesite,source_scheme,source_port,is_same_party FROM cookies" wide
		$str3 = "SELECT origin_url,action_url,username_element,username_value,password_element,password_value,submit_element,signon_realm,date_created,blacklisted_by_user,scheme,password_type,times_used,form_data,display_name,icon_url,federation_url,skip_zero_click,generation_upload_status,possible_username_pairs,id,date_last_used,moving_blocked_for,date_password_modified FROM logins" wide
		$str4 = "SELECT id,originAttributes,name,value,host,path,expiry,lastAccessed,creationTime,isSecure,isHttpOnly,inBrowserElement,sameSite,rawSameSite,schemeMap FROM moz_cookies" wide

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

Strings (5 patterns)

IdentifierTypeValueModifiers
$str0text"Ginzo.pdb"ascii
$str1text"Ginzo.exe"wide
$str2text"SELECT creation_utc,top_frame_site_key,host_key,name,value,encrypted_value,path,expires_utc,is_secure,is_httponly,last_access_utc,has_expires,is_persistent,pri …wide
$str3text"SELECT origin_url,action_url,username_element,username_value,password_element,password_value,submit_element,signon_realm,date_created,blacklisted_by_user,schem …wide
$str4text"SELECT id,originAttributes,name,value,host,path,expiry,lastAccessed,creationTime,isSecure,isHttpOnly,inBrowserElement,sameSite,rawSameSite,schemeMap FROM moz_c …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: ef87e94b-9c53-44b4-b8a1-87d371a6d2cb

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE