YARA · SEKOIA.IO Community
SEKOIA_Tool_Impersonate_Strings
Detects Impersonate
- Autor
- Sekoia.io
- Datum
- 2024-07-24
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Detects Impersonate
Ziele: Windows-PE.
Sie definiert 9 Muster (9 Text, 0 Hex, 0 Regex). Verwendete YARA-Module: pe.
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
Enthält die Imports, die zum eigenständigen Kompilieren nötig sind.
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"
}
Strings (9 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $ | Text | "[*] Listing available tokens" | |
| $ | Text | "[ID: %2d][SESSION: %d][INTEGRITY: %-6ws][%-18ws][%-22ws] User: %ws" | |
| $ | Text | "[*] Impersonating %ws" | |
| $ | Text | "[!] Impersonation failed error: %d" | |
| $ | Text | "[*] Adding user %ls on %ls" | |
| $ | Text | "[!] Add user failed with error: %d" | |
| $ | Text | "[*] Adding user %ws to domain group %ws" | |
| $ | Text | "[!] Add user in domain %ws failed with error: %d" | |
| $ | Text | "[!] Couldn't change token session id (error: %d)" |
Bedingung
uint16be( 0 ) == 0x4d5a and 3 of them or pe.imphash ( ) == "e14ce763114276674e22b7b8b637bd4b"In Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Mindestens 3 Muster aus der Regel müssen treffen.
- Nutzt das Modul pe.
- Prüft den PE-Import-Hash (imphash).
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.
Referenzen
Lizenz & Namensnennung
Autor: Sekoia.io
Quell-Repository: SEKOIA.IO Community @ a438a5901a
Lizenz: Detection Rule License 1.1 (Repository-Lizenz)
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 2ab345a2-9366-4673-b398-a59ba6954af5
Metadaten
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Verwandte Regeln
- HacktoolSEKOIA.IO Community· Sekoia.io· 2024-09-06
- HacktoolSEKOIA.IO Community· Sekoia.io· 2024-02-29
- HacktoolSEKOIA.IO Community· Sekoia.io· 2023-12-05
- HacktoolSEKOIA.IO Community· Sekoia.io· 2023-11-15
- HacktoolSEKOIA.IO Community· Sekoia.io· 2023-08-23
- HacktoolSEKOIA.IO Community· Sekoia.io· 2022-02-08
- HacktoolSEKOIA.IO Community· Sekoia.io· 2022-07-22
- HacktoolSEKOIA.IO Community· Sekoia.io· 2022-09-09