YARA · Mandiant red team tool countermeasures
FIREEYE_RT_Trojan_Win_Generic_101
No description has been set in the source file - FireEye-RT
- Author
- FireEye
- Date
- 2020-11-25
- Modified
- 2020-12-09
- Score / Quality
- 75 / 75
What this rule detects
No description has been set in the source file - FireEye-RT
Targets: Windows PE.
It defines 5 patterns (2 text, 3 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule FIREEYE_RT_Trojan_Win_Generic_101 : FILE
{
meta:
= "No description has been set in the source file - FireEye-RT"
= "FireEye"
= "0290aaea-d65b-5883-97f9-549d107e3e1f"
= "2020-11-25"
= "2020-11-25"
= "2020-12-09"
= "https://github.com/mandiant/red_team_tool_countermeasures/"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/BEACON/supplemental/yara/Trojan_Win_Generic_101.yar#L4-L20"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
= "2e67c62bd0307c04af469ee8dcb220f2"
= "e530183f3cab01560b1abc91e2111e5d9e5aadc1c8134027ac07d8917f9419a0"
= 75
= 75
= "FILE"
= 3
strings:
$s0 = { 2A [1-16] 17 [1-16] 02 04 00 00 [1-16] FF 15 }
$s1 = { 81 7? [1-3] 02 04 00 00 7? [1-3] 83 7? [1-3] 17 7? [1-3] 83 7? [1-3] 2A 7? }
$s2 = { FF 15 [4-16] FF D? [1-16] 3D [1-24] 89 [1-8] E8 [4-16] 89 [1-8] F3 A4 [1-24] E8 }
$si1 = "PeekMessageA" fullword
$si2 = "PostThreadMessageA" fullword
condition:
( uint16( 0 ) == 0x5A4D ) and ( uint32( uint32( 0x3C ) ) == 0x00004550 ) and @s0 [ 1 ] < @s1 [ 1 ] and @s1 [ 1 ] < @s2 [ 1 ] and all of them
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s0 | hex | { 2A [1-16] 17 [1-16] 02 04 00 00 [1-16] FF 15 } | |
| $s1 | hex | { 81 7? [1-3] 02 04 00 00 7? [1-3] 83 7? [1-3] 17 7? [1-3] 83 7? [1-3] 2A 7? } | |
| $s2 | hex | { FF 15 [4-16] FF D? [1-16] 3D [1-24] 89 [1-8] E8 [4-16] 89 [1-8] F3 A4 [1-24] E8 } | |
| $si1 | text | "PeekMessageA" | fullword |
| $si2 | text | "PostThreadMessageA" | fullword |
Condition
( uint16( 0 ) == 0x5A4D ) and ( uint32( uint32( 0x3C ) ) == 0x00004550 ) and @s0 [ 1 ] < @s1 [ 1 ] and @s1 [ 1 ] < @s2 [ 1 ] and all of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- 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).
- 2e67c62bd0307c04af469ee8dcb220f2
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: 0290aaea-d65b-5883-97f9-549d107e3e1f
Metadata
| rev | 3 |
|---|
Tags:FILE
Related rules
- MalwareMandiant red team tool countermeasures· FireEye· 2020-12-08
- MalwareMandiant red team tool countermeasures· FireEye· 2020-12-18
- MalwareMandiant red team tool countermeasures· FireEye· 2020-12-18
- MalwareMandiant red team tool countermeasures· FireEye· 2020-12-18
- MalwareMandiant red team tool countermeasures· FireEye· 2020-12-08
- MalwareMandiant red team tool countermeasures· FireEye· 2020-12-03
- MalwareMandiant red team tool countermeasures· FireEye· 2020-12-03
- MalwareMandiant red team tool countermeasures· FireEye· 2020-11-25