YARA · Mandiant red team tool countermeasures
FIREEYE_RT_APT_Hacktool_MSIL_WMISPY_2
wql searches
- Author
- FireEye
- Date
- 2020-12-08
- Modified
- 2020-12-09
- Score / Quality
- 75 / 75
What this rule detects
wql searches
Targets: Windows PE.
It defines 10 patterns (10 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
apt-hacktool-msil-wmispy-2.yarBSD 2-Clause License
rule FIREEYE_RT_APT_Hacktool_MSIL_WMISPY_2 : FILE
{
meta:
= "wql searches"
= "FireEye"
= "474af878-a657-54bc-a063-04532df928d4"
= "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/WMISPY/production/yara/APT_HackTool_MSIL_WMISPY_2.yar#L4-L24"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
= "3651f252d53d2f46040652788499d65a"
= "553fc1e536482a56b3228a5c9ebac843af9083e8ac864bf65c81b36a39ca5e5e"
= 75
= 75
= "FILE"
= 4
strings:
$MSIL = "_CorExeMain"
$str1 = "root\\cimv2" wide
$str2 = "root\\standardcimv2" wide
$str3 = "from MSFT_NetNeighbor" wide
$str4 = "from Win32_NetworkLoginProfile" wide
$str5 = "from Win32_IP4RouteTable" wide
$str6 = "from Win32_DCOMApplication" wide
$str7 = "from Win32_SystemDriver" wide
$str8 = "from Win32_Share" wide
$str9 = "from Win32_Process" wide
condition:
( uint16( 0 ) == 0x5A4D ) and ( uint32( uint32( 0x3C ) ) == 0x00004550 ) and $MSIL and all of ( $str* )
}
Strings (10 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $MSIL | text | "_CorExeMain" | |
| $str1 | text | "root\\cimv2" | wide |
| $str2 | text | "root\\standardcimv2" | wide |
| $str3 | text | "from MSFT_NetNeighbor" | wide |
| $str4 | text | "from Win32_NetworkLoginProfile" | wide |
| $str5 | text | "from Win32_IP4RouteTable" | wide |
| $str6 | text | "from Win32_DCOMApplication" | wide |
| $str7 | text | "from Win32_SystemDriver" | wide |
| $str8 | text | "from Win32_Share" | wide |
| $str9 | text | "from Win32_Process" | wide |
Condition
( uint16( 0 ) == 0x5A4D ) and ( uint32( uint32( 0x3C ) ) == 0x00004550 ) and $MSIL and all of ( $str* )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $str* ) must match.
- Pattern $MSIL 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.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 3651f252d53d2f46040652788499d65a
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: 474af878-a657-54bc-a063-04532df928d4
Metadata
| rev | 4 |
|---|
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-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