Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Wingo

Detects malicious Golang executables

MalwareWingoditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 73

What this rule detects

Detects malicious Golang executables

Associated malware family: Wingo.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-wingo.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Wingo : FILE
{
	meta:
		description = "Detects malicious Golang executables"
		author = "ditekSHen"
		id = "bc0c84d6-7ea1-5234-89f6-98337900e044"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6130-L6141"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "423b1631ad625fd46a9d10f0ecdf24931cf62a2c1694da3ebdd38daad0a4f724"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "Go build ID:" ascii
		$s2 = /main\.[a-z]{9}Delete/ fullword ascii
		$s3 = /main\.[a-z]{9}Update/ fullword ascii
		$s4 = /main\.[a-z]{9}rundll/ fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( all of them and #s2 > 2 and #s3 > 2 and #s4 > 2 )
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$s1text"Go build ID:"ascii
$s2regex/main\.[a-z]{9}Delete/fullword ascii
$s3regex/main\.[a-z]{9}Update/fullword ascii
$s4regex/main\.[a-z]{9}rundll/fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( all of them and #s2 > 2 and #s3 > 2 and #s4 > 2 )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in the rule must match.
  • Pattern $s2 must occur > 2 times.
  • Pattern $s3 must occur > 2 times.
  • Pattern $s4 must occur > 2 times.

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: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: bc0c84d6-7ea1-5234-89f6-98337900e044

Tags:FILE