YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_PUA_WIN_XMRIG_Cryptocoin_Miner_Dec20
Detects XMRIG crypto coin miners
- Author
- Florian Roth (Nextron Systems)
- Date
- 2020-12-31
- Modified
- 2023-12-05
- Score / Quality
- 75 / 85
What this rule detects
Detects XMRIG crypto coin miners
Targets: Windows PE.
It defines 3 patterns (3 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_PUA_WIN_XMRIG_Cryptocoin_Miner_Dec20 : FILE
{
meta:
= "Detects XMRIG crypto coin miners"
= "Florian Roth (Nextron Systems)"
= "4dfb04e9-fbba-5a6f-ad20-d805025d2d74"
= "2020-12-31"
= "2023-12-05"
= "https://www.intezer.com/blog/research/new-golang-worm-drops-xmrig-miner-on-servers/"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/crime_crypto_miner.yar#L19-L33"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "b6154d25b3aa3098f2cee790f5de5a727fc3549865a7aa2196579fe39a86de09"
= "c39aee669a98bcc9d07821aef248096e45a6c54ab22b8b98c0a393b445f3934e"
= 75
= 85
= "FILE"
strings:
$x1 = "xmrig.exe" fullword wide
$x2 = "xmrig.com" fullword wide
$x3 = "* for x86, CRYPTOGAMS" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and filesize < 6000KB and 2 of them or all of them
}
Strings (3 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "xmrig.exe" | fullword wide |
| $x2 | text | "xmrig.com" | fullword wide |
| $x3 | text | "* for x86, CRYPTOGAMS" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and filesize < 6000KB and 2 of them or all of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 6000KB (a cheap guard that skips large files).
- All patterns in the rule must match.
- At least 2 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.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- b6154d25b3aa3098f2cee790f5de5a727fc3549865a7aa2196579fe39a86de09
Licence & attribution
Author: Florian Roth (Nextron Systems)
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 4dfb04e9-fbba-5a6f-ad20-d805025d2d74
Tags:FILE
Related rules
- Potentially unwantedSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-07-25
- Potentially unwantedSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-10-24
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-01-16
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-01-16
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-02-25
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-03-15
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-03-03
- APT / threat actorSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2023-03-31