YARA · dr4k0nia yara-rules
DR4K0NIA_MAL_MSIL_NET_Typhonlogger_Jul23
Detects TyphonLogger .NET payloads
- Auteur
- dr4k0nia
- Date
- 2023-11-07
- Modifiée
- 2023-07-11
- Score / Qualité
- 75 / 81
Ce que détecte cette règle
Detects TyphonLogger .NET payloads
Cibles : PE Windows.
Elle définit 8 motifs (5 texte, 3 hex, 0 regex).
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
rule DR4K0NIA_MAL_MSIL_NET_Typhonlogger_Jul23 : FILE
{
meta:
= "Detects TyphonLogger .NET payloads"
= "dr4k0nia"
= "2fbc1d9e-9c07-560b-9476-a176cdbe1bad"
= "2023-11-07"
= "2023-07-11"
= "https://github.com/dr4k0nia/yara-rules"
= "https://github.com/dr4k0nia/yara-rules/blob/4b10f9b79a4cfb3ec9cb5675f32cc7ee6885fbd8/dotnet/mal_msil_typhon_logger.yar#L1-L21"
= "https://github.com/dr4k0nia/yara-rules/blob/4b10f9b79a4cfb3ec9cb5675f32cc7ee6885fbd8/LICENSE.md"
= "fc8733c217b49ca14702a59a637efc7dba6a2993d57e67424513ce2f5e9d8ed8"
= "5c22aab1942e31095989b8267e0231191718d4ec44eb3afc6a50f929aae872c8"
= 75
= 81
= "FILE"
strings:
$sa1 = "SetWindowsHookEx" ascii fullword
$sa2 = "iphlpapi.dll" ascii fullword
$sa3 = "SendARP" ascii fullword
$sa4 = "costura.bouncycastle.crypto.dll.compressed" ascii fullword
$op1 = {51 32 46 79 64 47 55 67 51 6D 78 68 62 6D 4E 6F 5A 53 42 44 59 58 4A 6B}
$op2 = {53 57 35 7A 64 47 45 67 55 47 46 35 62 57 56 75 64 43 42 44 59 58 4A 6B}
$op3 = {20 25 32 C4 C1 35 4C 11 06 20 6B 6D AC 1D 35 1D 11 06 20 4B A6 CA 11 3B 59 01 00 00 11 06 20 6B 6D AC 1D}
$sx = "New Projects\\EmeraldLogger\\EmeraldLogger\\obj\\" ascii
condition:
uint16( 0 ) == 0x5a4d and ( $sx or ( all of ( $sa* ) and 2 of ( $op* ) ) )
}
Chaînes (8 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $sa1 | texte | "SetWindowsHookEx" | ascii fullword |
| $sa2 | texte | "iphlpapi.dll" | ascii fullword |
| $sa3 | texte | "SendARP" | ascii fullword |
| $sa4 | texte | "costura.bouncycastle.crypto.dll.compressed" | ascii fullword |
| $op1 | hex | {51 32 46 79 64 47 55 67 51 6D 78 68 62 6D 4E 6F 5A 53 42 44 59 58 4A 6B} | |
| $op2 | hex | {53 57 35 7A 64 47 45 67 55 47 46 35 62 57 56 75 64 43 42 44 59 58 4A 6B} | |
| $op3 | hex | {20 25 32 C4 C1 35 4C 11 06 20 6B 6D AC 1D 35 1D 11 06 20 4B A6 CA 11 3B 59 01 00 00 11 06 20 6B 6D AC 1D} | |
| $sx | texte | "New Projects\\EmeraldLogger\\EmeraldLogger\\obj\\" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( $sx or ( all of ( $sa* ) and 2 of ( $op* ) ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Tous les motifs de ( $sa* ) doivent être trouvés.
- Au moins 2 motifs de ( $op* ) doivent être trouvés.
- Le motif $sx 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é.
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).
- fc8733c217b49ca14702a59a637efc7dba6a2993d57e67424513ce2f5e9d8ed8
Licence et attribution
Auteur : dr4k0nia
Dépôt source : dr4k0nia yara-rules @ 4b10f9b79a
Licence : Detection Rule License 1.1 (licence du dépôt)
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: 2fbc1d9e-9c07-560b-9476-a176cdbe1bad
Tags:FILE
Règles liées
- Malwaredr4k0nia yara-rules· dr4k0nia· 2023-05-21
- Suspect / chassedr4k0nia yara-rules· dr4k0nia· 2023-12-03
- Suspect / chassedr4k0nia yara-rules· dr4k0nia· 2023-03-26