Medium severityET COINMINERActive in PcapHub scans

ET COINMINER W32/BitCoinMiner.MultiThreat Subscribe/Authorize Stratum Protocol Message

SID 2017871 · rev 8 · classtype coin-mining

What this signature means

A coin mining rule: cryptocurrency mining traffic, often from a compromised host.

Generated from the rule itself: its category, classtype and metadata. Nothing here is guessed.

What it watches

TCP traffic from a monitored host to an outside host, in an established connection, from client to server.

It fires when

  • the packet payload does not start with "EHLO"
  • the packet payload contains "|22|id|22 3A|" (bytes between | | are hexadecimal)
  • the packet payload contains "|22|method|22 3A|" (bytes between | | are hexadecimal)
  • the packet payload contains "|22|mining." (bytes between | | are hexadecimal) (within 9 bytes of the previous match)
  • the packet payload contains "|22|params|22|" (bytes between | | are hexadecimal) (within 50 bytes of the previous match)
  • the packet payload matches the regular expression "/\x22mining\x2E(subscribe|authorize)\x22/"

What Emerging Threats says

  • Emerging Threats rates it major with high confidence.
  • Target: Client Endpoint.
  • MITRE ATT&CK technique T1496 (Resource Hijacking), tactic Impact.
  • Meant for perimeter sensors.

Good to know

  • Active in PcapHub's scan set: every uploaded capture is checked against it.

Public captures that trigger it1

Rule

alert tcp $HOME_NET any -> $EXTERNAL_NET any (msg:"ET COINMINER W32/BitCoinMiner.MultiThreat Subscribe/Authorize Stratum Protocol Message"; flow:established,to_server; content:!"EHLO"; startswith; content:"|22|id|22 3A|"; content:"|22|method|22 3A|"; content:"|22|mining."; within:9; content:"|22|params|22|"; within:50; pcre:"/\x22mining\x2E(subscribe|authorize)\x22/"; reference:url,research.zscaler.com/2013/12/bitcoin-mining-operation-seen-across.html; reference:url,www.btcguild.com/new_protocol.php; reference:url,mining.bitcoin.cz/stratum-mining; classtype:coin-mining; sid:2017871; rev:8; metadata:attack_target Client_Endpoint, created_at 2013_12_17, deployment Perimeter, confidence High, signature_severity Major, tag Coinminer, updated_at 2023_01_24, reviewed_at 2024_04_19, mitre_tactic_id TA0040, mitre_tactic_name Impact, mitre_technique_id T1496, mitre_technique_name Resource_Hijacking;)

Emerging Threats Open. Rule created Dec 17, 2013. Last revised by ET Jan 24, 2023. Text on PcapHub refreshed 7mo ago.