Saltar al contenido

YARA · Volexity threat-intel

VOLEXITY_Apt_Malware_Py_Upstyle

Detect the UPSTYLE webshell.

APT / actorVolexity threat-intelBSD 2-Clause LicenseCompila con YARA-X (con avisos)
Autor
threatintel@volexity.com
Fecha
2024-04-11
Modificada
2024-04-12
Puntuación / Calidad
75 / 80

Qué detecta esta regla

Detect the UPSTYLE webshell.

Define 6 patrones (6 de texto, 0 hex, 0 regex).

YARA-X dice: warning[duplicate_pattern_value]: duplicate pattern value

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

Código de la regla

apt-malware-py-upstyle.yarBSD 2-Clause License
rule VOLEXITY_Apt_Malware_Py_Upstyle : UTA0218 FILE MEMORY
{
	meta:
		description = "Detect the UPSTYLE webshell."
		author = "threatintel@volexity.com"
		id = "45726f35-8b3e-5095-b145-9e7f6da6838b"
		date = "2024-04-11"
		modified = "2024-04-12"
		reference = "TIB-20240412"
		source_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/2024/2024-04-12 Palo Alto Networks GlobalProtect/indicators/rules.yar#L1-L34"
		license_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/LICENSE.txt"
		hash = "3de2a4392b8715bad070b2ae12243f166ead37830f7c6d24e778985927f9caac"
		hash = "0d59d7bddac6c22230187ef6cf7fa22bca93759edc6f9127c41dc28a2cea19d8"
		hash = "4dd4bd027f060f325bf6a90d01bfcf4e7751a3775ad0246beacc6eb2bad5ec6f"
		logic_hash = "51923600b23d23f4ce29eac7f5ab9f7e1ddb45bed5f6727ddec4dcb75872e473"
		score = 75
		quality = 80
		tags = "UTA0218, FILE, MEMORY"
		os = "linux"
		os_arch = "all"
		scan_context = "file,memory"
		severity = "critical"
		license = "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
		rule_id = 10429
		version = 2

	strings:
		$stage1_str1 = "/opt/pancfg/mgmt/licenses/PA_VM"
		$stage1_str2 = "exec(base64."
		$stage2_str1 = "signal.signal(signal.SIGTERM,stop)"
		$stage2_str2 = "exec(base64."
		$stage3_str1 = "write(\"/*\"+output+\"*/\")"
		$stage3_str2 = "SHELL_PATTERN"

	condition:
		all of ( $stage1* ) or all of ( $stage2* ) or all of ( $stage3* )
}

Cadenas (6 patrones)

IdentificadorTipoValorModificadores
$stage1_str1texto"/opt/pancfg/mgmt/licenses/PA_VM"
$stage1_str2texto"exec(base64."
$stage2_str1texto"signal.signal(signal.SIGTERM,stop)"
$stage2_str2texto"exec(base64."
$stage3_str1texto"write(\"/*\"+output+\"*/\")"
$stage3_str2texto"SHELL_PATTERN"

Condición

all of ( $stage1* ) or all of ( $stage2* ) or all of ( $stage3* )

En palabras sencillas (Heurística)

  • Deben coincidir todos los patrones de ( $stage1* ).
  • Deben coincidir todos los patrones de ( $stage2* ).
  • Deben coincidir todos los patrones de ( $stage3* ).

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

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

  • 3de2a4392b8715bad070b2ae12243f166ead37830f7c6d24e778985927f9caac
  • 0d59d7bddac6c22230187ef6cf7fa22bca93759edc6f9127c41dc28a2cea19d8
  • 4dd4bd027f060f325bf6a90d01bfcf4e7751a3775ad0246beacc6eb2bad5ec6f

Licencia y atribución

Autor: threatintel@volexity.com

Repositorio de origen: Volexity threat-intel @ 3a9d0b5245

Licencia: BSD 2-Clause License (indicada en los metadatos de la regla)

“See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt”

Aviso de copyright: Copyright 2022 by Volexity, Inc.

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: 45726f35-8b3e-5095-b145-9e7f6da6838b

Metadatos

oslinux
os_archall
scan_contextfile,memory
severitycritical
rule_id10429
version2

Etiquetas:UTA0218FILEMEMORY