YARA · SEKOIA.IO Community
SEKOIA_Apt_Uta0218_Upstyle_Backdoor_Strings
Detects UPSTYLE backdoor
- Auteur
- Sekoia.io
- Date
- 2024-04-16
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Detects UPSTYLE backdoor
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
apt-uta0218-upstyle-backdoor-strings.yarDetection Rule License 1.1
rule SEKOIA_Apt_Uta0218_Upstyle_Backdoor_Strings : FILE
{
meta:
= "Detects UPSTYLE backdoor"
= "Sekoia.io"
= "098fbad7-efaf-4198-83de-208c2ae16f89"
= "2024-04-16"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_uta0218_upstyle_backdoor_strings.yar#L1-L27"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "bcba657b0b302f4b46f09bc4b815a581d22208b5d9f99e1233878f775241f92e"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$s1_1 = "f.write(b'''import base64;exec(base64.b64decode(b" ascii
$s1_2 = "atime=os.path.getatime(" ascii
$s2_1 = "exec(base64.b64decode(functioncode))" ascii base64
$s2_2 = "os.path.exists(systempth):" ascii base64
$s2_3 = ".read().replace(b\"\\x00\",b\" \")" ascii base64
$s3_1 = "if WRITE_FLAG:" ascii base64
$s3_2 = "re.search(SHELL_PATTERN" ascii base64
$s3_3 = "import threading,time,os,re,base64" ascii base64
condition:
filesize < 1500 and ( 2 of ( $s1_* ) or 2 of ( $s2_* ) or 2 of ( $s3_* ) )
}
Chaînes (8 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1_1 | texte | "f.write(b'''import base64;exec(base64.b64decode(b" | ascii |
| $s1_2 | texte | "atime=os.path.getatime(" | ascii |
| $s2_1 | texte | "exec(base64.b64decode(functioncode))" | ascii base64 |
| $s2_2 | texte | "os.path.exists(systempth):" | ascii base64 |
| $s2_3 | texte | ".read().replace(b\"\\x00\",b\" \")" | ascii base64 |
| $s3_1 | texte | "if WRITE_FLAG:" | ascii base64 |
| $s3_2 | texte | "re.search(SHELL_PATTERN" | ascii base64 |
| $s3_3 | texte | "import threading,time,os,re,base64" | ascii base64 |
Condition
filesize < 1500 and ( 2 of ( $s1_* ) or 2 of ( $s2_* ) or 2 of ( $s3_* ) )En clair (Heuristique)
- Le fichier doit faire moins de 1500 (garde-fou peu coûteux qui écarte les gros fichiers).
- Au moins 2 motifs de ( $s1_* ) doivent être trouvés.
- Au moins 2 motifs de ( $s2_* ) doivent être trouvés.
- Au moins 2 motifs de ( $s3_* ) 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 : 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: 098fbad7-efaf-4198-83de-208c2ae16f89
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