Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_MAL_EXE_Royalransomware

Detection for Royal Ransomware seen Dec 2022

MalwareSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
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

mal-exe-royalransomware.yarDetection Rule License 1.1
rule SIGNATURE_BASE_MAL_EXE_Royalransomware : FILE
{
	meta:
		description = "Detection for Royal Ransomware seen Dec 2022"
		author = "Silas Cutler, modfied by Florian Roth"
		id = "f83316f7-b8c4-5907-a38e-80535215e7ef"
		date = "2023-01-03"
		modified = "2023-12-05"
		reference = "https://github.com/Neo23x0/signature-base"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_100days_of_yara_2023.yar#L197-L222"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "a8384c9e3689eb72fa737b570dbb53b2c3d103c62d46747a96e1e1becf14dfea"
		logic_hash = "6f93bade7709945b478cbdc721d85ad9243d56ace19fba25835cec13a6210dfb"
		score = 75
		quality = 85
		tags = "FILE"
		version = "1.0"
		DaysofYARA = "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)

IdentifierTypeValueModifiers
$x_exttext".royal_"wide
$x_fnametext"royal_dll.dll"
$s_readmetext"README.TXT"wide
$s_cli_flag01text"-networkonly"wide
$s_cli_flag02text"-localonly"wide
$x_ransom_msg01text"If you are reading this, it means that your system were hit by Royal ransomware."
$x_ransom_msg02text"Try Royal today and enter the new era of data security!"
$x_onion_sitetext"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.

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

Open in editor

References

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)

Original rule

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

version1.0
DaysofYARA3/100

Tags:FILE