YARA · Mandiant red team tool countermeasures
FIREEYE_RT_APT_Backdoor_Macos_GORAT_1
This rule is looking for specific strings associated with network activity found within the MacOS generated variant of GORAT
- Author
- FireEye
- Date
- 2020-12-08
- Modified
- 2020-12-09
- Score / Quality
- 75 / 75
What this rule detects
This rule is looking for specific strings associated with network activity found within the MacOS generated variant of GORAT
Targets: macOS Mach-O.
It defines 5 patterns (5 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule FIREEYE_RT_APT_Backdoor_Macos_GORAT_1 : FILE
{
meta:
= "This rule is looking for specific strings associated with network activity found within the MacOS generated variant of GORAT"
= "FireEye"
= "4646eadb-7acf-582f-9ad6-00f012ceed8a"
= "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_MacOS_GORAT_1.yar#L4-L19"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
= "68acf11f5e456744262ff31beae58526"
= "2df5f87d44968670511880d21ad184779d0561c7c426a5d6426bcefd0904a9b7"
= 75
= 75
= "FILE"
= 3
strings:
$s1 = "SID1=%s" ascii wide
$s2 = "http/http.dylib" ascii wide
$s3 = "Mozilla/" ascii wide
$s4 = "User-Agent" ascii wide
$s5 = "Cookie" ascii wide
condition:
(( uint32( 0 ) == 0xBEBAFECA ) or ( uint32( 0 ) == 0xFEEDFACE ) or ( uint32( 0 ) == 0xFEEDFACF ) or ( uint32( 0 ) == 0xCEFAEDFE ) ) and all of them
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "SID1=%s" | ascii wide |
| $s2 | text | "http/http.dylib" | ascii wide |
| $s3 | text | "Mozilla/" | ascii wide |
| $s4 | text | "User-Agent" | ascii wide |
| $s5 | text | "Cookie" | ascii wide |
Condition
(( uint32( 0 ) == 0xBEBAFECA ) or ( uint32( 0 ) == 0xFEEDFACE ) or ( uint32( 0 ) == 0xFEEDFACF ) or ( uint32( 0 ) == 0xCEFAEDFE ) ) and all of themIn plain words (Heuristic)
- The file must start with a Mach-O / fat binary magic — a macOS executable.
- 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.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 68acf11f5e456744262ff31beae58526
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: 4646eadb-7acf-582f-9ad6-00f012ceed8a
Metadata
| rev | 3 |
|---|
Tags:FILE
Related rules
- 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
- APT / threat actorMandiant red team tool countermeasures· FireEye· 2020-11-27