Saltar al contenido

YARA · CAPE Sandbox (CAPEv2)

CAPE_Netsupport

Detects NetSupport Manager RAT on disk or in memory

MalwareCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compila con YARA-X
Autor
YungBinary
Fecha
2025-10-17
Puntuación / Calidad
75 / 70

Qué detecta esta regla

Detects NetSupport Manager RAT on disk or in memory

Objetivos: PE de Windows.

Define 4 patrones (4 de texto, 0 hex, 0 regex). Módulos YARA usados: pe.

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

Código de la regla

Incluye los imports necesarios para compilarla por sí sola.

netsupport.yarGNU General Public License v3.0
import "pe"

rule CAPE_Netsupport : FILE
{
	meta:
		description = "Detects NetSupport Manager RAT on disk or in memory"
		author = "YungBinary"
		id = "c517193e-bee3-59c4-9fbf-aad01ee13379"
		date = "2025-10-17"
		modified = "2025-10-17"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/NetSupport.yar#L3-L16"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "d12e46d74ae0ba9f599d27dc2f55ff92a6648accbcd1a43cc3f1a9a2755e5fc7"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "NetSupport Payload"

	strings:
		$a1 = "NetSupport Manager" wide
		$b1 = "NetSupport Remote Control" wide
		$s1 = "Client Application" wide
		$s2 = "NetSupport Ltd" wide

	condition:
		uint16( 0 ) == 0x5a4d and ( ( pe.imports ( "PCICL32.dll" , "_NSMClient32@8" ) ) or ( ( $a1 and $b1 ) or ( $s1 and $s2 ) ) )
}

Cadenas (4 patrones)

IdentificadorTipoValorModificadores
$a1texto"NetSupport Manager"wide
$b1texto"NetSupport Remote Control"wide
$s1texto"Client Application"wide
$s2texto"NetSupport Ltd"wide

Condición

uint16( 0 ) == 0x5a4d and ( ( pe.imports ( "PCICL32.dll" , "_NSMClient32@8" ) ) or ( ( $a1 and $b1 ) or ( $s1 and $s2 ) ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Usa el módulo pe.
  • El patrón $a1 debe estar presente.
  • El patrón $b1 debe estar presente.
  • El patrón $s1 debe estar presente.
  • El patrón $s2 debe estar presente.
  • Comprueba funciones o bibliotecas importadas.

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

Repositorio de origen: CAPE Sandbox (CAPEv2) @ 6b15e76f28

Licencia: GNU General Public License v3.0 (licencia del repositorio)

Aviso de copyright: Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.

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: c517193e-bee3-59c4-9fbf-aad01ee13379

Metadatos

cape_typeNetSupport Payload

Etiquetas:FILE

  • MalwareCAPE Sandbox (CAPEv2)· YungBinary· 2025-09-04
  • MalwareCAPE Sandbox (CAPEv2)· YungBinary· 2024-10-25
  • GenéricaCAPE Sandbox (CAPEv2)· YungBinary· 2026-04-11
  • GenéricaCAPE Sandbox (CAPEv2)· YungBinary· 2025-10-24