Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Pcrat

Detects PCRat / Gh0st

MalwarePcratditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
Autor
ditekSHen
Fecha
2020-11-06
Modificada
2024-11-01
Puntuación / Calidad
75 / 75

Qué detecta esta regla

Detects PCRat / Gh0st

Familia de malware asociada: Pcrat.

Objetivos: PE de Windows.

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

malware-win-pcrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Pcrat : FILE
{
	meta:
		description = "Detects PCRat / Gh0st"
		author = "ditekSHen"
		id = "de5b3e08-16da-56e2-a0a4-d8bed5840804"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L8534-L8561"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "ad56d7d6a2bb6d09bc4530c31b51456b6bbca5def1810449fd2a31973cce18f8"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "ClearEventLogA" fullword ascii
		$s2 = "NetUserAdd" fullword ascii
		$s3 = "<H1>403 Forbidden</H1>" fullword ascii
		$s4 = ":]%d-%d-%d  %d:%d:%d" fullword ascii
		$s5 = "Mozilla/4.0 (compatible)" fullword ascii
		$s6 = "<Enter>" fullword ascii
		$s7 = "\\cmd.exe" fullword ascii
		$s8 = "Program Files\\Internet Explorer\\IEXPLORE.EXE" fullword ascii
		$s9 = "Collegesoft ScenicPlayer" fullword wide
		$a1 = "360tray.exe" fullword ascii
		$a2 = "avp.exe" fullword ascii
		$a3 = "RavMonD.exe" fullword ascii
		$a4 = "360sd.exe" fullword ascii
		$a5 = "Mcshield.exe" fullword ascii
		$a6 = "egui.exe" fullword ascii
		$a7 = "kxetray.exe" fullword ascii
		$a8 = "knsdtray.exe" fullword ascii
		$a9 = "TMBMSRV.exe" fullword ascii
		$a10 = "avcenter.exe" fullword ascii
		$a11 = "ashDisp.exe" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and 5 of ( $s* ) and 6 of ( $a* )
}

Cadenas (20 patrones)

IdentificadorTipoValorModificadores
$s1texto"ClearEventLogA"fullword ascii
$s2texto"NetUserAdd"fullword ascii
$s3texto"<H1>403 Forbidden</H1>"fullword ascii
$s4texto":]%d-%d-%d %d:%d:%d"fullword ascii
$s5texto"Mozilla/4.0 (compatible)"fullword ascii
$s6texto"<Enter>"fullword ascii
$s7texto"\\cmd.exe"fullword ascii
$s8texto"Program Files\\Internet Explorer\\IEXPLORE.EXE"fullword ascii
$s9texto"Collegesoft ScenicPlayer"fullword wide
$a1texto"360tray.exe"fullword ascii
$a2texto"avp.exe"fullword ascii
$a3texto"RavMonD.exe"fullword ascii
$a4texto"360sd.exe"fullword ascii
$a5texto"Mcshield.exe"fullword ascii
$a6texto"egui.exe"fullword ascii
$a7texto"kxetray.exe"fullword ascii
$a8texto"knsdtray.exe"fullword ascii
$a9texto"TMBMSRV.exe"fullword ascii
$a10texto"avcenter.exe"fullword ascii
$a11texto"ashDisp.exe"fullword ascii

Condición

uint16( 0 ) == 0x5a4d and 5 of ( $s* ) and 6 of ( $a* )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 5 patrones de ( $s* ).
  • Deben coincidir al menos 6 patrones de ( $a* ).

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: ditekSHen

Repositorio de origen: ditekSHen detection @ e76c93dcde

Licencia: BSD 2-Clause License (licencia del repositorio)

Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

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: de5b3e08-16da-56e2-a0a4-d8bed5840804

Etiquetas:FILE