YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Graphicalproton_Rsockstun
Detects GraphicalProton custom rsockstun
- Author
- ditekShen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects GraphicalProton custom rsockstun
Associated malware family: Graphicalproton.
Targets: Windows PE.
It defines 8 patterns (8 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-graphicalproton-rsockstun.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Graphicalproton_Rsockstun : FILE
{
meta:
= "Detects GraphicalProton custom rsockstun"
= "ditekShen"
= "5efa85f6-7e73-53a1-92df-4cb975e62345"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11271-L11286"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "ca4d18160b89d82106310237cf81bba57a7f51be77a31d2f18ca8c2987972c2c"
= 75
= 75
= "FILE"
strings:
$m1 = "main.connectviaproxy" ascii
$m2 = "main.connectForSocks" ascii
$m3 = "main.listenForClients" ascii
$m4 = "main.listenForSocks" ascii
$s1 = "Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=" ascii
$s2 = "Server: nginx/1.14.1" ascii
$s3 = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36" ascii
$s4 = "wine_get" ascii
condition:
uint16( 0 ) == 0x5a4d and ( ( all of ( $m* ) and 2 of ( $s* ) ) or ( all of ( $s* ) and 1 of ( $m* ) ) or 7 of them )
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $m1 | text | "main.connectviaproxy" | ascii |
| $m2 | text | "main.connectForSocks" | ascii |
| $m3 | text | "main.listenForClients" | ascii |
| $m4 | text | "main.listenForSocks" | ascii |
| $s1 | text | "Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=" | ascii |
| $s2 | text | "Server: nginx/1.14.1" | ascii |
| $s3 | text | "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36" | ascii |
| $s4 | text | "wine_get" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( ( all of ( $m* ) and 2 of ( $s* ) ) or ( all of ( $s* ) and 1 of ( $m* ) ) or 7 of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $m* ) must match.
- All patterns in ( $s* ) must match.
- At least 2 patterns in ( $s* ) must match.
- At least 1 patterns in ( $m* ) must match.
- At least 7 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: 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: 5efa85f6-7e73-53a1-92df-4cb975e62345
Tags:FILE
Related rules
- 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
- MalwareditekSHen detection· ditekShen· 2020-11-06