YARA · ditekSHen detection
DITEKSHEN_MALWARE_Linux_Gobrat
Detects GobRAT
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects GobRAT
Associated malware family: Gobrat.
It defines 11 patterns (11 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-linux-gobrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Linux_Gobrat : FILE
{
meta:
= "Detects GobRAT"
= "ditekSHen"
= "0561fa99-24ee-5e02-ba54-17a1dd81daa4"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10044-L10062"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "070687c909b066e38f72b6421b77670e87476d7e1eb1ed8d41d027836629eb71"
= 75
= 75
= "FILE"
strings:
$x1 = "BotList" ascii
$x2 = "BotCount" ascii
$x3 = "/etc/services/zone/bot.log" ascii
$x4 = "aaa.com/bbb/me" ascii
$s1 = "encoding/gob." ascii
$s2 = ".GetMacAddress" ascii
$s3 = ".IpString2Uint32" ascii
$s4 = ".RegisterLogFile" ascii
$s5 = ".UniqueAppendString" ascii
$s6 = ".NewDaemon" ascii
$s7 = ".SimpleCommand" ascii
condition:
uint16( 0 ) == 0x457f and ( 3 of ( $x* ) or ( 2 of ( $x* ) and 3 of ( $s* ) ) or ( 1 of ( $x* ) and 5 of ( $s* ) ) or all of ( $s* ) )
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "BotList" | ascii |
| $x2 | text | "BotCount" | ascii |
| $x3 | text | "/etc/services/zone/bot.log" | ascii |
| $x4 | text | "aaa.com/bbb/me" | ascii |
| $s1 | text | "encoding/gob." | ascii |
| $s2 | text | ".GetMacAddress" | ascii |
| $s3 | text | ".IpString2Uint32" | ascii |
| $s4 | text | ".RegisterLogFile" | ascii |
| $s5 | text | ".UniqueAppendString" | ascii |
| $s6 | text | ".NewDaemon" | ascii |
| $s7 | text | ".SimpleCommand" | ascii |
Condition
uint16( 0 ) == 0x457f and ( 3 of ( $x* ) or ( 2 of ( $x* ) and 3 of ( $s* ) ) or ( 1 of ( $x* ) and 5 of ( $s* ) ) or all of ( $s* ) )In plain words (Heuristic)
- All patterns in ( $s* ) must match.
- At least 3 patterns in ( $x* ) must match.
- At least 2 patterns in ( $x* ) must match.
- At least 3 patterns in ( $s* ) must match.
- At least 1 patterns in ( $x* ) must match.
- At least 5 patterns in ( $s* ) 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: 0561fa99-24ee-5e02-ba54-17a1dd81daa4
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-06-09
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- 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