Anvilogic high experimental spl

Azure Instance Metadata Service Queried - Proxy [splunk-proxy]

The Azure Instance Metadata Service (IMDS) provides information about currently running virtual machine instances and can be used to manage and configure virtual machines. This information includes the SKU, storage, network configurations, and upcoming maintenance events. Attackers can query the available data to gain context on the environment and leverage the information to move laterally. This use case detects connections to http://169.254.169.254/metadata/instance with the header Metadata:true and a status code in the 200s (indicated successful connection). Legitimate services within your infrastructure may access the IMDS; validating and allowlisting is recommended.

View Source

Detection Logic

`get_web_data` `get_web_data_proxy` "169.254.169.254" "/metadata/instance"
| where match(src_headers, "(?i)Metadata:\sTrue") and match(dest_ip, "169.254.169.254") and match(uri_path, "(?i)metadata/instance") and match(status, "^2")
| table _time, host, user, uri_path, src_ip, dest_ip site, http_method, status
| bin span=1s
| stats values(*) as * by _time, host

Field Validations

Loading…

Comments (0)

Loading comments...