Saltar al contenido

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_EXPL_Keepass_CVE_2023_24055_Jan23

Detects suspicious entries in the Keepass configuration file, which could be indicator of the exploitation of CVE-2023-24055

ExploitSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compila con YARA-X
Autor
Florian Roth (Nextron Systems)
Fecha
2023-01-25
Modificada
2023-12-05
Puntuación / Calidad
75 / 81

Qué detecta esta regla

Detects suspicious entries in the Keepass configuration file, which could be indicator of the exploitation of CVE-2023-24055

Define 6 patrones (6 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

expl-keepass-cve-2023-24055-jan23.yarDetection Rule License 1.1
rule SIGNATURE_BASE_EXPL_Keepass_CVE_2023_24055_Jan23 : CVE_2023_24055 FILE
{
	meta:
		description = "Detects suspicious entries in the Keepass configuration file, which could be indicator of the exploitation of CVE-2023-24055"
		author = "Florian Roth (Nextron Systems)"
		id = "2c031919-da19-5fd0-b21a-2e83679ad1e3"
		date = "2023-01-25"
		modified = "2023-12-05"
		reference = "https://github.com/alt3kx/CVE-2023-24055_PoC"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_keepass_cve_2023_24055.yar#L2-L20"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "3ca00f317838819bb7fb80c9d00d94db498e1d3ef146b9af2664dae09302a86d"
		score = 75
		quality = 81
		tags = "CVE-2023-24055, FILE"

	strings:
		$a1 = "<TriggerCollection xmlns:xsi=" ascii wide
		$x1 = "<Parameter>KeePass XML (2.x)</Parameter>"
		$x2 = "::ReadAllBytes("
		$x3 = " -Method "
		$x4 = " bypass "
		$x5 = "powershell" nocase ascii wide fullword

	condition:
		filesize < 200KB and $a1 and 1 of ( $x* )
}

Cadenas (6 patrones)

IdentificadorTipoValorModificadores
$a1texto"<TriggerCollection xmlns:xsi="ascii wide
$x1texto"<Parameter>KeePass XML (2.x)</Parameter>"
$x2texto"::ReadAllBytes("
$x3texto" -Method "
$x4texto" bypass "
$x5texto"powershell"nocase ascii wide fullword

Condición

filesize < 200KB and $a1 and 1 of ( $x* )

En palabras sencillas (Heurística)

  • El archivo debe ocupar menos de 200KB (un límite barato que descarta archivos grandes).
  • Deben coincidir al menos 1 patrones de ( $x* ).
  • El patrón $a1 debe estar presente.

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.

Abrir en el editor

Referencias

Licencia y atribución

Autor: Florian Roth (Nextron Systems)

Repositorio de origen: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licencia: Detection Rule License 1.1 (licencia del repositorio)

Regla original

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: 2c031919-da19-5fd0-b21a-2e83679ad1e3

Etiquetas:CVE_2023_24055FILE