YARA · SEKOIA.IO Community
SEKOIA_Tool_Impersonate_Strings
Detects Impersonate
- Auteur
- Sekoia.io
- Date
- 2024-07-24
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Detects Impersonate
Cibles : PE Windows.
Elle définit 9 motifs (9 texte, 0 hex, 0 regex). Modules YARA utilisés : pe.
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
Inclut les imports nécessaires pour la compiler seule.
tool-impersonate-strings.yarDetection Rule License 1.1
import "pe"
rule SEKOIA_Tool_Impersonate_Strings : FILE
{
meta:
= "Detects Impersonate"
= "Sekoia.io"
= "2ab345a2-9366-4673-b398-a59ba6954af5"
= "2024-07-24"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_impersonate_strings.yar#L3-L26"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "63c46a2d97d0a8360351b8906665186c5ad2dcaa6f2edba6da7bf4de2ce00241"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "[*] Listing available tokens"
$ = "[ID: %2d][SESSION: %d][INTEGRITY: %-6ws][%-18ws][%-22ws] User: %ws"
$ = "[*] Impersonating %ws"
$ = "[!] Impersonation failed error: %d"
$ = "[*] Adding user %ls on %ls"
$ = "[!] Add user failed with error: %d"
$ = "[*] Adding user %ws to domain group %ws"
$ = "[!] Add user in domain %ws failed with error: %d"
$ = "[!] Couldn't change token session id (error: %d)"
condition:
uint16be( 0 ) == 0x4d5a and 3 of them or pe.imphash ( ) == "e14ce763114276674e22b7b8b637bd4b"
}
Chaînes (9 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $ | texte | "[*] Listing available tokens" | |
| $ | texte | "[ID: %2d][SESSION: %d][INTEGRITY: %-6ws][%-18ws][%-22ws] User: %ws" | |
| $ | texte | "[*] Impersonating %ws" | |
| $ | texte | "[!] Impersonation failed error: %d" | |
| $ | texte | "[*] Adding user %ls on %ls" | |
| $ | texte | "[!] Add user failed with error: %d" | |
| $ | texte | "[*] Adding user %ws to domain group %ws" | |
| $ | texte | "[!] Add user in domain %ws failed with error: %d" | |
| $ | texte | "[!] Couldn't change token session id (error: %d)" |
Condition
uint16be( 0 ) == 0x4d5a and 3 of them or pe.imphash ( ) == "e14ce763114276674e22b7b8b637bd4b"En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 3 motifs de la règle doivent être trouvés.
- Utilise le module pe.
- Vérifie le hash des imports PE (imphash).
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é.
Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.
Références
Licence et attribution
Auteur : Sekoia.io
Dépôt source : SEKOIA.IO Community @ a438a5901a
Licence : Detection Rule License 1.1 (licence du dépôt)
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: 2ab345a2-9366-4673-b398-a59ba6954af5
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2024-09-06
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2024-02-29
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2023-12-05
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2023-11-15
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2023-08-23
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2022-02-08
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2022-07-22
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2022-09-09