YARA · Trellix Advanced Research Center
TRELLIX_ARC_Cryptonar_Ransomware
Rule to detect CryptoNar Ransomware
- 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:
= "Rule to detect CryptoNar Ransomware"
= "Marc Rivero | McAfee ATR Team"
= "0911250f-fc1f-58bc-ac09-d77d2a2ed3ce"
= "2026-09-01"
= "2020-08-14"
= "https://www.bleepingcomputer.com/news/security/cryptonar-ransomware-discovered-and-quickly-decrypted/"
= "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/ransomware/RANSOM_CryptoNar.yar#L1-L36"
= "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/LICENSE"
= "04c1c4f45ad3552aa0876c3b645c6ca92493018f7fdc5d9d9ed26cf67199d21b"
= 75
= 70
= "RANSOMWARE, FILE"
= "ransomware"
= "Ransom:W32/CryptoNar"
= "Cybercrime"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "C:\\narnar\\CryptoNar\\CryptoNarDecryptor\\obj\\Debug\\CryptoNar.pdb" | fullword ascii |
| $s2 | text | "CryptoNarDecryptor.exe" | fullword wide |
| $s3 | text | "server will eliminate the key after 72 hours since its generation (since the moment your computer was infected). Once this has " | fullword ascii |
| $s4 | text | "Do not delete this file, else the decryption process will be broken" | fullword wide |
| $s5 | text | "key you received, and wait until the decryption process is done." | fullword ascii |
| $s6 | text | "In order to receive your decryption key, you will have to pay $200 in bitcoins to this bitcoin address: [bitcoin address]" | fullword ascii |
| $s7 | text | "Decryption process failed" | fullword wide |
| $s8 | text | "CryptoNarDecryptor.KeyValidationWindow.resources" | fullword ascii |
| $s9 | text | "Important note: Removing CryptoNar will not restore access to your encrypted files." | fullword ascii |
| $s10 | text | "johnsmith987654@tutanota.com" | fullword wide |
| $s11 | text | "Decryption process will start soon" | fullword wide |
| $s12 | text | "CryptoNarDecryptor.DecryptionProgressBarForm.resources" | fullword ascii |
| $s13 | text | "DecryptionProcessProgressBar" | fullword wide |
| $s14 | text | "CryptoNarDecryptor.Properties.Resources.resources" | fullword ascii |
Condition
( uint16( 0 ) == 0x5a4d and filesize < 2000KB ) and all of themIn 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.
Licence & attribution
Author: Marc Rivero | McAfee ATR Team
Source repository: Trellix Advanced Research Center @ 1919562a59
Licence: Apache License 2.0 (repository licence)
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_type | ransomware |
|---|---|
| malware_family | Ransom:W32/CryptoNar |
| actor_type | Cybercrime |
| actor_group | Unknown |
Tags:RANSOMWAREFILE
Related rules
- MalwareTrellix Advanced Research Center· Marc Rivero | McAfee ATR Team· 2026-09-01
- MalwareTrellix Advanced Research Center· Marc Rivero | McAfee ATR Team· 2020-03-17
- MalwareTrellix Advanced Research Center· Marc Rivero | McAfee ATR Team· 2020-02-23
- MalwareTrellix Advanced Research Center· Marc Rivero | McAfee ATR Team· 2020-04-06
- MalwareTrellix Advanced Research Center· Marc Rivero | McAfee ATR Team· 2020-08-11
- MalwareTrellix Advanced Research Center· Marc Rivero | McAfee ATR Team· 2020-07-19
- MalwareTrellix Advanced Research Center· Marc Rivero | McAfee ATR Team· 2020-07-13
- MalwareTrellix Advanced Research Center· Marc Rivero | McAfee ATR Team· 2019-12-05