YARA · SEKOIA.IO Community
SEKOIA_Exploit_Linux_Eop_Pwnkit_Strings
Detects Pwnkit Local Privesc exploit
- Autor
- Sekoia.io
- Fecha
- 2023-12-08
- Modificada
- 2024-12-19
- Puntuación / Calidad
- 75 / 80
Qué detecta esta regla
Detects Pwnkit Local Privesc exploit
Objetivos: ELF de Linux.
Define 7 patrones (7 de texto, 0 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
exploit-linux-eop-pwnkit-strings.yarDetection Rule License 1.1
rule SEKOIA_Exploit_Linux_Eop_Pwnkit_Strings : FILE
{
meta:
= "Detects Pwnkit Local Privesc exploit"
= "Sekoia.io"
= "8637c602-62da-4983-bcb7-ba546fb2ed82"
= "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_pwnkit_strings.yar#L1-L21"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "9805cc7a6022f7a3372df5d74cef68c6fd0e51072154c82212415846f3603667"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "CHARSET=PWNKIT"
$ = "i/do/not/exists"
$ = "pwnkit/pwnkit.c"
$ = "/usr/bin/pkexec"
$ = "SHELL=pwnkit"
$ = "pwnkit.so"
$ = "./pwnkit/"
condition:
uint32be( 0 ) == 0x7f454c46 and filesize < 1MB and 2 of them
}
Cadenas (7 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $ | texto | "CHARSET=PWNKIT" | |
| $ | texto | "i/do/not/exists" | |
| $ | texto | "pwnkit/pwnkit.c" | |
| $ | texto | "/usr/bin/pkexec" | |
| $ | texto | "SHELL=pwnkit" | |
| $ | texto | "pwnkit.so" | |
| $ | texto | "./pwnkit/" |
Condición
uint32be( 0 ) == 0x7f454c46 and filesize < 1MB and 2 of themEn palabras sencillas (Heurística)
- El archivo debe empezar por la cabecera ELF: un ejecutable de Linux/Unix.
- El archivo debe ocupar menos de 1MB (un límite barato que descarta archivos grandes).
- Deben coincidir al menos 2 patrones de la regla.
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.
Referencias
Licencia y atribución
Autor: Sekoia.io
Repositorio de origen: SEKOIA.IO Community @ a438a5901a
Licencia: Detection Rule License 1.1 (licencia del repositorio)
Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.
Id de la regla: 8637c602-62da-4983-bcb7-ba546fb2ed82
Metadatos
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Etiquetas:FILE
Reglas relacionadas
- 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