Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Crypter_Win_Dotrunpex

Detect the dotRunpeX crypter based on strings

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

What this rule detects

Detect the dotRunpeX crypter based on strings

Associated malware family: Dotrunpex.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

crypter-win-dotrunpex.yarDetection Rule License 1.1
rule SEKOIA_Crypter_Win_Dotrunpex : FILE
{
	meta:
		description = "Detect the dotRunpeX crypter based on strings"
		author = "Sekoia.io"
		id = "6fb4ffe0-3a5c-432c-8ae2-404bb5960c30"
		date = "2023-06-08"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/crypter_win_dotrunpex.yar#L1-L15"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "8a2b9e19b49ba17f976241bec5323121ba13d2ce39fdcf2777fd97a230211e75"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = {52 00 75 00 6e 00 70 00 65 00 58 00 2e 00 53 00 74 00 75 00 62 00 2e 00 46 00 72 00 61 00 6d 00 65 00 77 00 6f 00 72 00 6b 00 2e 00 65 00 78 00 65}

	condition:
		uint16( 0 ) == 0x5A4D and all of them
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$hex{52 00 75 00 6e 00 70 00 65 00 58 00 2e 00 53 00 74 00 75 00 62 00 2e 00 46 00 72 00 61 00 6d 00 65 00 77 00 6f 00 72 00 6b 00 2e 00 65 00 78 00 65}

Condition

uint16( 0 ) == 0x5A4D 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

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: 6fb4ffe0-3a5c-432c-8ae2-404bb5960c30

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Dotrunpex rules