YARA · ditekSHen detection
DITEKSHEN_INDICATOR_TOOL_PWS_Mimikatz
Detects Mimikatz
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-09-25
- Score / Qualité
- 75 / 73
Ce que détecte cette règle
Detects Mimikatz
Famille de malware associée : Mimikatz.
Cibles : PE Windows.
Elle définit 23 motifs (15 texte, 7 hex, 1 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
indicator-tool-pws-mimikatz.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_TOOL_PWS_Mimikatz : FILE
{
meta:
= "Detects Mimikatz"
= "ditekSHen"
= "feb236c0-6e0d-5c2c-a050-cf1d000aaf38"
= "2020-11-06"
= "2024-09-25"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_tools.yar#L131-L164"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "42c9c78c88bb7c427d5f0bf1d3b0113205780142b499eb17858037ded0f2971e"
= 75
= 73
= "FILE"
strings:
$s1 = "mimilib.dll" ascii
$s2 = "mimidrv.sys" ascii
$s3 = "mimikatz.exe" ascii
$s4 = "\\mimidrv.pdb" ascii
$s5 = "mimikatz" ascii
$s6 = { 6d 00 69 00 6d 00 69 00 6b 00 61 00 74 00 7a }
$s7 = { 5c 00 6d 00 69 00 6d 00 69 00 64 00 72 00 76 }
$s8 = { 6d 00 69 00 6d 00 69 00 64 00 72 00 76 }
$s9 = "Lecture KIWI_MSV1_0_" ascii
$s10 = "Search for LSASS process" ascii
$f1 = "SspCredentialList" ascii
$f2 = "KerbGlobalLogonSessionTable" ascii
$f3 = "LiveGlobalLogonSessionList" ascii
$f4 = "TSGlobalCredTable" ascii
$f5 = "g_MasterKeyCacheList" ascii
$f6 = "l_LogSessList" ascii
$f7 = "lsasrv!" ascii
$f8 = "SekurLSA" ascii
$f9 = /Cached(Unlock|Interative|RemoteInteractive)/ ascii
$dll_1 = { c7 0? 00 00 01 00 [4-14] c7 0? 01 00 00 00 }
$dll_2 = { c7 0? 10 02 00 00 ?? 89 4? }
$sys_x86 = { a0 00 00 00 24 02 00 00 40 00 00 00 [0-4] b8 00 00 00 6c 02 00 00 40 00 00 00 }
$sys_x64 = { 88 01 00 00 3c 04 00 00 40 00 00 00 [0-4] e8 02 00 00 f8 02 00 00 40 00 00 00 }
condition:
uint16( 0 ) == 0x5a4d and ( 2 of ( $* ) or 3 of ( $f* ) or all of ( $dll_* ) or any of ( $sys_* ) )
}
Chaînes (23 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "mimilib.dll" | ascii |
| $s2 | texte | "mimidrv.sys" | ascii |
| $s3 | texte | "mimikatz.exe" | ascii |
| $s4 | texte | "\\mimidrv.pdb" | ascii |
| $s5 | texte | "mimikatz" | ascii |
| $s6 | hex | { 6d 00 69 00 6d 00 69 00 6b 00 61 00 74 00 7a } | |
| $s7 | hex | { 5c 00 6d 00 69 00 6d 00 69 00 64 00 72 00 76 } | |
| $s8 | hex | { 6d 00 69 00 6d 00 69 00 64 00 72 00 76 } | |
| $s9 | texte | "Lecture KIWI_MSV1_0_" | ascii |
| $s10 | texte | "Search for LSASS process" | ascii |
| $f1 | texte | "SspCredentialList" | ascii |
| $f2 | texte | "KerbGlobalLogonSessionTable" | ascii |
| $f3 | texte | "LiveGlobalLogonSessionList" | ascii |
| $f4 | texte | "TSGlobalCredTable" | ascii |
| $f5 | texte | "g_MasterKeyCacheList" | ascii |
| $f6 | texte | "l_LogSessList" | ascii |
| $f7 | texte | "lsasrv!" | ascii |
| $f8 | texte | "SekurLSA" | ascii |
| $f9 | regex | /Cached(Unlock|Interative|RemoteInteractive)/ | ascii |
| $dll_1 | hex | { c7 0? 00 00 01 00 [4-14] c7 0? 01 00 00 00 } | |
| $dll_2 | hex | { c7 0? 10 02 00 00 ?? 89 4? } | |
| $sys_x86 | hex | { a0 00 00 00 24 02 00 00 40 00 00 00 [0-4] b8 00 00 00 6c 02 00 00 40 00 00 00 } | |
| $sys_x64 | hex | { 88 01 00 00 3c 04 00 00 40 00 00 00 [0-4] e8 02 00 00 f8 02 00 00 40 00 00 00 } |
Condition
uint16( 0 ) == 0x5a4d and ( 2 of ( $* ) or 3 of ( $f* ) or all of ( $dll_* ) or any of ( $sys_* ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Tous les motifs de ( $dll_* ) doivent être trouvés.
- Au moins un motif de ( $sys_* ) doit être trouvé.
- Au moins 2 motifs de ( $* ) doivent être trouvés.
- Au moins 3 motifs de ( $f* ) 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é.
Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.
Références
Licence et attribution
Auteur : ditekSHen
Dépôt source : ditekSHen detection @ e76c93dcde
Licence : BSD 2-Clause License (licence du dépôt)
Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
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: feb236c0-6e0d-5c2c-a050-cf1d000aaf38
Tags:FILE
Règles liées
- Outil offensifSignature Base (Florian Roth / Nextron)· Benjamin DELPY (gentilkiwi)· 2022-11-16
- Outil offensifSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-08-09
- Outil offensifSEKOIA.IO Community· Sekoia.io· 2022-07-22
- Outil offensifMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- Outil offensifSignature Base (Florian Roth / Nextron)· SBousseaden· 2020-08-26
- SBOUSSEADEN_Mimikatz_KiwikeyMétadonnées seulesOutil offensifSamir Bousseaden (YaraHunts)· SBousseaden· 2020-08-08
- SBOUSSEADEN_Mimikatz_Memssp_HookfnMétadonnées seulesOutil offensifSamir Bousseaden (YaraHunts)· SBousseaden· 2020-08-26
- Suspect / chasseditekSHen detection· ditekSHen· 2023-08-22