YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Gasket
Detects Gasket
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
Detects Gasket
Associated malware family: Gasket.
Targets: Windows PE.
It defines 23 patterns (23 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-gasket.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Gasket : FILE
{
meta:
= "Detects Gasket"
= "ditekSHen"
= "3afa131d-9c88-50df-a3b4-552db4a84e69"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7220-L7250"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "0279979915891fc8c813ba555120ee5705b53b234a808b5ca77bff35a082e376"
= 75
= 73
= "FILE"
strings:
$s1 = "main.checkGasket" ascii
$s2 = "main.connectGasket" ascii
$s3 = "/cert/trust/dev/stderr/dev/stdout/index.html" ascii
$f1 = ".SetPingHandler." ascii
$f2 = ".SetPongHandler." ascii
$f3 = ".computeMergeInfo." ascii
$f4 = ".computeDiscardInfo." ascii
$f5 = ".readPlatformMachineID." ascii
$f6 = ".(*Session).establishStream." ascii
$f7 = ".(*Session).handleGoAway." ascii
$f8 = ".(*Stream).processFlags." ascii
$f9 = ".(*Session).handlePing." ascii
$f10 = ".(*windowsService).Install." ascii
$f11 = ".(*windowsService).Uninstall." ascii
$f12 = ".(*windowsService).Status." ascii
$f13 = ".getStopTimeout." ascii
$f14 = ".DialContext." ascii
$f15 = ".WriteControl." ascii
$f16 = ".(*Server).authenticate." ascii
$f17 = ".(*Server).ServeConn." ascii
$f18 = ".(*TCPProxy).listen." ascii
$f19 = ".UserPassAuthenticator.Authenticate." ascii
$f20 = ".(*InfoPacket).XXX_" ascii
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $s* ) or 16 of ( $f* ) )
}
Strings (23 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "main.checkGasket" | ascii |
| $s2 | text | "main.connectGasket" | ascii |
| $s3 | text | "/cert/trust/dev/stderr/dev/stdout/index.html" | ascii |
| $f1 | text | ".SetPingHandler." | ascii |
| $f2 | text | ".SetPongHandler." | ascii |
| $f3 | text | ".computeMergeInfo." | ascii |
| $f4 | text | ".computeDiscardInfo." | ascii |
| $f5 | text | ".readPlatformMachineID." | ascii |
| $f6 | text | ".(*Session).establishStream." | ascii |
| $f7 | text | ".(*Session).handleGoAway." | ascii |
| $f8 | text | ".(*Stream).processFlags." | ascii |
| $f9 | text | ".(*Session).handlePing." | ascii |
| $f10 | text | ".(*windowsService).Install." | ascii |
| $f11 | text | ".(*windowsService).Uninstall." | ascii |
| $f12 | text | ".(*windowsService).Status." | ascii |
| $f13 | text | ".getStopTimeout." | ascii |
| $f14 | text | ".DialContext." | ascii |
| $f15 | text | ".WriteControl." | ascii |
| $f16 | text | ".(*Server).authenticate." | ascii |
| $f17 | text | ".(*Server).ServeConn." | ascii |
| $f18 | text | ".(*TCPProxy).listen." | ascii |
| $f19 | text | ".UserPassAuthenticator.Authenticate." | ascii |
| $f20 | text | ".(*InfoPacket).XXX_" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $s* ) or 16 of ( $f* ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $s* ) must match.
- At least 16 patterns in ( $f* ) 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: 3afa131d-9c88-50df-a3b4-552db4a84e69
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