YARA · Mandiant red team tool countermeasures
FIREEYE_RT_APT_Backdoor_Win_Gorat_Memory
Identifies GoRat malware in memory based on strings.
- Author
- FireEye
- Date
- 2020-12-08
- Modified
- 2020-12-09
- Score / Quality
- 75 / 75
What this rule detects
Identifies GoRat malware in memory based on strings.
It defines 13 patterns (13 text, 0 hex, 0 regex).
YARA-X says: warning[duplicate_pattern_value]: duplicate pattern value
Summary generated from the rule's metadata and condition.
Rule source
rule FIREEYE_RT_APT_Backdoor_Win_Gorat_Memory
{
meta:
= "Identifies GoRat malware in memory based on strings."
= "FireEye"
= "16fb1db7-711c-5d8d-9203-738c94f253fe"
= "2020-12-08"
= "2020-12-09"
= "https://github.com/mandiant/red_team_tool_countermeasures/"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/REDFLARE (Gorat)/production/yara/APT_Backdoor_Win_GoRat_Memory.yar#L4-L27"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
= "3b926b5762e13ceec7ac3a61e85c93bb"
= "88272e59325d106f96d6b6f1d57daf968823c1e760067dee0334c66c521ce8c2"
= 75
= 75
= ""
= 1
strings:
$murica = "murica" fullword
$rat1 = "rat/modules/socks.(*HTTPProxyClient).beacon" fullword
$rat2 = "rat.(*Core).generateBeacon" fullword
$rat3 = "rat.gJitter" fullword
$rat4 = "rat/comms.(*protectedChannel).SendCmdResponse" fullword
$rat5 = "rat/modules/filemgmt.(*acquire).NewCommandExecution" fullword
$rat6 = "rat/modules/latlisten.(*latlistensrv).handleCmd" fullword
$rat7 = "rat/modules/netsweeper.(*netsweeperRunner).runSweep" fullword
$rat8 = "rat/modules/netsweeper.(*Pinger).listen" fullword
$rat9 = "rat/modules/socks.(*HTTPProxyClient).beacon" fullword
$rat10 = "rat/platforms/win/dyloader.(*memoryLoader).ExecutePluginFunction" fullword
$rat11 = "rat/platforms/win/modules/namedpipe.(*dummy).Open" fullword
$winblows = "rat/platforms/win.(*winblows).GetStage" fullword
condition:
$winblows or #murica > 10 or 3 of ( $rat* )
}
Strings (13 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $murica | text | "murica" | fullword |
| $rat1 | text | "rat/modules/socks.(*HTTPProxyClient).beacon" | fullword |
| $rat2 | text | "rat.(*Core).generateBeacon" | fullword |
| $rat3 | text | "rat.gJitter" | fullword |
| $rat4 | text | "rat/comms.(*protectedChannel).SendCmdResponse" | fullword |
| $rat5 | text | "rat/modules/filemgmt.(*acquire).NewCommandExecution" | fullword |
| $rat6 | text | "rat/modules/latlisten.(*latlistensrv).handleCmd" | fullword |
| $rat7 | text | "rat/modules/netsweeper.(*netsweeperRunner).runSweep" | fullword |
| $rat8 | text | "rat/modules/netsweeper.(*Pinger).listen" | fullword |
| $rat9 | text | "rat/modules/socks.(*HTTPProxyClient).beacon" | fullword |
| $rat10 | text | "rat/platforms/win/dyloader.(*memoryLoader).ExecutePluginFunction" | fullword |
| $rat11 | text | "rat/platforms/win/modules/namedpipe.(*dummy).Open" | fullword |
| $winblows | text | "rat/platforms/win.(*winblows).GetStage" | fullword |
Condition
$winblows or #murica > 10 or 3 of ( $rat* )In plain words (Heuristic)
- At least 3 patterns in ( $rat* ) must match.
- Pattern $murica must occur > 10 times.
- Pattern $winblows must be present.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 3b926b5762e13ceec7ac3a61e85c93bb
Licence & attribution
Author: FireEye
Source repository: Mandiant red team tool countermeasures @ 3561b71724
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright (c) 2023, MANDIANT
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 16fb1db7-711c-5d8d-9203-738c94f253fe
Metadata
| rev | 1 |
|---|
Related rules
- APT / threat actorMandiant red team tool countermeasures· FireEye· 2020-12-08
- APT / threat actorMandiant red team tool countermeasures· FireEye· 2020-12-08
- APT / threat actorMandiant red team tool countermeasures· FireEye· 2020-12-02
- APT / threat actorMandiant red team tool countermeasures· FireEye· 2020-12-02
- APT / threat actorMandiant red team tool countermeasures· FireEye· 2020-11-27
- APT / threat actorMandiant red team tool countermeasures· FireEye· 2020-12-02
- APT / threat actorMandiant red team tool countermeasures· FireEye· 2020-12-02
- APT / threat actorMandiant red team tool countermeasures· FireEye· 2020-11-27