Skip to content

YARA · Trellix Advanced Research Center

TRELLIX_ARC_Cryptonar_Ransomware

Rule to detect CryptoNar Ransomware

MalwareCryptoNarTrellix Advanced Research CenterApache License 2.0Compiles with YARA-X
Author
Marc Rivero | McAfee ATR Team
Date
2026-09-01
Modified
2020-08-14
Score / Quality
75 / 70

What this rule detects

Rule to detect CryptoNar Ransomware

Associated malware family: CryptoNar.

Targets: Windows PE.

It defines 14 patterns (14 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

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
}

Strings (14 patterns)

IdentifierTypeValueModifiers
$s1text"C:\\narnar\\CryptoNar\\CryptoNarDecryptor\\obj\\Debug\\CryptoNar.pdb"fullword ascii
$s2text"CryptoNarDecryptor.exe"fullword wide
$s3text"server will eliminate the key after 72 hours since its generation (since the moment your computer was infected). Once this has "fullword ascii
$s4text"Do not delete this file, else the decryption process will be broken"fullword wide
$s5text"key you received, and wait until the decryption process is done."fullword ascii
$s6text"In order to receive your decryption key, you will have to pay $200 in bitcoins to this bitcoin address: [bitcoin address]"fullword ascii
$s7text"Decryption process failed"fullword wide
$s8text"CryptoNarDecryptor.KeyValidationWindow.resources"fullword ascii
$s9text"Important note: Removing CryptoNar will not restore access to your encrypted files."fullword ascii
$s10text"johnsmith987654@tutanota.com"fullword wide
$s11text"Decryption process will start soon"fullword wide
$s12text"CryptoNarDecryptor.DecryptionProgressBarForm.resources"fullword ascii
$s13text"DecryptionProcessProgressBar"fullword wide
$s14text"CryptoNarDecryptor.Properties.Resources.resources"fullword ascii

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 2000KB (a cheap guard that skips large files).
  • All patterns in the rule must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: Marc Rivero | McAfee ATR Team

Source repository: Trellix Advanced Research Center @ 1919562a59

Licence: Apache License 2.0 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 0911250f-fc1f-58bc-ac09-d77d2a2ed3ce

Metadata

malware_typeransomware
malware_familyRansom:W32/CryptoNar
actor_typeCybercrime
actor_groupUnknown

Tags:RANSOMWAREFILE