YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Lockfile
Detects LockFile ransomware
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 71
Ce que détecte cette règle
Detects LockFile ransomware
Famille de malware associée : Lockfile.
Cibles : PE Windows.
Elle définit 9 motifs (9 texte, 0 hex, 0 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 DITEKSHEN_MALWARE_Win_Lockfile : FILE
{
meta:
= "Detects LockFile ransomware"
= "ditekSHen"
= "762ac376-43ff-56d2-b279-2879ce6d8542"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7998-L8014"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "28c8aa8931d599e5a1860fe2ed0b8172e709dad1a48a319858a907fa775af293"
= 75
= 71
= "FILE"
strings:
$x1 = "LOCKFILE" fullword ascii
$x2 = "25a01bb859125507013a2fe9737d3c33" fullword ascii
$s1 = "</key>" fullword ascii
$s2 = "<computername>%s</computername>" fullword ascii
$s3 = "<blocknum>%d</blocknum>" fullword ascii
$s4 = "%s\\%s-%s-%d%s" fullword ascii
$s5 = ">RAC=OQD:S>P@:AO?R:EEOS:ARDD=N?EENSB" ascii wide
$m1 = "<title>LOCKFILE</title>" ascii wide nocase
$m2 = "<hta:application id=LOCKFILE applicationName=LOCKFILE" ascii wide nocase
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or all of ( $s* ) or ( 1 of ( $x* ) and ( 2 of ( $s* ) or 1 of ( $m* ) ) ) or ( 1 of ( $m* ) and ( 1 of ( $x* ) or 2 of ( $s* ) ) ) )
}
Chaînes (9 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $x1 | texte | "LOCKFILE" | fullword ascii |
| $x2 | texte | "25a01bb859125507013a2fe9737d3c33" | fullword ascii |
| $s1 | texte | "</key>" | fullword ascii |
| $s2 | texte | "<computername>%s</computername>" | fullword ascii |
| $s3 | texte | "<blocknum>%d</blocknum>" | fullword ascii |
| $s4 | texte | "%s\\%s-%s-%d%s" | fullword ascii |
| $s5 | texte | ">RAC=OQD:S>P@:AO?R:EEOS:ARDD=N?EENSB" | ascii wide |
| $m1 | texte | "<title>LOCKFILE</title>" | ascii wide nocase |
| $m2 | texte | "<hta:application id=LOCKFILE applicationName=LOCKFILE" | ascii wide nocase |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or all of ( $s* ) or ( 1 of ( $x* ) and ( 2 of ( $s* ) or 1 of ( $m* ) ) ) or ( 1 of ( $m* ) and ( 1 of ( $x* ) or 2 of ( $s* ) ) ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Tous les motifs de ( $x* ) doivent être trouvés.
- Tous les motifs de ( $s* ) doivent être trouvés.
- Au moins 1 motifs de ( $x* ) doivent être trouvés.
- Au moins 2 motifs de ( $s* ) doivent être trouvés.
- Au moins 1 motifs de ( $m* ) 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é.
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: 762ac376-43ff-56d2-b279-2879ce6d8542
Tags:FILE
Règles liées
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- ARKBIRD_SOLG_MAL_Loader_Lockfile_Aug_2021_1Métadonnées seulesMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-08-28
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06