Skip to content

Instantly share code, notes, and snippets.

@GelosSnake
Last active September 20, 2022 18:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save GelosSnake/c2d4d6ef6f93ccb7d3afb5b1e26c7b4e to your computer and use it in GitHub Desktop.
Save GelosSnake/c2d4d6ef6f93ccb7d3afb5b1e26c7b4e to your computer and use it in GitHub Desktop.
very simple yara to find xmrig Crypto-Miners
rule MinerGate
{
strings:
$a1 = "minergate.com"
condition:
$a1
}
rule MoneroOrg
{
strings:
$a1 = "POOL.MONERO.ORG"
$a2 = "pool.monero.org"
condition:
$a1 or $a2
}
rule cryptonotepool
{
strings:
$a1 = "cryptonotepool.org.uk"
condition:
$a1
}
rule minexmr
{
strings:
$a1 = "minexmr.com"
$a2 = "x.opmoner.com"
condition:
$a1 or $a2
}
rule monerocryptopoolfr
{
strings:
$a1 = "monero.crypto-pool.fr"
condition:
$a1
}
rule monerobackuppoolcom
{
strings:
$a1 = "monero.backup-pool.com"
condition:
$a1
}
rule monerohashcom
{
strings:
$a1 = "monerohash.com"
condition:
$a1
}
rule mropooltobe
{
strings:
$a1 = "mro.poolto.be"
condition:
$a1
}
rule moneroxminingpoolcom
{
strings:
$a1 = "monero.xminingpool.com"
condition:
$a1
}
rule xmrprohashnet
{
strings:
$a1 = "xmr.prohash.net"
condition:
$a1
}
rule dwarfpoolcom
{
strings:
$a1 = "dwarfpool.com"
condition:
$a1
}
rule xmrcryptopoolsorg
{
strings:
$a1 = "xmr.crypto-pools.org"
condition:
$a1
}
rule moneronet
{
strings:
$a1 = "monero.net"
condition:
$a1
}
rule hashinvestnet
{
strings:
$a1 = "hashinvest.net"
condition:
$a1
}
rule stratum_tcp_general
{
strings:
$a1 = "stratum+tcp"
$a2 = "stratum+udp"
condition:
$a1 or $a2
}
@silascutler
Copy link

silascutler commented Sep 13, 2018

rule miner
{
	strings:
    $a1 = "stratum+tcp"
    $a2 = "stratum+udp"
    condition:
    $a1 or $a2
}

@GelosSnake
Copy link
Author

good point

@GelosSnake
Copy link
Author

updated

@robotfactory
Copy link

I absolutely love the simplicity of looking for the stratum+tcp and stratum+udp strings. I really think this could catch the majority of miners that aren't heavily obfuscated.

@FabianBorz01
Copy link

I tried them but they don't work.

@GelosSnake
Copy link
Author

thanks very constructive and self explanatory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment