Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_PUA_Crypto_Mining_Commandline_Indicators_Oct21

Detects command line parameters often used by crypto mining software

Potentially unwantedSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth (Nextron Systems)
Date
2021-10-24
Modified
2023-12-05
Score / Quality
65 / 85

What this rule detects

Detects command line parameters often used by crypto mining software

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

Summary generated from the rule's metadata and condition.

Rule source

pua-crypto-mining-commandline-indicators-oct21.yarDetection Rule License 1.1
rule SIGNATURE_BASE_PUA_Crypto_Mining_Commandline_Indicators_Oct21 : SCRIPT FILE
{
	meta:
		description = "Detects command line parameters often used by crypto mining software"
		author = "Florian Roth (Nextron Systems)"
		id = "afe5a63a-08c3-5cb7-b4b1-b996068124b7"
		date = "2021-10-24"
		modified = "2023-12-05"
		reference = "https://www.poolwatch.io/coin/monero"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/pua_cryptocoin_miner.yar#L54-L88"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "7ae1a77d8ff02ec539ce2b8be668530c3f509f0c408dfa7f2b749b0a4d6f45b7"
		score = 65
		quality = 85
		tags = "SCRIPT, FILE"

	strings:
		$s01 = " --cpu-priority="
		$s02 = "--donate-level=0"
		$s03 = " -o pool."
		$s04 = " -o stratum+tcp://"
		$s05 = " --nicehash"
		$s06 = " --algo=rx/0 "
		$se1 = "LS1kb25hdGUtbGV2ZWw9"
		$se2 = "0tZG9uYXRlLWxldmVsP"
		$se3 = "tLWRvbmF0ZS1sZXZlbD"
		$se4 = "c3RyYXR1bSt0Y3A6Ly"
		$se5 = "N0cmF0dW0rdGNwOi8v"
		$se6 = "zdHJhdHVtK3RjcDovL"
		$se7 = "c3RyYXR1bSt1ZHA6Ly"
		$se8 = "N0cmF0dW0rdWRwOi8v"
		$se9 = "zdHJhdHVtK3VkcDovL"

	condition:
		filesize < 5000KB and 1 of them
}

Strings (15 patterns)

IdentifierTypeValueModifiers
$s01text" --cpu-priority="
$s02text"--donate-level=0"
$s03text" -o pool."
$s04text" -o stratum+tcp://"
$s05text" --nicehash"
$s06text" --algo=rx/0 "
$se1text"LS1kb25hdGUtbGV2ZWw9"
$se2text"0tZG9uYXRlLWxldmVsP"
$se3text"tLWRvbmF0ZS1sZXZlbD"
$se4text"c3RyYXR1bSt0Y3A6Ly"
$se5text"N0cmF0dW0rdGNwOi8v"
$se6text"zdHJhdHVtK3RjcDovL"
$se7text"c3RyYXR1bSt1ZHA6Ly"
$se8text"N0cmF0dW0rdWRwOi8v"
$se9text"zdHJhdHVtK3VkcDovL"

Condition

filesize < 5000KB and 1 of them

In plain words (Heuristic)

  • The file must be smaller than 5000KB (a cheap guard that skips large files).
  • At least 1 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: Florian Roth (Nextron Systems)

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: afe5a63a-08c3-5cb7-b4b1-b996068124b7

Tags:SCRIPTFILE