YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Cookiestealer
Detects generic cookie stealer
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 75
Ce que détecte cette règle
Detects generic cookie stealer
Famille de malware associée : Cookiestealer.
Cibles : PE Windows.
Elle définit 9 motifs (9 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_Cookiestealer : FILE
{
meta:
= "Detects generic cookie stealer"
= "ditekSHen"
= "64c6c59d-4046-5949-bf71-22a5f6bfa209"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5841-L5857"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "9cc406ae078e37430b3cf10954c02014b9760bc887344842e724df735d1d9808"
= 75
= 75
= "FILE"
strings:
$s1 = "([\\S]+?)=([^;|^\\r|^\\n]+)" fullword ascii
$s2 = "(.+?): ([^;|^\\r|^\\n]+)" fullword ascii
$s3 = "Set-Cookie: ([^\\r|^\\n]+)" fullword ascii
$s4 = "cmd.exe /c taskkill /f /im chrome.exe" fullword ascii
$s5 = "FIREFOX.EXE|Google Chrome|IEXPLORE.EXE" ascii
$pdb1 = "F:\\facebook_svn\\trunk\\database\\Release\\DiskScan.pdb" fullword ascii
$pdb2 = "D:\\Projects\\crxinstall\\trunk\\Release\\spoofpref.pdb" fullword ascii
$ua1 = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36" fullword ascii
$ua2 = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( ( all of ( $s* ) and 1 of ( $pdb* ) and 1 of ( $ua* ) ) or ( all of ( $ua* ) and 1 of ( $pdb* ) and 2 of ( $s* ) ) )
}
Chaînes (9 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "([\\S]+?)=([^;|^\\r|^\\n]+)" | fullword ascii |
| $s2 | texte | "(.+?): ([^;|^\\r|^\\n]+)" | fullword ascii |
| $s3 | texte | "Set-Cookie: ([^\\r|^\\n]+)" | fullword ascii |
| $s4 | texte | "cmd.exe /c taskkill /f /im chrome.exe" | fullword ascii |
| $s5 | texte | "FIREFOX.EXE|Google Chrome|IEXPLORE.EXE" | ascii |
| $pdb1 | texte | "F:\\facebook_svn\\trunk\\database\\Release\\DiskScan.pdb" | fullword ascii |
| $pdb2 | texte | "D:\\Projects\\crxinstall\\trunk\\Release\\spoofpref.pdb" | fullword ascii |
| $ua1 | texte | "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36" | fullword ascii |
| $ua2 | texte | "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and ( ( all of ( $s* ) and 1 of ( $pdb* ) and 1 of ( $ua* ) ) or ( all of ( $ua* ) and 1 of ( $pdb* ) and 2 of ( $s* ) ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Tous les motifs de ( $s* ) doivent être trouvés.
- Tous les motifs de ( $ua* ) doivent être trouvés.
- Au moins 1 motifs de ( $pdb* ) doivent être trouvés.
- Au moins 1 motifs de ( $ua* ) doivent être trouvés.
- Au moins 2 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: 64c6c59d-4046-5949-bf71-22a5f6bfa209
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