YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_EXE_Royalransomware
Detection for Royal Ransomware seen Dec 2022
- Author
- Silas Cutler, modfied by Florian Roth
- Date
- 2023-01-03
- Modified
- 2023-12-05
- Score / Quality
- 75 / 85
What this rule detects
Detection for Royal Ransomware seen Dec 2022
Targets: Windows PE.
It defines 8 patterns (8 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_MAL_EXE_Royalransomware : FILE
{
meta:
= "Detection for Royal Ransomware seen Dec 2022"
= "Silas Cutler, modfied by Florian Roth"
= "f83316f7-b8c4-5907-a38e-80535215e7ef"
= "2023-01-03"
= "2023-12-05"
= "https://github.com/Neo23x0/signature-base"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_100days_of_yara_2023.yar#L197-L222"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "a8384c9e3689eb72fa737b570dbb53b2c3d103c62d46747a96e1e1becf14dfea"
= "6f93bade7709945b478cbdc721d85ad9243d56ace19fba25835cec13a6210dfb"
= 75
= 85
= "FILE"
= "1.0"
= "3/100"
strings:
$x_ext = ".royal_" wide
$x_fname = "royal_dll.dll"
$s_readme = "README.TXT" wide
$s_cli_flag01 = "-networkonly" wide
$s_cli_flag02 = "-localonly" wide
$x_ransom_msg01 = "If you are reading this, it means that your system were hit by Royal ransomware."
$x_ransom_msg02 = "Try Royal today and enter the new era of data security!"
$x_onion_site = "http://royal2xthig3ou5hd7zsliqagy6yygk2cdelaxtni2fyad6dpmpxedid.onion/"
condition:
uint16( 0 ) == 0x5A4D and ( 2 of ( $x* ) or 5 of them )
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x_ext | text | ".royal_" | wide |
| $x_fname | text | "royal_dll.dll" | |
| $s_readme | text | "README.TXT" | wide |
| $s_cli_flag01 | text | "-networkonly" | wide |
| $s_cli_flag02 | text | "-localonly" | wide |
| $x_ransom_msg01 | text | "If you are reading this, it means that your system were hit by Royal ransomware." | |
| $x_ransom_msg02 | text | "Try Royal today and enter the new era of data security!" | |
| $x_onion_site | text | "http://royal2xthig3ou5hd7zsliqagy6yygk2cdelaxtni2fyad6dpmpxedid.onion/" |
Condition
uint16( 0 ) == 0x5A4D and ( 2 of ( $x* ) or 5 of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 2 patterns in ( $x* ) must match.
- At least 5 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).
- a8384c9e3689eb72fa737b570dbb53b2c3d103c62d46747a96e1e1becf14dfea
Licence & attribution
Author: Silas Cutler, modfied by Florian Roth
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: f83316f7-b8c4-5907-a38e-80535215e7ef
Metadata
| version | 1.0 |
|---|---|
| DaysofYARA | 3/100 |
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· Silas Cutler, modfied by Florian Roth· 2023-01-04