Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Ransomware_Win_Masons_Jan2023

Rule to detect Masons ransomware samples.

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-02-13
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Rule to detect Masons ransomware samples.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

ransomware-win-masons-jan2023.yarDetection Rule License 1.1
rule SEKOIA_Ransomware_Win_Masons_Jan2023 : FILE
{
	meta:
		description = "Rule to detect Masons ransomware samples."
		author = "Sekoia.io"
		id = "cf2af08b-b4a8-4245-9308-242e15aeb346"
		date = "2023-02-13"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/ransomware_win_masons_jan2023.yar#L1-L18"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "7826978642c568f975e2b65d1575fdf92e634f7c80db2c86c9d7c8066e8955b8"
		logic_hash = "05badf0364c6f61cd081a3ae64bc92b48e6f59c026a5d6b5b68acd5a8987cf91"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "Masons" wide
		$s2 = "@mineralIaha/@root_king1" wide
		$s3 = "Glory @six62ix" wide

	condition:
		uint16be( 0 ) == 0x4d5a and all of them
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$s1text"Masons"wide
$s2text"@mineralIaha/@root_king1"wide
$s3text"Glory @six62ix"wide

Condition

uint16be( 0 ) == 0x4d5a and all of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • 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.

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).

  • 7826978642c568f975e2b65d1575fdf92e634f7c80db2c86c9d7c8066e8955b8

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

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: cf2af08b-b4a8-4245-9308-242e15aeb346

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE