Scripting or Unsigned Binary Performing DNS Lookups to Ethereum RPC Providers
Description
Identifies scripting engines or unsigned/suspicious-path processes followed by DNS lookups to known Ethereum RPC provider domains. This may indicate cryptocurrency mining, wallet drainers, or other blockchain-related malware using public RPC infrastructure for command and control or on-chain interaction.
Query · eql
sequence by process.entity_id with maxspan=5m
[process where event.action == "start" and
(
process.name : ("node.exe", "javaw.exe", "python*.exe", "deno.exe", "powershell.exe", "wscript.exe", "AutoIt*.exe") or
process.pe.original_file_name : ("node.exe", "javaw.exe", "java.exe", "python*.exe", "deno.exe", "powershell.exe", "wscript.exe", "AutoIt*.exe") or
process.code_signature.subject_name : ("OpenJS Foundation", "Python Software Foundation", "Deno", "Eclipse.org Foundation, Inc.", "AutoIt Consulting Ltd") or
((process.code_signature.trusted == false or process.code_signature.exists == false) and
(process.Ext.relative_file_name_modify_time <= 500 or process.Ext.relative_file_creation_time <= 500))
)]
[dns where dns.question.name : (
"*ethereum.org",
"*infura.io",
"*alchemy.com",
"*alchemyapi.io",
"*ankr.com",
"*quiknode.pro",
"*tatum.io",
"*thirdweb.com",
"*tenderly.co",
"*flashbots.net",
"*mevblocker.io",
"*drpc.org",
"*blockpi.network",
"*llamarpc.com",
"*1rpc.io",
"*0xrpc.io",
"*nodies.app",
"*blastapi.io",
"*nownodes.io",
"*pokt.network",
"*merkle.io",
"*blinklabs.xyz",
"*leorpc.com",
"*publicnode.com",
"*cloudflare-eth.com",
"*payload.de",
"*etherscan.io",
"*api.etherscan.io",
"*ethplorer.io",
"*blockchair.com",
"*eth-mainnet.gateway.pokt.network",
"*gateway.pokt.network",
"*pokt.io",
"*getblock.io",
"*chainstack.com",
"*moralis.io",
"*quicknode.com",
"*quiknode.com",
"*figment.io",
"*nodesmith.io",
"*blockdaemon.com",
"*onfinality.io",
"*ankr-rpc.com",
"*rpc.flashbots.net",
"*rpc.mevblocker.io",
"*eth.llamarpc.com",
"*mainnet.publicnode.com",
"*ethereum.publicnode.com",
"*rpc.payload.de",
"*hardhat.org",
"*foundry.paradigm.xyz",
"*paradigm.xyz",
"*ethrpc.com",
"*web3api.com"
)]