Skip to content

YARA · Malpedia signator rules

MALPEDIA_Win_Eternal_Petya_Auto

autogenerated rule brought to you by yara-signator

MalwareEternal PetyaMalpedia signator rulesCreative Commons Attribution-ShareAlike 4.0Compiles with YARA-X
Author
Felix Bilstein - yara-signator at cocacoding dot com
Date
2026-05-04
Modified
2026-05-18
Score / Quality
75 / 75

What this rule detects

autogenerated rule brought to you by yara-signator

Associated malware family: Eternal Petya.

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

Summary generated from the rule's metadata and condition.

Rule source

win-eternal-petya-auto.yarCreative Commons Attribution-ShareAlike 4.0
rule MALPEDIA_Win_Eternal_Petya_Auto : FILE
{
	meta:
		description = "autogenerated rule brought to you by yara-signator"
		author = "Felix Bilstein - yara-signator at cocacoding dot com"
		id = "40a6a56b-461a-5089-9b9a-08826cf36bea"
		date = "2026-05-04"
		modified = "2026-05-18"
		reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.eternal_petya"
		source_url = "https://github.com/malpedia/signator-rules//blob/c901f97b7df03e41917da74c2a84b04c227316c2/rules/win.eternal_petya_auto.yar#L1-L111"
		license_url = "N/A"
		logic_hash = "fc744f5a17b2ef749985f7e1eeb306b67917e723717039c9efe8a81d1eb305ff"
		score = 75
		quality = 75
		tags = "FILE"
		version = "1"
		tool = "yara-signator v0.6.0"
		signator_config = "callsandjumps;datarefs;binvalue"
		malpedia_rule_date = "20260422"
		malpedia_hash = "a182e35da64e6d71cb55f125c4d4225196523f14"
		malpedia_version = "20260504"
		malpedia_license = "CC BY-SA 4.0"
		malpedia_sharing = "TLP:WHITE"

	strings:
		$sequence_0 = { 51 57 68000000f0 6a18 }
		$sequence_1 = { 51 57 68000000f0 6a18 33ff }
		$sequence_2 = { 53 68f0000000 6a40 ff15???????? 8bd8 }
		$sequence_3 = { 8d45fc 50 56 6a01 56 }
		$sequence_4 = { 53 6a21 8d460c 50 }
		$sequence_5 = { 53 8d4644 50 53 6a02 }
		$sequence_6 = { 8bec 51 57 68000000f0 6a18 33ff }
		$sequence_7 = { 8bec 51 57 68000000f0 6a18 }
		$sequence_8 = { 57 68000000f0 6a18 33ff }
		$sequence_9 = { 53 8d4644 50 53 }

	condition:
		7 of them and filesize < 851968
}

Strings (10 patterns)

IdentifierTypeValueModifiers
$sequence_0hex{ 51 57 68000000f0 6a18 }
$sequence_1hex{ 51 57 68000000f0 6a18 33ff }
$sequence_2hex{ 53 68f0000000 6a40 ff15???????? 8bd8 }
$sequence_3hex{ 8d45fc 50 56 6a01 56 }
$sequence_4hex{ 53 6a21 8d460c 50 }
$sequence_5hex{ 53 8d4644 50 53 6a02 }
$sequence_6hex{ 8bec 51 57 68000000f0 6a18 33ff }
$sequence_7hex{ 8bec 51 57 68000000f0 6a18 }
$sequence_8hex{ 57 68000000f0 6a18 33ff }
$sequence_9hex{ 53 8d4644 50 53 }

Condition

7 of them and filesize < 851968

In plain words (Heuristic)

  • The file must be smaller than 851968 (a cheap guard that skips large files).
  • At least 7 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

Licence & attribution

Author: Felix Bilstein - yara-signator at cocacoding dot com

Source repository: Malpedia signator rules @ c901f97b7d

Licence: Creative Commons Attribution-ShareAlike 4.0 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 40a6a56b-461a-5089-9b9a-08826cf36bea

Metadata

version1
toolyara-signator v0.6.0
signator_configcallsandjumps;datarefs;binvalue
malpedia_rule_date20260422
malpedia_hasha182e35da64e6d71cb55f125c4d4225196523f14
malpedia_version20260504
malpedia_licenseCC BY-SA 4.0
malpedia_sharingTLP:WHITE

Tags:FILE