YARA · SEKOIA.IO Community
SEKOIA_Exploit_Linux_Eop_Cve202121974_Exploit_Strings
Detects CVE-2021-21974 Local Privesc exploit
- Auteur
- Sekoia.io
- Date
- 2023-12-08
- Modifiée
- 2024-12-19
- Score / Qualité
- 75 / 80
Ce que détecte cette règle
Detects CVE-2021-21974 Local Privesc exploit
Cibles : ELF Linux.
Elle définit 4 motifs (4 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
exploit-linux-eop-cve202121974-exploit-strings.yarDetection Rule License 1.1
rule SEKOIA_Exploit_Linux_Eop_Cve202121974_Exploit_Strings : CVE_2021_21974 FILE
{
meta:
= "Detects CVE-2021-21974 Local Privesc exploit"
= "Sekoia.io"
= "8e1fbbe5-7d51-48b4-80d5-90abff8cab9e"
= "2023-12-08"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/exploit_linux_eop_cve202121974_exploit_strings.yar#L1-L18"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "a2e6e2660fcbf6ffa80809c02ca78fae85d27f6cd8d2c83bb2645a86124ca7f2"
= 75
= 80
= "CVE-2021-21974, FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = ".name.replace('Thread','SLP Client'"
$ = "print('[' + name + '] recv: ', d)"
$ = "requests[28].put(connect())"
$ = "[+] stack enviorn address:"
condition:
uint32be( 0 ) == 0x7f454c46 and filesize < 1MB and all of them
}
Chaînes (4 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $ | texte | ".name.replace('Thread','SLP Client'" | |
| $ | texte | "print('[' + name + '] recv: ', d)" | |
| $ | texte | "requests[28].put(connect())" | |
| $ | texte | "[+] stack enviorn address:" |
Condition
uint32be( 0 ) == 0x7f454c46 and filesize < 1MB and all of themEn clair (Heuristique)
- Le fichier doit commencer par l’en-tête ELF — un exécutable Linux/Unix.
- Le fichier doit faire moins de 1MB (garde-fou peu coûteux qui écarte les gros fichiers).
- Tous les 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 : 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: 8e1fbbe5-7d51-48b4-80d5-90abff8cab9e
Métadonnées
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:CVE_2021_21974FILE
Règles liées
- ExploitSEKOIA.IO Community· Sekoia.io· 2024-01-22
- ExploitSEKOIA.IO Community· Sekoia.io· 2023-12-08
- ExploitSEKOIA.IO Community· Sekoia.io· 2023-12-08
- ExploitSEKOIA.IO Community· Sekoia.io· 2023-12-08
- ExploitSEKOIA.IO Community· Sekoia.io· 2023-12-08
- ExploitSEKOIA.IO Community· Sekoia.io· 2023-12-08
- ExploitSEKOIA.IO Community· Sekoia.io· 2023-12-08
- ExploitSEKOIA.IO Community· Sekoia.io· 2023-12-08