YARA · Mandiant red team tool countermeasures
FIREEYE_RT_Hacktool_PY_Impacketobfuscation_2
wmiexec
- Auteur
- FireEye
- Date
- 2020-12-01
- Modifiée
- 2020-12-09
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
wmiexec
Elle définit 5 motifs (3 texte, 0 hex, 2 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
rule FIREEYE_RT_Hacktool_PY_Impacketobfuscation_2
{
meta:
= "wmiexec"
= "FireEye"
= "f1059f66-eaff-5866-bafb-c94236cf96a0"
= "2020-12-01"
= "2020-12-01"
= "2020-12-09"
= "https://github.com/mandiant/red_team_tool_countermeasures/"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/rules/IMPACKETOBF (Wmiexec)/production/yara/HackTool_PY_ImpacketObfuscation_2.yar#L4-L21"
= "https://github.com/mandiant/red_team_tool_countermeasures//blob/3561b71724dbfa3e2bb78106aaa2d7f8b892c43b/LICENSE.txt"
= "f3dd8aa567a01098a8a610529d892485"
= "ccbbe507798f16c7acf0780770fdb81b2e7dc333ab8bc51e6216816276c3f14b"
= 75
= 75
= ""
= 2
strings:
$s1 = "import random"
$s2 = "class WMIEXEC" nocase
$s3 = "class RemoteShell" nocase
$s4 = /=[\x09\x20]{0,32}str\(int\(time\.time\(\)\)[\x09\x20]{0,32}-[\x09\x20]{0,32}random\.randint\(\d{1,10}[\x09\x20]{0,32},[\x09\x20]{0,32}\d{1,10}\)\)[\x09\x20]{0,32}\+[\x09\x20]{0,32}str\(uuid\.uuid4\(\)\)\.split\([\x22\x27]\-[\x22\x27]\)\[0\]/
$s5 = /self\.__shell[\x09\x20]{0,32}=[\x09\x20]{0,32}[\x22\x27]cmd.exe[\x09\x20]{1,32}\/q[\x09\x20]{1,32}\/K [\x22\x27]/ nocase
condition:
all of them
}
Chaînes (5 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "import random" | |
| $s2 | texte | "class WMIEXEC" | nocase |
| $s3 | texte | "class RemoteShell" | nocase |
| $s4 | regex | /=[\x09\x20]{0,32}str\(int\(time\.time\(\)\)[\x09\x20]{0,32}-[\x09\x20]{0,32}random\.randint\(\d{1,10}[\x09\x20]{0,32},[\x09\x20]{0,32}\d{1,10}\)\)[\x09\x20]{0, … | |
| $s5 | regex | /self\.__shell[\x09\x20]{0,32}=[\x09\x20]{0,32}[\x22\x27]cmd.exe[\x09\x20]{1,32}\/q[\x09\x20]{1,32}\/K [\x22\x27]/ | nocase |
Condition
all of themEn clair (Heuristique)
- Tous les motifs de la règle doivent être trouvés.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Hashes d’échantillons
Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).
- f3dd8aa567a01098a8a610529d892485
Licence et attribution
Auteur : FireEye
Dépôt source : Mandiant red team tool countermeasures @ 3561b71724
Licence : BSD 2-Clause License (licence du dépôt)
Mention de copyright : Copyright (c) 2023, MANDIANT
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: f1059f66-eaff-5866-bafb-c94236cf96a0
Métadonnées
| rev | 2 |
|---|
Règles liées
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-12-08
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-12-08
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-11-25
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-12-08
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-12-01
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-11-25
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-11-25
- Outil offensifMandiant red team tool countermeasures· FireEye· 2020-12-08