Anvilogic high experimental spl

Publicly exposed Docker API [splunk-waf]

Docker is a technology that allows you to perform operating system-level virtualization. An incredible number of companies and production hosts are running Docker to develop, deploy, and run applications inside containers. You can interact with Docker via the terminal and also via remote API. The Docker Remote API is a great way to control your remote Docker host, including automating the deployment process, control and get the state of your containers, and more. With this great power comes a great risk — if the control gets into the wrong hands, your entire network can be in danger. In February, a new vulnerability (CVE-2019-5736) was discovered that allows you to gain host root access from a docker container. The combination of this new vulnerability and exposed remote Docker API can lead to a fully compromised host. The Docker Remote API listens on ports 2375 / 2376. By default, the remote API is only accessible from the loopback interface (“localhost”, “127.0.0.1”), and should not be available from external sources. - Threat Actor Association: 8220 Gang, TeamTNT, WatchDog

View Source

Detection Logic

`get_web_data` `get_web_data_waf` "Docker" 
AND (dest_port=2375 
OR dest_port=2376) 
AND NOT src_ip IN(10.0.0.0/8, 172.16.0.0/12, 192.168.16.0/16, 127.0.0.1, ::1)
| table _time, host, user, uri_path, status, src_ip, http_user_agent, http_referrer, http_method, dest_content, payloads, user, dest_ip
| eval client_ip = dest_ip
| bin span=1s
| stats values(*) as * by _time, dest_ip
| lookup dnslookup clientip as src_ip OUTPUT clienthost as src_dns
| iplocation prefix="src_" src_ip
| rename src_Country as src_country

Field Validations

Loading…

Comments (0)

Loading comments...