YARA · SEKOIA.IO Community
SEKOIA_Exploit_Linux_Eop_Cve202121974_Exploit_Strings
Detects CVE-2021-21974 Local Privesc exploit
- Autor
- Sekoia.io
- Datum
- 2023-12-08
- Geändert
- 2024-12-19
- Score / Qualität
- 75 / 80
Was diese Regel erkennt
Detects CVE-2021-21974 Local Privesc exploit
Ziele: Linux-ELF.
Sie definiert 4 Muster (4 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
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
}
Strings (4 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $ | Text | ".name.replace('Thread','SLP Client'" | |
| $ | Text | "print('[' + name + '] recv: ', d)" | |
| $ | Text | "requests[28].put(connect())" | |
| $ | Text | "[+] stack enviorn address:" |
Bedingung
uint32be( 0 ) == 0x7f454c46 and filesize < 1MB and all of themIn Worten (Heuristik)
- Die Datei muss mit dem ELF-Header beginnen — eine Linux/Unix-Programmdatei.
- Die Datei muss kleiner als 1MB sein (eine günstige Grenze, die große Dateien ausschließt).
- Alle Muster aus der Regel müssen treffen.
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.
Referenzen
Lizenz & Namensnennung
Autor: Sekoia.io
Quell-Repository: SEKOIA.IO Community @ a438a5901a
Lizenz: Detection Rule License 1.1 (Repository-Lizenz)
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 8e1fbbe5-7d51-48b4-80d5-90abff8cab9e
Metadaten
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:CVE_2021_21974FILE
Verwandte Regeln
- 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