Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Miner_Win_Xmrig_Strings

Detects XMRig EXE

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

What this rule detects

Detects XMRig EXE

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

Summary generated from the rule's metadata and condition.

Rule source

miner-win-xmrig-strings.yarDetection Rule License 1.1
rule SEKOIA_Miner_Win_Xmrig_Strings : FILE
{
	meta:
		description = "Detects XMRig EXE"
		author = "Sekoia.io"
		id = "35f203aa-20cd-4235-9ead-b34be14255d5"
		date = "2024-01-04"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/miner_win_xmrig_strings.yar#L1-L35"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "34aa0da9d3bb277927c87a3745ec9e35881682319c91141da6ff1cff7e0610d9"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "XMRig "
		$ = "pool_wallet"
		$ = "IP Address currently banned"
		$ = "rigid"
		$ = "diff_current"
		$ = "shares_good"
		$ = "shares_total"
		$ = "avg_time"
		$ = "avg_time_ms"
		$ = "hashes_total"
		$ = "pool address"
		$ = "ping time"
		$ = "connection time"
		$ = "daemon+wss://"
		$ = "daemon+https://"
		$ = "daemon+http://"
		$ = "socks5://"
		$ = "stratum+ssl://"
		$ = "stratum+tcp://"

	condition:
		uint32be( 0 ) == 0x5A4D and filesize < 15MB and 7 of them
}

Strings (19 patterns)

IdentifierTypeValueModifiers
$text"XMRig "
$text"pool_wallet"
$text"IP Address currently banned"
$text"rigid"
$text"diff_current"
$text"shares_good"
$text"shares_total"
$text"avg_time"
$text"avg_time_ms"
$text"hashes_total"
$text"pool address"
$text"ping time"
$text"connection time"
$text"daemon+wss://"
$text"daemon+https://"
$text"daemon+http://"
$text"socks5://"
$text"stratum+ssl://"
$text"stratum+tcp://"

Condition

uint32be( 0 ) == 0x5A4D and filesize < 15MB and 7 of them

In plain words (Heuristic)

  • The file must be smaller than 15MB (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: 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: 35f203aa-20cd-4235-9ead-b34be14255d5

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE