YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Wingo
Detects malicious Golang executables
- 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:
= "Detects malicious Golang executables"
= "ditekSHen"
= "bc0c84d6-7ea1-5234-89f6-98337900e044"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6130-L6141"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "423b1631ad625fd46a9d10f0ecdf24931cf62a2c1694da3ebdd38daad0a4f724"
= 75
= 73
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "Go build ID:" | ascii |
| $s2 | regex | /main\.[a-z]{9}Delete/ | fullword ascii |
| $s3 | regex | /main\.[a-z]{9}Update/ | fullword ascii |
| $s4 | regex | /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.
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).
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
Related rules
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06