Saltar al contenido

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_Hvs_APT37_Webshell_Img_Thumbs_Asp

Webshell named img.asp, thumbs.asp or thumb.asp used by APT37

WebshellSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compila con YARA-X
Autor
Moritz Oettle
Fecha
2020-12-15
Modificada
2023-12-05
Puntuación / Calidad
75 / 85

Qué detecta esta regla

Webshell named img.asp, thumbs.asp or thumb.asp used by APT37

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

hvs-apt37-webshell-img-thumbs-asp.yarDetection Rule License 1.1
rule SIGNATURE_BASE_Hvs_APT37_Webshell_Img_Thumbs_Asp : FILE
{
	meta:
		description = "Webshell named img.asp, thumbs.asp or thumb.asp used by APT37"
		author = "Moritz Oettle"
		id = "e45d4507-81de-5f72-9ce2-4f0e3e5c62b1"
		date = "2020-12-15"
		modified = "2023-12-05"
		reference = "https://www.hvs-consulting.de/media/downloads/ThreatReport-Lazarus.pdf"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_lazarus_dec20.yar#L68-L95"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "94d2448d3794ae3f29678a7337473d259b5cfd1c7f703fe53ee6c84dd10a48ef"
		logic_hash = "58ccee11c08330c8cd4148e623a2e59e024d6d5f3067331dbdd962d0f6a8daa4"
		score = 75
		quality = 85
		tags = "FILE"
		license = "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE"

	strings:
		$s1 = "strMsg = \"E : F\"" fullword ascii
		$s2 = "strMsg = \"S : \" & Len(fileData)" fullword ascii
		$s3 = "Left(workDir, InStrRev(workDir, \"/\")) & \"video\""
		$a1 = "Server.CreateObject(\"Scripting.FileSystemObject\")" fullword ascii
		$a2 = "Dim tmpPath, workDir" fullword ascii
		$a3 = "Dim objFSO, objTextStream" fullword ascii
		$a4 = "workDir = Request.ServerVariables(\"URL\")" fullword ascii
		$a5 = "InStrRev(workDir, \"/\")" ascii
		$g1 = "WriteFile = 0" fullword ascii
		$g2 = "fileData = Request.Form(\"fp\")" fullword ascii
		$g3 = "fileName = Request.Form(\"fr\")" fullword ascii
		$g4 = "Err.Clear()" fullword ascii
		$g5 = "Option Explicit" fullword ascii

	condition:
		filesize < 2KB and ( ( 1 of ( $s* ) ) or ( 3 of ( $a* ) ) or ( 5 of ( $g* ) ) )
}

Cadenas (13 patrones)

IdentificadorTipoValorModificadores
$s1texto"strMsg = \"E : F\""fullword ascii
$s2texto"strMsg = \"S : \" & Len(fileData)"fullword ascii
$s3texto"Left(workDir, InStrRev(workDir, \"/\")) & \"video\""
$a1texto"Server.CreateObject(\"Scripting.FileSystemObject\")"fullword ascii
$a2texto"Dim tmpPath, workDir"fullword ascii
$a3texto"Dim objFSO, objTextStream"fullword ascii
$a4texto"workDir = Request.ServerVariables(\"URL\")"fullword ascii
$a5texto"InStrRev(workDir, \"/\")"ascii
$g1texto"WriteFile = 0"fullword ascii
$g2texto"fileData = Request.Form(\"fp\")"fullword ascii
$g3texto"fileName = Request.Form(\"fr\")"fullword ascii
$g4texto"Err.Clear()"fullword ascii
$g5texto"Option Explicit"fullword ascii

Condición

filesize < 2KB and ( ( 1 of ( $s* ) ) or ( 3 of ( $a* ) ) or ( 5 of ( $g* ) ) )

En palabras sencillas (Heurística)

  • El archivo debe ocupar menos de 2KB (un límite barato que descarta archivos grandes).
  • Deben coincidir al menos 1 patrones de ( $s* ).
  • Deben coincidir al menos 3 patrones de ( $a* ).
  • Deben coincidir al menos 5 patrones de ( $g* ).

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).

  • 94d2448d3794ae3f29678a7337473d259b5cfd1c7f703fe53ee6c84dd10a48ef

Licencia y atribución

Autor: Moritz Oettle

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

Licencia: Detection Rule License 1.1 (indicada en los metadatos de la regla)

“Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE”

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: e45d4507-81de-5f72-9ce2-4f0e3e5c62b1

Etiquetas:FILE