YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Lastconn
Detects LastConn
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
Detects LastConn
Famille de malware associée : Lastconn.
Cibles : PE Windows.
Elle définit 14 motifs (12 texte, 2 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
malware-win-lastconn.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Lastconn : FILE
{
meta:
= "Detects LastConn"
= "ditekSHen"
= "18727c30-d84d-5ffa-acd4-2cc54e553604"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6865-L6894"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "94f5874353d0fb475595373c06a0de91603cad9b435d35dc00febf90608d6b5a"
= 75
= 75
= "FILE"
strings:
$s1 = "System.Net.Http.SysSR" fullword wide
$s2 = "System.Net.Http.WrSR" fullword wide
$s3 = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK" fullword wide
$s4 = { 63 00 6f 00 6e 00 74 00 65 00 6e 00 74 00 0c 6e
00 6f 00 74 00 69 00 66 00 79 00 04 06 12 80 e8
05 00 00 12 80 e8 08 75 00 73 00 65 00 72 00 08
74 00 65 00 61 00 6d 00 06 61 00 70 00 70 00 0c
6e 00 6f 00 61 00 75 00 74 00 68 00 }
$s5 = { 68 00 69 00 64 00 64 00 65 00 6e 00 10 64 00 69
00 73 00 61 00 6c 00 6c 00 6f 00 77 00 0e 65 00
78 00 74 00 65 00 6e 00 64 00 73 00 04 69 00 64
00 16 75 00 6e 00 69 00 71 00 75 00 65 00 49 00
74 00 65 00 6d 00 73 }
$s6 = "<RunFileOnes>d__" ascii
$s7 = "<UploadFile>d__" ascii
$s8 = "<ChunkUpload>d__" ascii
$s9 = "<StartFolder>d__" ascii
$s10 = "<ReadFileAlw>d__" ascii
$s12 = "<WriteFileToD>d__" ascii
$s13 = "<ReadFile>d__" ascii
$s14 = "<GetUpload>d__" ascii
$s15 = "CDropbox.Api.DropboxRequestHandler+<RequestJsonStringWithRetry>d__" ascii
condition:
uint16( 0 ) == 0x5a4d and 12 of them
}
Chaînes (14 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "System.Net.Http.SysSR" | fullword wide |
| $s2 | texte | "System.Net.Http.WrSR" | fullword wide |
| $s3 | texte | "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK" | fullword wide |
| $s4 | hex | { 63 00 6f 00 6e 00 74 00 65 00 6e 00 74 00 0c 6e 00 6f 00 74 00 69 00 66 00 79 00 04 06 12 80 e8 05 00 00 12 80 e8 08 75 00 73 00 … | |
| $s5 | hex | { 68 00 69 00 64 00 64 00 65 00 6e 00 10 64 00 69 00 73 00 61 00 6c 00 6c 00 6f 00 77 00 0e 65 00 78 00 74 00 65 00 6e 00 64 00 73 … | |
| $s6 | texte | "<RunFileOnes>d__" | ascii |
| $s7 | texte | "<UploadFile>d__" | ascii |
| $s8 | texte | "<ChunkUpload>d__" | ascii |
| $s9 | texte | "<StartFolder>d__" | ascii |
| $s10 | texte | "<ReadFileAlw>d__" | ascii |
| $s12 | texte | "<WriteFileToD>d__" | ascii |
| $s13 | texte | "<ReadFile>d__" | ascii |
| $s14 | texte | "<GetUpload>d__" | ascii |
| $s15 | texte | "CDropbox.Api.DropboxRequestHandler+<RequestJsonStringWithRetry>d__" | ascii |
Condition
uint16( 0 ) == 0x5a4d and 12 of themEn clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 12 motifs de la règle 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é.
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: 18727c30-d84d-5ffa-acd4-2cc54e553604
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