Potential EtherHiding C2 via Curl JSON-RPC Request

Last updated a month ago on 2026-09-18
Created a month ago on 2026-09-08

About

Detects when curl or nscurl is spawned by a shell or osascript to make a JSON-RPC request to a blockchain endpoint for command and control purposes. Adversaries may leverage blockchain smart contracts as a covert C2 channel to retrieve commands or payload staging information, as observed in ClickFix campaigns.
Tags
Domain: EndpointOS: macOSUse Case: Threat DetectionTactic: Command and ControlTactic: ExecutionData Source: Elastic DefendRule Type: Event Correlation (EQL)Platform: macOSLanguage: eql
Severity
high
Risk Score
73
MITRE ATT&CK™

Command and Control (TA0011)(external, opens in a new tab or window)

Execution (TA0002)(external, opens in a new tab or window)

License
Elastic License v2(external, opens in a new tab or window)

Definition

Rule Type
Event Correlation Rule
Integration Pack
Prebuilt Security Detection Rules
Index Patterns
logs-endpoint.events.process-*
Related Integrations

endpoint(external, opens in a new tab or window)

Query
text code block:
process where host.os.type == "macos" and event.type == "start" and event.action == "exec" and process.name in ("curl", "nscurl") and process.parent.name in ("osascript", "bash", "sh", "zsh") and process.command_line like~ ("*eth_call*", "*\"jsonrpc\"*")

Install detection rules in Elastic Security

Detect Potential EtherHiding C2 via Curl JSON-RPC Request in the Elastic Security detection engine by installing this rule into your Elastic Stack.

To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).