Has queried the AWS instance metadata service for credentials.12
Cloud Instance Metadata API T1552.005
- Tactic
- Credential Access
- Platform
- IaaS
- Version
- 1.4
- Created
- 11 February 2020
- Last modified
- 12 May 2026
- Contributor
- Praetorian
Adversaries may attempt to access the Cloud Instance Metadata API to collect credentials and other sensitive data.
Cloud Instance Metadata API MITRE reference T1552.005
1 group has been recorded using this technique. Newest first; each entry carries MITRE’s procedure text and a link to the group’s full record. Click a name to filter the rules below.
All 1 groups for this technique
5 software entries are documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
Has gathered credentials and secrets from AWS, Google Cloud Platform (GCP) and Azure metadata API.12
Can query the AWS and GCP metadata endpoints for instances and service credentials.12
Has queried the AWS and GCP metadata endpoints for instances and service credentials.1
Can query the query AWS and GCP metadata APIs for secrets.1
Has queried the Cloud Instance Metadata API for cloud credentials.1
All 5 software entries for this technique
Offense vs defense T1552.005
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
How it got here
Adversary activity (campaign spans) over cumulative rule output. Each source is plotted independently from zero, so neither line includes the other. Campaign dates are year-granularity.
Cloud Instance Metadata API detection strategy DET0001
MITRE names one behaviour worth catching for this technique and breaks it into 1 analytic, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Detect Access to Cloud Instance Metadata API (IaaS)
AN0001 · IaaS
Detects access attempts to cloud instance metadata endpoints (e.g., 169.254.169.254) from virtual machines or containerized workloads. This includes both direct access and SSRF exploitation patterns.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Cloud Service MetadataDC0070 | AWS:CloudTrail | GetInstanceIdentityDocument |
| Network Connection CreationDC0082 | AWS:VPCFlowLogs | Outbound connection to 169.254.169.254 from EC2 workload |
| Network Traffic ContentDC0085 | ebpf:syscalls | Process within container accesses link-local address 169.254.169.254 |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| TimeWindow | Adjust temporal window for correlation of access attempts and SSRF triggers |
| UserContext | Tune based on expected roles that access metadata APIs (e.g., root, service accounts) |
| RequestHeaderMatch | Customize detection for HTTP Host headers indicating SSRF |
Disable unnecessary metadata services and restrict or disable insecure versions of metadata services that are in use to prevent adversary access.
Limit access to the Instance Metadata API. A properly configured Web Application Firewall (WAF) may help prevent external adversaries from exploiting Server-side Request Forgery (SSRF) attacks that allow access to the Cloud Instance Metadata API.
Limit access to the Instance Metadata API using a host-based firewall such as iptables.
Tests from Atomic Red Team (MIT licence) · technique definition