YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_PYSA
Detects PYSA/Mespinoza ransomware
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
Detects PYSA/Mespinoza ransomware
Famille de malware associée : PYSA.
Cibles : PE Windows.
Elle définit 8 motifs (5 texte, 3 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_PYSA : FILE
{
meta:
= "Detects PYSA/Mespinoza ransomware"
= "ditekSHen"
= "3a3fad6a-46bc-51dc-9723-4412034ca442"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L2080-L2100"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "e614b827bd8d065e94852fed01497c785bf90c52c3624aff9939b3f40ecf96a4"
= 75
= 75
= "FILE"
= "MALWARE.Win.Ransomware.PYSA"
strings:
$s1 = "%s\\Readme.README" fullword wide
$s2 = "Every byte on any types of your devices was encrypted" ascii
$s3 = { 6c 65 67 61 6c 6e 6f 74 69 63 65 74 65 78 74 00 (50|70) (59|79) (53|73) (41|61) }
$s4 = { 6c 65 67 61 6c 6e 6f 74 69 63 65 63 61 70 74 69 6f 6e 00 00 (50|70) (59|79) (53|73) (41|61) }
$s5 = { 2e 62 61 74 00 00 6f 70 65 6e 00 00 00 00 53
4f 46 54 57 41 52 45 5c 4d 69 63 72 6f 73 6f
66 74 5c 57 69 6e 64 6f 77 73 5c 43 75 72 72
65 6e 74 56 65 72 73 69 6f 6e 5c 50 6f 6c 69
63 69 65 73 5c 53 79 73 74 65 6d 00 00 00 }
$f1 = ".?AVPK_EncryptorFilter@CryptoPP@@" ascii
$f2 = ".?AV?$TF_EncryptorImpl@" ascii
$f3 = "@VTF_EncryptorBase@CryptoPP@@" ascii
condition:
uint16( 0 ) == 0x5a4d and all of ( $f* ) and 3 of ( $s* )
}
Chaînes (8 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "%s\\Readme.README" | fullword wide |
| $s2 | texte | "Every byte on any types of your devices was encrypted" | ascii |
| $s3 | hex | { 6c 65 67 61 6c 6e 6f 74 69 63 65 74 65 78 74 00 (50|70) (59|79) (53|73) (41|61) } | |
| $s4 | hex | { 6c 65 67 61 6c 6e 6f 74 69 63 65 63 61 70 74 69 6f 6e 00 00 (50|70) (59|79) (53|73) (41|61) } | |
| $s5 | hex | { 2e 62 61 74 00 00 6f 70 65 6e 00 00 00 00 53 4f 46 54 57 41 52 45 5c 4d 69 63 72 6f 73 6f 66 74 5c 57 69 6e 64 6f 77 73 5c 43 … | |
| $f1 | texte | ".?AVPK_EncryptorFilter@CryptoPP@@" | ascii |
| $f2 | texte | ".?AV?$TF_EncryptorImpl@" | ascii |
| $f3 | texte | "@VTF_EncryptorBase@CryptoPP@@" | ascii |
Condition
uint16( 0 ) == 0x5a4d and all of ( $f* ) and 3 of ( $s* )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Tous les motifs de ( $f* ) doivent être trouvés.
- Au moins 3 motifs de ( $s* ) 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: 3a3fad6a-46bc-51dc-9723-4412034ca442
Métadonnées
| clamav_sig | MALWARE.Win.Ransomware.PYSA |
|---|
Tags:FILE
Règles liées
- ARKBIRD_SOLG_RAN_PYSA_Sept_2021_1Métadonnées seulesMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-09-23
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06