YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Crylock
Detects CryLock ransomware
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 73
Ce que détecte cette règle
Detects CryLock ransomware
Famille de malware associée : Crylock.
Cibles : PE Windows.
Elle définit 25 motifs (24 texte, 1 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_Crylock : FILE
{
meta:
= "Detects CryLock ransomware"
= "ditekSHen"
= "296288d8-2fdd-592a-aef9-7d4853885594"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7151-L7186"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "dde35dd2c7e89212c4562f2dcf6a78d06fbb3d31150d49e6c48f758b07f1834f"
= 75
= 73
= "FILE"
strings:
$s1 = "Encrypted by BlackRabbit. (BR-" ascii
$s2 = "{ENCRYPTENDED}" ascii
$s3 = "{ENCRYPTSTART}" ascii
$s4 = "<%UNDECRYPT_DATETIME%>" ascii
$s5 = "<%RESERVE_CONTACT%>" ascii
$s6 = "how_to_decrypt.hta" ascii wide
$s7 = "END ENCRYPT ONLY EXTENATIONS" ascii
$s8 = "END UNENCRYPT EXTENATIONS" ascii
$s9 = "END COMMANDS LIST" ascii
$s10 = "END PROCESSES KILL LIST" ascii
$s11 = "END SERVICES STOP LIST" ascii
$s12 = "END PROCESSES WHITE LIST" ascii
$s13 = "END UNENCRYPT FILES LIST" ascii
$s14 = "END UNENCRYPT FOLDERS LIST" ascii
$s15 = "Encrypted files:" ascii
$s16 = { 65 78 74 65 6e 61 74 69 6f 6e 73 00 ff ff ff ff
06 00 00 00 63 6f 6e 66 69 67 00 00 ff ff ff ff
(0a|0d 0a) 00 00 00 63 6f 6e 66 69 67 2e 74 78
74 00 00 ff ff ff ff 03 00 00 00 68 74 61 }
$p1 = "-exclude" fullword
$p2 = "-makeff" fullword
$p3 = "-full" fullword
$p4 = "-nolocal" fullword
$p5 = "-nolan" fullword
$p6 = "\" -id \"" fullword
$p7 = "\" -wid \"" fullword
$p8 = "\"runas\"" fullword
$p9 = " -f -s -t 00" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or 6 of ( $p* ) )
}
Chaînes (25 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "Encrypted by BlackRabbit. (BR-" | ascii |
| $s2 | texte | "{ENCRYPTENDED}" | ascii |
| $s3 | texte | "{ENCRYPTSTART}" | ascii |
| $s4 | texte | "<%UNDECRYPT_DATETIME%>" | ascii |
| $s5 | texte | "<%RESERVE_CONTACT%>" | ascii |
| $s6 | texte | "how_to_decrypt.hta" | ascii wide |
| $s7 | texte | "END ENCRYPT ONLY EXTENATIONS" | ascii |
| $s8 | texte | "END UNENCRYPT EXTENATIONS" | ascii |
| $s9 | texte | "END COMMANDS LIST" | ascii |
| $s10 | texte | "END PROCESSES KILL LIST" | ascii |
| $s11 | texte | "END SERVICES STOP LIST" | ascii |
| $s12 | texte | "END PROCESSES WHITE LIST" | ascii |
| $s13 | texte | "END UNENCRYPT FILES LIST" | ascii |
| $s14 | texte | "END UNENCRYPT FOLDERS LIST" | ascii |
| $s15 | texte | "Encrypted files:" | ascii |
| $s16 | hex | { 65 78 74 65 6e 61 74 69 6f 6e 73 00 ff ff ff ff 06 00 00 00 63 6f 6e 66 69 67 00 00 ff ff ff ff (0a|0d 0a) 00 00 00 63 6f 6e … | |
| $p1 | texte | "-exclude" | fullword |
| $p2 | texte | "-makeff" | fullword |
| $p3 | texte | "-full" | fullword |
| $p4 | texte | "-nolocal" | fullword |
| $p5 | texte | "-nolan" | fullword |
| $p6 | texte | "\" -id \"" | fullword |
| $p7 | texte | "\" -wid \"" | fullword |
| $p8 | texte | "\"runas\"" | fullword |
| $p9 | texte | " -f -s -t 00" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or 6 of ( $p* ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 3 motifs de ( $s* ) doivent être trouvés.
- Au moins 6 motifs de ( $p* ) 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: 296288d8-2fdd-592a-aef9-7d4853885594
Tags:FILE
Règles liées
- TELEKOM_SECURITY_Crylock_BinaryMétadonnées seulesMalwareTelekom Security malware analysis· Thomas Barabosch, Telekom Security· 2021-06-28
- ARKBIRD_SOLG_RAN_Crylock_Oct_2020_1Métadonnées seulesMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2020-10-14
- TELEKOM_SECURITY_Crylock_HtaMétadonnées seulesMalwareTelekom Security malware analysis· Thomas Barabosch, Telekom Security· 2021-06-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