YARA · SEKOIA.IO Community
SEKOIA_Malware_Sugargh0St_Strings
Detects SugarGh0st based on strings
- Author
- Sekoia.io
- Date
- 2023-12-01
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects SugarGh0st based on strings
Targets: Windows PE.
It defines 4 patterns (4 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-sugargh0st-strings.yarDetection Rule License 1.1
rule SEKOIA_Malware_Sugargh0St_Strings : FILE
{
meta:
= "Detects SugarGh0st based on strings"
= "Sekoia.io"
= "51930498-b04a-4f13-8d14-ee975a28126e"
= "2023-12-01"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/malware_sugargh0st_strings.yar#L1-L20"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "b878b5d3b3f62952d79c0ea5811838f4e79302b85f25494e91dc730dec8e1d8d"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "%sd.%s /c \"%s\"" wide
$ = "[Num Lock]" wide
$ = "#32770" wide
$ = "]%s (%4d-%02d-%02d %02d:%02d:%02d)" wide
condition:
uint16be( 0 ) == 0x4d5a and filesize < 100KB and all of them
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "%sd.%s /c \"%s\"" | wide |
| $ | text | "[Num Lock]" | wide |
| $ | text | "#32770" | wide |
| $ | text | "]%s (%4d-%02d-%02d %02d:%02d:%02d)" | wide |
Condition
uint16be( 0 ) == 0x4d5a and filesize < 100KB and all of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 100KB (a cheap guard that skips large files).
- All 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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 51930498-b04a-4f13-8d14-ee975a28126e
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20