YARA · BlackBerry Research & Intelligence (via Open-Source-YARA-rules)
BLACKBERRY_Mal_Win32_Chaosransomware_2022
Detects Ransomware Built by Chaos Ransomware Builder
- Auteur
- BlackBerry Threat Research
- Date
- 2022-05-10
- Modifiée
- 2022-07-07
- Score / Qualité
- 75 / 83
Ce que détecte cette règle
Detects Ransomware Built by Chaos Ransomware Builder
Cibles : PE Windows.
Elle définit 7 motifs (5 texte, 2 hex, 0 regex). Modules YARA utilisés : pe.
YARA-X indique : warning[text_as_hex]: hex pattern could be written as text literal
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.
import "pe"
rule BLACKBERRY_Mal_Win32_Chaosransomware_2022 : FILE
{
meta:
= "Detects Ransomware Built by Chaos Ransomware Builder"
= "BlackBerry Threat Research"
= "1fc57dd4-f020-5eb6-8e60-2bce3edfc512"
= "2022-05-10"
= "2022-07-07"
= "https://blogs.blackberry.com/en/2022/05/yashma-ransomware-tracing-the-chaos-family-tree"
= "https://github.com/mikesxrs/Open-Source-YARA-rules/blob/ec0056f767db98bf6d5fd63877ad51fb54d350e9/Blackberry/Mal_Win32_ChaosRansomware_2022.yar#L3-L45"
= "N/A"
= "d466570965e22b1bb0f1ca30c725d553d7ccf9e25ce2b546f105002260b1d526"
= 75
= 83
= "FILE"
= "This Yara rule is provided under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) and open to any user or organization, as long as you use it under this license and ensure originator credit in any derivative to The BlackBerry Research & Intelligence Team"
strings:
$x1 = "Encrypt" ascii wide
$x2 = "(?:[13]{1}[a-km-zA-HJ-NP-Z1-9]{26,33}|bc1[a-z0-9]{39,59})" ascii wide
$x3 = "read" ascii wide
$r1 = { 20 76 69 72 75 73 }
$r2 = { 72 00 61 00 6e 00 73 00 6f 00 6d 00 77 00 61 00 72 00 65 }
$z0 = "deleteShadowCopies" ascii wide
$z1 = "shadowcopy" ascii wide
condition:
uint16( 0 ) == 0x5a4d and filesize < 35KB and pe.imphash ( ) == "f34d5f2d4577ed6d9ceec516c1f5a744" and pe.number_of_sections == 3 and ( ( all of ( $x* ) ) and ( 1 of ( $r* ) ) and ( 1 of ( $z* ) ) )
}
Chaînes (7 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $x1 | texte | "Encrypt" | ascii wide |
| $x2 | texte | "(?:[13]{1}[a-km-zA-HJ-NP-Z1-9]{26,33}|bc1[a-z0-9]{39,59})" | ascii wide |
| $x3 | texte | "read" | ascii wide |
| $r1 | hex | { 20 76 69 72 75 73 } | |
| $r2 | hex | { 72 00 61 00 6e 00 73 00 6f 00 6d 00 77 00 61 00 72 00 65 } | |
| $z0 | texte | "deleteShadowCopies" | ascii wide |
| $z1 | texte | "shadowcopy" | ascii wide |
Condition
uint16( 0 ) == 0x5a4d and filesize < 35KB and pe.imphash ( ) == "f34d5f2d4577ed6d9ceec516c1f5a744" and pe.number_of_sections == 3 and ( ( all of ( $x* ) ) and ( 1 of ( $r* ) ) and ( 1 of ( $z* ) ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Le fichier doit faire moins de 35KB (garde-fou peu coûteux qui écarte les gros fichiers).
- Tous les motifs de ( $x* ) doivent être trouvés.
- Au moins 1 motifs de ( $r* ) doivent être trouvés.
- Au moins 1 motifs de ( $z* ) doivent être trouvés.
- Utilise le module pe.
- Vérifie le hash des imports PE (imphash).
- Vérifie les sections PE (noms, nombre ou propriété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é.
Licence et attribution
Auteur : BlackBerry Threat Research
Dépôt source : BlackBerry Research & Intelligence (via Open-Source-YARA-rules) @ ec0056f767
Licence : Apache License 2.0 (indiquée dans les métadonnées de la règle)
“This Yara rule is provided under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) and open to any user or organization, as long as you use it under this license and ensure originator credit in any derivative to The BlackBerry Research & Intelligence Team”
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: 1fc57dd4-f020-5eb6-8e60-2bce3edfc512
Tags:FILE
Règles liées
- MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research· 2022-05-10
- MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research· 2022-05-10