Saltar al contenido

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_APT_KE3CHANG_TMPFILE

Detects Strings left in TMP Files created by K3CHANG Backdoor Ketrican

APT / actorKetricanSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compila con YARA-X
Autor
Markus Neis, Swisscom
Fecha
2020-06-18
Modificada
2023-12-05
Puntuación / Calidad
75 / 85

Qué detecta esta regla

Detects Strings left in TMP Files created by K3CHANG Backdoor Ketrican

Familia de malware asociada: Ketrican.

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

apt-ke3chang-tmpfile.yarDetection Rule License 1.1
rule SIGNATURE_BASE_APT_KE3CHANG_TMPFILE : APT KE3CHANG TMPFILE FILE
{
	meta:
		description = "Detects Strings left in TMP Files created by K3CHANG Backdoor Ketrican"
		author = "Markus Neis, Swisscom"
		id = "84d411af-ea3d-5862-8c2f-7caca60c1b66"
		date = "2020-06-18"
		modified = "2023-12-05"
		reference = "https://app.any.run/tasks/a96f4f9d-c27d-490b-b5d3-e3be0a1c93e9/"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_ke3chang.yar#L1-L21"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "4ef11e84d5203c0c425d1a76d4bf579883d40577c2e781cdccc2cc4c8a8d346f"
		logic_hash = "75c97fe2eeb82e09f52e98d76bd529824f171da4c802b5febc1036314d8145f0"
		score = 75
		quality = 85
		tags = "APT, KE3CHANG, TMPFILE, FILE"

	strings:
		$pps1 = "PSParentPath             : Microsoft.PowerShell.Core\\Registry::HKEY_CURRENT_USE" fullword ascii
		$pps2 = "PSPath                   : Microsoft.PowerShell.Core\\Registry::HKEY_CURRENT_USE" fullword ascii
		$psp1 = ": Microsoft.PowerShell.Core\\Registry" ascii
		$s4 = "PSChildName  : PhishingFilter" fullword ascii
		$s1 = "DisableFirstRunCustomize : 2" fullword ascii
		$s7 = "PSChildName  : 3" fullword ascii
		$s8 = "2500         : 3" fullword ascii

	condition:
		uint16( 0 ) == 0x5350 and filesize < 1KB and $psp1 and 1 of ( $pps* ) and 1 of ( $s* )
}

Cadenas (7 patrones)

IdentificadorTipoValorModificadores
$pps1texto"PSParentPath : Microsoft.PowerShell.Core\\Registry::HKEY_CURRENT_USE"fullword ascii
$pps2texto"PSPath : Microsoft.PowerShell.Core\\Registry::HKEY_CURRENT_USE"fullword ascii
$psp1texto": Microsoft.PowerShell.Core\\Registry"ascii
$s4texto"PSChildName : PhishingFilter"fullword ascii
$s1texto"DisableFirstRunCustomize : 2"fullword ascii
$s7texto"PSChildName : 3"fullword ascii
$s8texto"2500 : 3"fullword ascii

Condición

uint16( 0 ) == 0x5350 and filesize < 1KB and $psp1 and 1 of ( $pps* ) and 1 of ( $s* )

En palabras sencillas (Heurística)

  • El archivo debe ocupar menos de 1KB (un límite barato que descarta archivos grandes).
  • Deben coincidir al menos 1 patrones de ( $pps* ).
  • Deben coincidir al menos 1 patrones de ( $s* ).
  • El patrón $psp1 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

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

  • 4ef11e84d5203c0c425d1a76d4bf579883d40577c2e781cdccc2cc4c8a8d346f

Licencia y atribución

Autor: Markus Neis, Swisscom

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: 84d411af-ea3d-5862-8c2f-7caca60c1b66

Etiquetas:APTKE3CHANGTMPFILEFILE

Más reglas de Ketrican