YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Lilithrat
Detects LilithRAT
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
Detects LilithRAT
Famille de malware associée : Lilithrat.
Cibles : PE Windows.
Elle définit 16 motifs (16 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_Lilithrat : FILE
{
meta:
= "Detects LilithRAT"
= "ditekSHen"
= "87e56524-f557-5662-86bc-2b26e7c74aee"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6812-L6839"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "132870a1ae6a0bdecaa52c03cfe97a47df8786f148fa8ca113ac2a8d59e3624a"
= "ab7b6e0b28995bdeea44f20c0aba47f95e1d6ba281af3541cd2c04dc6c2a3ad9"
= "b2eeb487046ba1d341fb964069b7e83027b60003334e04e41b467e35c3d2460f"
= "cebcda044c60b709ba4ee0fa9e1e7011a6ffc17285bcc0948d27f866ec8d8f20"
= "1e8ac8a329ff99318e12666ea1d90d21bb9b0dff656a5eb1ce741b940c99afd5"
= 75
= 75
= "FILE"
strings:
$pdb1 = "c:\\Users\\Groovi\\Documents\\Visual Studio 2008\\Projects\\TestDll\\" ascii
$pdb2 = "C:\\Users\\iceberg\\Downloads\\RAT-Server-master\\RAT-Server-master\\RAT\\Debug\\RAT.pdb" ascii
$pdb3 = "C:\\Users\\Samy\\Downloads\\Compressed\\Lilith-master\\Debug\\Lilith.pdb" ascii
$s1 = "log.txt" fullword ascii
$s2 = "keylog.txt" fullword ascii
$s3 = "File Listing Completed Successfully." fullword ascii
$s4 = "Download Execute" fullword ascii
$s5 = "File Downloaded and Executed Successfully." fullword ascii
$s6 = "C:\\WINDOWS\\system32\\cmd.exe" fullword ascii
$s7 = "CMD session closed" ascii
$s8 = "Restart requested: Restarting self" fullword ascii
$s9 = "Termination requested: Killing self" fullword ascii
$s10 = "Couldn't write to CMD: CMD not open" fullword ascii
$s11 = "keydump" fullword ascii
$s12 = "remoteControl" fullword ascii
$s13 = "packettype" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( 1 of ( $pdb* ) or 6 of ( $s* ) or ( 1 of ( $pdb* ) and 4 of ( $s* ) ) )
}
Chaînes (16 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $pdb1 | texte | "c:\\Users\\Groovi\\Documents\\Visual Studio 2008\\Projects\\TestDll\\" | ascii |
| $pdb2 | texte | "C:\\Users\\iceberg\\Downloads\\RAT-Server-master\\RAT-Server-master\\RAT\\Debug\\RAT.pdb" | ascii |
| $pdb3 | texte | "C:\\Users\\Samy\\Downloads\\Compressed\\Lilith-master\\Debug\\Lilith.pdb" | ascii |
| $s1 | texte | "log.txt" | fullword ascii |
| $s2 | texte | "keylog.txt" | fullword ascii |
| $s3 | texte | "File Listing Completed Successfully." | fullword ascii |
| $s4 | texte | "Download Execute" | fullword ascii |
| $s5 | texte | "File Downloaded and Executed Successfully." | fullword ascii |
| $s6 | texte | "C:\\WINDOWS\\system32\\cmd.exe" | fullword ascii |
| $s7 | texte | "CMD session closed" | ascii |
| $s8 | texte | "Restart requested: Restarting self" | fullword ascii |
| $s9 | texte | "Termination requested: Killing self" | fullword ascii |
| $s10 | texte | "Couldn't write to CMD: CMD not open" | fullword ascii |
| $s11 | texte | "keydump" | fullword ascii |
| $s12 | texte | "remoteControl" | fullword ascii |
| $s13 | texte | "packettype" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and ( 1 of ( $pdb* ) or 6 of ( $s* ) or ( 1 of ( $pdb* ) and 4 of ( $s* ) ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 1 motifs de ( $pdb* ) doivent être trouvés.
- Au moins 6 motifs de ( $s* ) doivent être trouvés.
- Au moins 4 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
Hashes d’échantillons
Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).
- 132870a1ae6a0bdecaa52c03cfe97a47df8786f148fa8ca113ac2a8d59e3624a
- ab7b6e0b28995bdeea44f20c0aba47f95e1d6ba281af3541cd2c04dc6c2a3ad9
- b2eeb487046ba1d341fb964069b7e83027b60003334e04e41b467e35c3d2460f
- cebcda044c60b709ba4ee0fa9e1e7011a6ffc17285bcc0948d27f866ec8d8f20
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: 87e56524-f557-5662-86bc-2b26e7c74aee
Tags:FILE
Règles liées
- MalwareSignature Base (Florian Roth / Nextron)· CISA.gov (modified by Florian Roth, Nextron Systems)· 2024-07-25
- 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