YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_RANSOM_Ragna_Locker_Apr20_1
Detects Ragna Locker Ransomware
- Author
- Florian Roth (Nextron Systems)
- Date
- 2020-04-27
- Modified
- 2023-12-05
- Score / Quality
- 75 / 85
What this rule detects
Detects Ragna Locker Ransomware
Targets: Windows PE.
It defines 8 patterns (2 text, 6 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_MAL_RANSOM_Ragna_Locker_Apr20_1 : FILE
{
meta:
= "Detects Ragna Locker Ransomware"
= "Florian Roth (Nextron Systems)"
= "67164cb4-73b7-5c4e-88f9-42379b88c641"
= "2020-04-27"
= "2023-12-05"
= "https://otx.alienvault.com/indicator/file/c2bd70495630ed8279de0713a010e5e55f3da29323b59ef71401b12942ba52f6"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/crime_ransom_ragna_locker.yar#L3-L36"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "c2bd70495630ed8279de0713a010e5e55f3da29323b59ef71401b12942ba52f6"
= "05a18818f22c836c3e1f1fa9682d787bbe86e6d3bb026a80a7d4c33ad95c2cd3"
= 75
= 85
= "FILE"
strings:
$x1 = "---RAGNAR SECRET---" ascii
$xc1 = { 0D 0A 25 73 0D 0A 0D 0A 25 73 0D 0A 25 73 0D 0A
25 73 0D 0A 0D 0A 25 73 0D 0A 00 00 2E 00 72 00
61 00 67 00 6E 00 61 00 72 00 5F }
$xc2 = { 00 2D 00 66 00 6F 00 72 00 63 00 65 00 00 00 00
00 57 00 69 00 6E 00 53 00 74 00 61 00 30 00 5C
00 44 00 65 00 66 00 61 00 75 00 6C 00 74 00 00
00 5C 00 6E 00 6F 00 74 00 65 00 70 00 61 00 64
00 2E 00 65 00 78 00 65 00 }
$s1 = "bootfont.bin" wide fullword
$sc2 = { 00 57 00 69 00 6E 00 64 00 6F 00 77 00 73 00 00
00 57 00 69 00 6E 00 64 00 6F 00 77 00 73 00 2E
00 6F 00 6C 00 64 00 00 00 54 00 6F 00 72 00 20
00 62 00 72 00 6F 00 77 00 73 00 65 00 72 00 }
$op1 = { c7 85 58 ff ff ff 55 00 6b 00 c7 85 5c ff ff ff }
$op2 = { 50 c7 85 7a ff ff ff 5c }
$op3 = { 8b 75 08 8a 84 0d 20 ff ff ff ff 45 08 32 06 8b }
condition:
uint16( 0 ) == 0x5a4d and filesize < 200KB and 1 of ( $x* ) or 4 of them
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "---RAGNAR SECRET---" | ascii |
| $xc1 | hex | { 0D 0A 25 73 0D 0A 0D 0A 25 73 0D 0A 25 73 0D 0A 25 73 0D 0A 0D 0A 25 73 0D 0A 00 00 2E 00 72 00 61 00 67 00 6E 00 61 00 72 00 5F … | |
| $xc2 | hex | { 00 2D 00 66 00 6F 00 72 00 63 00 65 00 00 00 00 00 57 00 69 00 6E 00 53 00 74 00 61 00 30 00 5C 00 44 00 65 00 66 00 61 00 75 00 … | |
| $s1 | text | "bootfont.bin" | wide fullword |
| $sc2 | hex | { 00 57 00 69 00 6E 00 64 00 6F 00 77 00 73 00 00 00 57 00 69 00 6E 00 64 00 6F 00 77 00 73 00 2E 00 6F 00 6C 00 64 00 00 00 54 00 … | |
| $op1 | hex | { c7 85 58 ff ff ff 55 00 6b 00 c7 85 5c ff ff ff } | |
| $op2 | hex | { 50 c7 85 7a ff ff ff 5c } | |
| $op3 | hex | { 8b 75 08 8a 84 0d 20 ff ff ff ff 45 08 32 06 8b } |
Condition
uint16( 0 ) == 0x5a4d and filesize < 200KB and 1 of ( $x* ) or 4 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 200KB (a cheap guard that skips large files).
- At least 1 patterns in ( $x* ) must match.
- At least 4 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.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- c2bd70495630ed8279de0713a010e5e55f3da29323b59ef71401b12942ba52f6
Licence & attribution
Author: Florian Roth (Nextron Systems)
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 67164cb4-73b7-5c4e-88f9-42379b88c641
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-03-15
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-03-03
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-01-16
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-05-10
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-05-04
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-01-29
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-10-13
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-08-03