Saltar al contenido

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_WEBSHELL_ASPX_Compiled_Sharepoint_Drop_CVE_2025_53770_Jul25_2

Detects compiled ASPX web shell dropped during the exploitation of SharePoint RCE vulnerability CVE-2025-53770

WebshellSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compila con YARA-X
Autor
Florian Roth, Marius Benthin
Fecha
2025-07-20
Modificada
2025-07-25
Puntuación / Calidad
75 / 83

Qué detecta esta regla

Detects compiled ASPX web shell dropped during the exploitation of SharePoint RCE vulnerability CVE-2025-53770

Objetivos: PE de Windows.

Define 7 patrones (3 de texto, 0 hex, 4 regex).

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

webshell-aspx-compiled-sharepoint-drop-cve-2025-53770-jul25-2.yarDetection Rule License 1.1
rule SIGNATURE_BASE_WEBSHELL_ASPX_Compiled_Sharepoint_Drop_CVE_2025_53770_Jul25_2 : CVE_2025_53770 FILE
{
	meta:
		description = "Detects compiled ASPX web shell dropped during the exploitation of SharePoint RCE vulnerability CVE-2025-53770"
		author = "Florian Roth, Marius Benthin"
		id = "00a844ab-aede-53bf-820f-d43a5d96426d"
		date = "2025-07-20"
		modified = "2025-07-25"
		reference = "https://research.eye.security/sharepoint-under-siege/"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/expl_sharepoint_jul25.yar#L23-L53"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "8d3d3f3a17d233bc8562765e61f7314ca7a08130ac0fb153ffd091612920b0f2"
		hash = "d8ca5e5d6400ac34ac4cc138efa89d2ec4d5c0e968a78fa3ba5dbc04c7550649"
		hash = "7e9b77da1f51d03ee2f96bc976f6aeb781f801cf633862a4b8c356cbb555927d"
		logic_hash = "df11e5bd293cf094f3a147b54ecaafbe0804d7d575fcc22f38e77ab155c7ebdc"
		score = 75
		quality = 83
		tags = "CVE-2025-53770, FILE"

	strings:
		$x1 = /App_Web_spinstall\d{0,1}.aspx/ wide
		$x2 = /spinstall[\w]?[\._]aspx/ ascii
		$x3 = /\/_layouts\/1[0-9]\/spinstall/ wide
		$x4 = /\/_layouts\/1[0-9]\/ghostfile/ wide
		$s1 = "System.Web.Configuration.MachineKeySection" wide
		$s2 = "Page_load" ascii fullword
		$s3 = "GetApplicationConfig" wide fullword

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 20KB and ( 1 of ( $x* ) or all of ( $s* ) ) or 2 of ( $x* ) or 4 of them
}

Cadenas (7 patrones)

IdentificadorTipoValorModificadores
$x1regex/App_Web_spinstall\d{0,1}.aspx/wide
$x2regex/spinstall[\w]?[\._]aspx/ascii
$x3regex/\/_layouts\/1[0-9]\/spinstall/wide
$x4regex/\/_layouts\/1[0-9]\/ghostfile/wide
$s1texto"System.Web.Configuration.MachineKeySection"wide
$s2texto"Page_load"ascii fullword
$s3texto"GetApplicationConfig"wide fullword

Condición

uint16( 0 ) == 0x5a4d and filesize < 20KB and ( 1 of ( $x* ) or all of ( $s* ) ) or 2 of ( $x* ) or 4 of them

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • El archivo debe ocupar menos de 20KB (un límite barato que descarta archivos grandes).
  • Deben coincidir todos los patrones de ( $s* ).
  • Deben coincidir al menos 1 patrones de ( $x* ).
  • Deben coincidir al menos 2 patrones de ( $x* ).
  • Deben coincidir al menos 4 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.

Abrir en el editor

Referencias

Hashes de muestras

Hashes de las muestras que el autor lista en los metadatos de la regla (búscalos en tu plataforma de threat intelligence).

  • 8d3d3f3a17d233bc8562765e61f7314ca7a08130ac0fb153ffd091612920b0f2
  • d8ca5e5d6400ac34ac4cc138efa89d2ec4d5c0e968a78fa3ba5dbc04c7550649
  • 7e9b77da1f51d03ee2f96bc976f6aeb781f801cf633862a4b8c356cbb555927d

Licencia y atribución

Autor: Florian Roth, Marius Benthin

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: 00a844ab-aede-53bf-820f-d43a5d96426d

Etiquetas:CVE_2025_53770FILE