Command and Control (TA0011)(external, opens in a new tab or window)
text code block:network where host.os.type == "linux" and event.type == "start" and event.action == "connection_attempted" and ( process.executable like ( "/tmp/*", "/var/tmp/*", "/dev/shm/*", "/run/*", "/var/run/*", "/boot/*", "/sys/*", "*/www/html/*", "/lost+found/*", "/var/mail/*", "/var/www/*", "/mnt/*", "/media/*", "/proc/*/fd/*", "?memfd:*", "memfd:*", "*/wp-content/*", "*/wp-includes/*", "*/wp-admin/*" ) or process.name in ( "curl", "wget", "ftp", "tftp", "scp", "rsync", "bash", "dash", "sh", "tcsh", "csh", "zsh", "ksh", "fish", "busybox", "timeout", "env", "bun" ) or process.name like (".*", "python*", "perl*", "php*", "ruby*", "lua*", "node*", "deno*") ) and destination.as.number in ( // Storm Industries / StormCloud / Pfcloud / OMEGATECH 202412, 214472, 219502, 51396, // Ecatel / IP Volume / Novogara / SpectraIP 48090, 56611, 57717, 62068, 202425, 202769, 204655, // 4Vendeta / Tamatiya 200391, 204428, 207812, // KoDDoS / Amarutu 206264, // 1337 Services (rdp.sh) 210558, // TEAM-HOST 202984, // HOSTKEY (frequently abused for malware C2) 50867, 57043, // Proton66 / Prospero 198953, 200593, // Aeza / Hypercore (OFAC) 210644, 211522, 215552, 216246, // Stark / PQ.Hosting / WorkTitans / MIRhosting / UFO Hosting 33993, 44477, 52000, 209847, // Zservers / XHost 213010, 213194, 61336, 216071, // Media Land (OFAC) 48721, 206728, 211409, 215311, // ELITETEAM / 1337TEAM 39770, 51381, 56873, 60424, // aurologic downstream BPH brands 209800, 210281, 213887, 214351, 214940, 214943, 215789, 216309, // QWINS, GCSAS, Cloudzy, HostSlick, AlexHost, FlokiNET, PINSPB 14956, 44050, 200019, 200651, 208046, 213702, 215540, // FUNNULL / CTG Server 152194, // First Server Limited 50113, 204997, 205090, // CrazyRDP / Delis 211252, 394711, // BtHoster / BTCloud 213388, 213790, 214295, // SHANGXING 400619 )
Install detection rules in Elastic Security
Detect Suspicious Linux Process Connection to Bulletproof Hosting ASN 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).