YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Markirat
Detects MarkiRAT
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
Detects MarkiRAT
Famille de malware associée : Markirat.
Cibles : PE Windows.
Elle définit 16 motifs (15 texte, 0 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
malware-win-markirat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Markirat : FILE
{
meta:
= "Detects MarkiRAT"
= "ditekSHen"
= "6cfa276c-a64e-532a-a1ae-11a9e00867bd"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6380-L6403"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "17b8bcfe8d2b4c87ff8e0bddb436e18029a3b28a5ad3994fe9bef359588d9cad"
= 75
= 75
= "FILE"
strings:
$pdb = "\\mfcmklg.pdb" ascii
$s1 = "runinhome Completed" wide
$s2 = "ERROR find next file<br>" wide
$s3 = "<br><mark>Hello: %s</mark>" wide
$s4 = "<br><mark>CLIPBOARD[" wide
$s5 = "@userhome@" wide
$s6 = "Global\\{2194ABA1-BFFA-4e6b-8C26-D1BB20190312}" wide
$s7 = "taskkill /im svehost.exe /t /f" fullword ascii
$s8 = "taskkill /im keepass.exe /t /f" fullword ascii
$ba = /bitsadmin \/(addfile|cancel|SetPriority|resume)/ ascii wide
$c1 = "/ech/client.php?u=" wide
$c2 = "/up/uploadx.php?u=" wide
$c3 = "/ech/echo.php?req=rr&u=" wide
$c4 = "/ech/rite.php" wide
$c5 = "http://microsoft.com-view.space/i.php?u=" wide
$c6 = "Content-Disposition: form-data; name=\"uploadedfile\"; filename=\"" ascii
condition:
uint16( 0 ) == 0x5a4d and ( ( $pdb and any of them ) or ( 5 of ( $s* ) ) or ( 3 of ( $c* ) ) or ( ( #ba > 3 and 4 of them ) ) )
}
Chaînes (16 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $pdb | texte | "\\mfcmklg.pdb" | ascii |
| $s1 | texte | "runinhome Completed" | wide |
| $s2 | texte | "ERROR find next file<br>" | wide |
| $s3 | texte | "<br><mark>Hello: %s</mark>" | wide |
| $s4 | texte | "<br><mark>CLIPBOARD[" | wide |
| $s5 | texte | "@userhome@" | wide |
| $s6 | texte | "Global\\{2194ABA1-BFFA-4e6b-8C26-D1BB20190312}" | wide |
| $s7 | texte | "taskkill /im svehost.exe /t /f" | fullword ascii |
| $s8 | texte | "taskkill /im keepass.exe /t /f" | fullword ascii |
| $ba | regex | /bitsadmin \/(addfile|cancel|SetPriority|resume)/ | ascii wide |
| $c1 | texte | "/ech/client.php?u=" | wide |
| $c2 | texte | "/up/uploadx.php?u=" | wide |
| $c3 | texte | "/ech/echo.php?req=rr&u=" | wide |
| $c4 | texte | "/ech/rite.php" | wide |
| $c5 | texte | "http://microsoft.com-view.space/i.php?u=" | wide |
| $c6 | texte | "Content-Disposition: form-data; name=\"uploadedfile\"; filename=\"" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( ( $pdb and any of them ) or ( 5 of ( $s* ) ) or ( 3 of ( $c* ) ) or ( ( #ba > 3 and 4 of them ) ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins un motif de la règle doit être trouvé.
- Au moins 5 motifs de ( $s* ) doivent être trouvés.
- Au moins 3 motifs de ( $c* ) doivent être trouvés.
- Au moins 4 motifs de la règle doivent être trouvés.
- Le motif $ba doit apparaître > 3 fois.
- Le motif $pdb doit être présent.
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: 6cfa276c-a64e-532a-a1ae-11a9e00867bd
Tags:FILE
Règles liées
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06