YARA · SEKOIA.IO Community
SEKOIA_Apt_Cottonsandstorm_Win_Implant
Detects a simple win implant used by Cotton Sandstorm
- Auteur
- Sekoia.io
- Date
- 2024-11-05
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Detects a simple win implant used by Cotton Sandstorm
Cibles : PE Windows.
Elle définit 8 motifs (8 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 SEKOIA_Apt_Cottonsandstorm_Win_Implant : FILE
{
meta:
= "Detects a simple win implant used by Cotton Sandstorm"
= "Sekoia.io"
= "04a5255c-f9bb-4612-b0e2-ed0326867055"
= "2024-11-05"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_cottonsandstorm_win_implant.yar#L1-L24"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "f797d71ed07d6e05556300e4ce0f2927"
= "dcb25ee236ca52f23cc6bfdbcedcbc6d407e88f06341e684f202a59954733ade"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "DIR =>" wide
$ = "type=machines&md5=" wide
$ = "File =>" wide
$ = "&ip=" wide fullword
$ = "&un=" wide fullword
$ = "&cp=" wide fullword
$ = "myFile\";filename=" ascii
$ = "ifB75BcjsRBhy2et" ascii
condition:
uint16be( 0 ) == 0x4d5a and 4 of them and filesize < 500KB
}
Chaînes (8 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $ | texte | "DIR =>" | wide |
| $ | texte | "type=machines&md5=" | wide |
| $ | texte | "File =>" | wide |
| $ | texte | "&ip=" | wide fullword |
| $ | texte | "&un=" | wide fullword |
| $ | texte | "&cp=" | wide fullword |
| $ | texte | "myFile\";filename=" | ascii |
| $ | texte | "ifB75BcjsRBhy2et" | ascii |
Condition
uint16be( 0 ) == 0x4d5a and 4 of them and filesize < 500KBEn clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Le fichier doit faire moins de 500KB (garde-fou peu coûteux qui écarte les gros fichiers).
- Au moins 4 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é.
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).
- f797d71ed07d6e05556300e4ce0f2927
Licence et attribution
Auteur : Sekoia.io
Dépôt source : SEKOIA.IO Community @ a438a5901a
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: 04a5255c-f9bb-4612-b0e2-ed0326867055
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Règles liées
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / acteurSEKOIA.IO Community· Sekoia.io· 2024-03-06