Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_Royalroad_Code_Pattern4Ab

Detects RoyalRoad weaponized RTF documents

GenericSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
nao_sec
Date
2020-01-15
Modified
2023-12-05
Score / Quality
80 / 85

What this rule detects

Detects RoyalRoad weaponized RTF documents

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

Summary generated from the rule's metadata and condition.

Rule source

royalroad-code-pattern4ab.yarDetection Rule License 1.1
rule SIGNATURE_BASE_Royalroad_Code_Pattern4Ab : FILE
{
	meta:
		description = "Detects RoyalRoad weaponized RTF documents"
		author = "nao_sec"
		id = "b4926888-b576-59f7-932a-03b9326845da"
		date = "2020-01-15"
		modified = "2023-12-05"
		reference = "https://jsac.jpcert.or.jp/archive/2020/pdf/JSAC2020_8_koike-nakajima_jp.pdf"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_royalroad.yar#L77-L92"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "dd9468b3208a27b6f3b56037013f06c4d2adbd201a12df141bc980ad595a75c0"
		score = 80
		quality = 85
		tags = "FILE"

	strings:
		$S1 = "4746424151515151505050500000000000584242EB064242423535333620446060606060606060606161616161616}1616161616161616161" ascii
		$RTF = "{\\rt"

	condition:
		$RTF at 0 and $S1
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$S1text"4746424151515151505050500000000000584242EB064242423535333620446060606060606060606161616161616}1616161616161616161"ascii
$RTFtext"{\\rt"

Condition

$RTF at 0 and $S1

In plain words (Heuristic)

  • Pattern $RTF must be found at offset 0.
  • Pattern $S1 must be present.

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: nao_sec

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: b4926888-b576-59f7-932a-03b9326845da

Tags:FILE