Saltar al contenido

YARA · Trellix Advanced Research Center

TRELLIX_ARC_Cryptonar_Ransomware

Rule to detect CryptoNar Ransomware

MalwareCryptoNarTrellix Advanced Research CenterApache License 2.0Compila con YARA-X
Autor
Marc Rivero | McAfee ATR Team
Fecha
2026-09-01
Modificada
2020-08-14
Puntuación / Calidad
75 / 70

Qué detecta esta regla

Rule to detect CryptoNar Ransomware

Familia de malware asociada: CryptoNar.

Objetivos: PE de Windows.

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

cryptonar-ransomware.yarApache License 2.0
rule TRELLIX_ARC_Cryptonar_Ransomware : RANSOMWARE FILE
{
	meta:
		description = "Rule to detect CryptoNar Ransomware"
		author = "Marc Rivero | McAfee ATR Team"
		id = "0911250f-fc1f-58bc-ac09-d77d2a2ed3ce"
		date = "2026-09-01"
		modified = "2020-08-14"
		reference = "https://www.bleepingcomputer.com/news/security/cryptonar-ransomware-discovered-and-quickly-decrypted/"
		source_url = "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/ransomware/RANSOM_CryptoNar.yar#L1-L36"
		license_url = "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/LICENSE"
		logic_hash = "04c1c4f45ad3552aa0876c3b645c6ca92493018f7fdc5d9d9ed26cf67199d21b"
		score = 75
		quality = 70
		tags = "RANSOMWARE, FILE"
		malware_type = "ransomware"
		malware_family = "Ransom:W32/CryptoNar"
		actor_type = "Cybercrime"
		actor_group = "Unknown"

	strings:
		$s1 = "C:\\narnar\\CryptoNar\\CryptoNarDecryptor\\obj\\Debug\\CryptoNar.pdb" fullword ascii
		$s2 = "CryptoNarDecryptor.exe" fullword wide
		$s3 = "server will eliminate the key after 72 hours since its generation (since the moment your computer was infected). Once this has " fullword ascii
		$s4 = "Do not delete this file, else the decryption process will be broken" fullword wide
		$s5 = "key you received, and wait until the decryption process is done." fullword ascii
		$s6 = "In order to receive your decryption key, you will have to pay $200 in bitcoins to this bitcoin address: [bitcoin address]" fullword ascii
		$s7 = "Decryption process failed" fullword wide
		$s8 = "CryptoNarDecryptor.KeyValidationWindow.resources" fullword ascii
		$s9 = "Important note: Removing CryptoNar will not restore access to your encrypted files." fullword ascii
		$s10 = "johnsmith987654@tutanota.com" fullword wide
		$s11 = "Decryption process will start soon" fullword wide
		$s12 = "CryptoNarDecryptor.DecryptionProgressBarForm.resources" fullword ascii
		$s13 = "DecryptionProcessProgressBar" fullword wide
		$s14 = "CryptoNarDecryptor.Properties.Resources.resources" fullword ascii

	condition:
		( uint16( 0 ) == 0x5a4d and filesize < 2000KB ) and all of them
}

Cadenas (14 patrones)

IdentificadorTipoValorModificadores
$s1texto"C:\\narnar\\CryptoNar\\CryptoNarDecryptor\\obj\\Debug\\CryptoNar.pdb"fullword ascii
$s2texto"CryptoNarDecryptor.exe"fullword wide
$s3texto"server will eliminate the key after 72 hours since its generation (since the moment your computer was infected). Once this has "fullword ascii
$s4texto"Do not delete this file, else the decryption process will be broken"fullword wide
$s5texto"key you received, and wait until the decryption process is done."fullword ascii
$s6texto"In order to receive your decryption key, you will have to pay $200 in bitcoins to this bitcoin address: [bitcoin address]"fullword ascii
$s7texto"Decryption process failed"fullword wide
$s8texto"CryptoNarDecryptor.KeyValidationWindow.resources"fullword ascii
$s9texto"Important note: Removing CryptoNar will not restore access to your encrypted files."fullword ascii
$s10texto"johnsmith987654@tutanota.com"fullword wide
$s11texto"Decryption process will start soon"fullword wide
$s12texto"CryptoNarDecryptor.DecryptionProgressBarForm.resources"fullword ascii
$s13texto"DecryptionProcessProgressBar"fullword wide
$s14texto"CryptoNarDecryptor.Properties.Resources.resources"fullword ascii

Condición

( uint16( 0 ) == 0x5a4d and filesize < 2000KB ) and all of them

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • El archivo debe ocupar menos de 2000KB (un límite barato que descarta archivos grandes).
  • Deben coincidir todos los patrones de la regla.

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: Marc Rivero | McAfee ATR Team

Repositorio de origen: Trellix Advanced Research Center @ 1919562a59

Licencia: Apache License 2.0 (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: 0911250f-fc1f-58bc-ac09-d77d2a2ed3ce

Metadatos

malware_typeransomware
malware_familyRansom:W32/CryptoNar
actor_typeCybercrime
actor_groupUnknown

Etiquetas:RANSOMWAREFILE