Live Active security incident? Get immediate response
MITRE ATT&CK® Technique

T1552.005: Cloud Instance Metadata API

Adversaries may attempt to access the Cloud Instance Metadata API to collect credentials and other sensitive data.

Most cloud service providers support a Cloud Instance Metadata API which is a service provided to running virtual instances that allows applications to access information about the running virtual instance. Available information generally includes name, security group, and additional metadata including sensitive data such as credentials and UserData scripts that may contain additional secrets. The Instance Metadata API is provided as a convenience to assist in managing applications and is accessible by anyone who can access the instance.[1] A cloud metadata API has been used in at least one high profile compromise.[2]

If adversaries have a presence on the running virtual instance, they may query the Instance Metadata API directly to identify credentials that grant access to additional resources. Additionally, adversaries may exploit a Server-Side Request Forgery (SSRF) vulnerability in a public facing web proxy that allows them to gain access to the sensitive information via a request to the Instance Metadata API.[3]

The de facto standard across cloud service providers is to host the Instance Metadata API at http[:]//169.254.169.254.

EnterpriseT1552.005Sub-techniqueObject v1.4 Modified
Glexia's Take

Analyst context for executives and security teams

Analyst confidence High

Cloud Instance Metadata API access matters because a compromised IaaS workload or vulnerable public-facing application can become a path to cloud credentials and sensitive instance data. For leaders, this is not just a cloud configuration issue; it affects how quickly an attacker could move from one virtual instance to broader cloud resources if metadata credentials or UserData secrets are reachable.

Executive priority

Prioritize this where IaaS workloads host public-facing services, hold cloud roles, or depend on UserData and instance metadata for operations. Executive questions should focus on whether teams can prove metadata access is restricted where possible, whether SSRF risk is managed for exposed applications, and whether SOC/IR teams can identify suspicious use of credentials obtained from an instance. This also supports audit and compliance evidence around least privilege, network restriction, and cloud credential handling.

Technical view

This is an ATT&CK credential-access sub-technique under Unsecured Credentials for IaaS. Defenders should validate controls and detections around access to the cloud metadata endpoint commonly hosted at 169.254.169.254, especially from workloads that should not need metadata access or from web application paths that could indicate SSRF-mediated access. Because ATT&CK provides no official detection text, use the related detection strategy, Detect Access to Cloud Instance Metadata API (IaaS), as a prompt to test whether host, workload, proxy, and cloud audit evidence can reconstruct metadata access and subsequent credential use. Relationship context also shows relevance to cloud/container-focused activity and tools, including TeamTNT, Hildegard, Peirates, Shai-Hulud, and TruffleHog, but local telemetry is required to determine exposure or activity.

Likely telemetry

  • Host or workload network telemetry showing requests to 169.254.169.254 where collection is available
  • Web server, reverse proxy, and application logs that could reveal SSRF-style requests toward the metadata service
  • Cloud audit logs showing use of instance-associated credentials against additional resources
  • Endpoint or workload process/network telemetry identifying which process initiated metadata access
  • Cloud configuration evidence for instance metadata, UserData usage, security groups, and network filtering controls

Detection direction

  • Baseline legitimate metadata API access per workload, then alert on unexpected processes, services, containers, or application paths accessing the metadata endpoint.
  • Tune for false positives from cloud agents and applications that legitimately require metadata, but require documented business need for recurring access.
  • Correlate metadata access with later cloud API activity by the instance role or credentials associated with the instance.
  • Pay special attention to public-facing web applications and proxies where SSRF could relay requests to the metadata API.
  • Account for blind spots: link-local metadata traffic may not traverse centralized network sensors, and ATT&CK does not provide official detection logic for this object.

Mitigation priorities

  • Apply least-privilege access to cloud roles and resources so metadata-exposed credentials have limited reach.
  • Use network access restrictions and filtering controls, aligned to M1035 and M1037, to limit which systems or workloads can reach sensitive network resources and services.
  • Disable or remove unnecessary metadata-related features or exposed data where supported and not required, aligned to M1042.
  • Review UserData and instance metadata practices to avoid placing secrets where metadata access could expose them.
  • Include SSRF prevention and validation in application security reviews for public-facing services that can make outbound requests.
Analyst notes and limits

This object is a sub-technique of T1552 Unsecured Credentials and replaces revoked technique T1522. The supplied relationship set includes one detection strategy and three mitigations, plus group/software usage relationships that indicate this behavior is represented in ATT&CK threat context. Use those relationships for prioritization, not as proof of current activity in any environment.

ATT&CK provides no official detection text for this technique, and the supplied fields do not specify provider-specific configuration options or guaranteed telemetry sources. Actual coverage depends on the cloud provider, workload architecture, logging configuration, and whether host or application-level visibility exists for metadata API access.

Official MITRE ATT&CK definition

Cloud Instance Metadata API

Adversaries may attempt to access the Cloud Instance Metadata API to collect credentials and other sensitive data.

Most cloud service providers support a Cloud Instance Metadata API which is a service provided to running virtual instances that allows applications to access information about the running virtual instance. Available information generally includes name, security group, and additional metadata including sensitive data such as credentials and UserData scripts that may contain additional secrets. The Instance Metadata API is provided as a convenience to assist in managing applications and is accessible by anyone who can access the instance.[1] A cloud metadata API has been used in at least one high profile compromise.[2]

If adversaries have a presence on the running virtual instance, they may query the Instance Metadata API directly to identify credentials that grant access to additional resources. Additionally, adversaries may exploit a Server-Side Request Forgery (SSRF) vulnerability in a public facing web proxy that allows them to gain access to the sensitive information via a request to the Instance Metadata API.[3]

The de facto standard across cloud service providers is to host the Instance Metadata API at http[:]//169.254.169.254.

View the same entry on attack.mitre.org (MITRE-hosted reference; in-page links above use the Glexia ATT&CK library.)

Glexia analysis

How security teams should use this page

Treat this object as behavior context, not an attribution claim. Validate the related groups, software, data sources, and mitigations against official ATT&CK relationships and your own telemetry before making control-coverage decisions.

ATT&CK relationship table

Related techniques

This mirrors the MITRE pattern of making group, software, campaign, and technique relationships scannable. Relationship notes come from mirrored ATT&CK relationship text when available.

2 rows
Domain ID Name Relationship / procedure
Enterprise T1522 Cloud Instance Metadata API Cloud Instance Metadata API revoked by this object.
Enterprise T1552 Unsecured Credentials This object subtechnique of Unsecured Credentials.
Associated objects

Groups, software, and campaigns

Group Enterprise

G0139: TeamTNT

TeamTNT is a threat group that has primarily targeted cloud and containerized environments. The group as been active since at least October 2019 and has mainly focused its efforts on leveraging cloud and container resources to deploy cryptocurrency miners in victim environments.[1][2][3][4][5][6][7][8][9]

Tool Enterprise

S9009: TruffleHog

TruffleHog is an open-source secrets-discovery tool that is used to search for credentials, API keys, and encryption keys across a variety of data sources and environments.[1][2] TruffleHog has the ability to discover credentials and secrets stored in code repositories, git history, CI/CD pipelines, among other common storage locations to include filesystems and cloud storage buckets.[1][3][2] TruffleHog was first released by its author in 2016.[2]

IaaSLinuxSaaS
Tool Enterprise

S0683: Peirates

Peirates is a post-exploitation Kubernetes exploitation framework with a focus on gathering service account tokens for lateral movement and privilege escalation. The tool is written in GoLang and publicly available on GitHub.[1]

Containers
Malware Enterprise

S0601: Hildegard

Hildegard is malware that targets misconfigured kubelets for initial access and runs cryptocurrency miner operations. The malware was first observed in January 2021. The TeamTNT activity group is believed to be behind Hildegard. [1]

LinuxContainersIaaS
Malware Enterprise

S9008: Shai-Hulud

Shai-Hulud is a supply chain worm, first reported in September 2025, that spreads through code repositories, including GitHub and NPM packages. It exploits CI/CD pipeline dependencies to propagate to victims and poisons the supply chain by publishing malicious packages. Once inside a victim environment, Shai-Hulud steals credentials and access tokens from compromised repository accounts and exfiltrates them to attacker-controlled servers via encoded GitHub Actions workflows.[1][2][3][4][5][6][7]

LinuxSaaSWindows
Relationship explorer

All related ATT&CK context

Mitigations

Mitigation direction

Change history

Object version and sync metadata

The fields below describe the current mirrored snapshot. When Glexia retains multiple ATT&CK source imports, you can open the table to compare the same object across releases (hashes and MITRE timestamps). For MITRE’s own release notes and roadmap, see ATT&CK resources — Updates .

ATT&CK release
19.1
Object version
1.4
Created
Modified
Raw hash
aba71bed8f0b82c6...
Imported snapshots across ATT&CK releases (1)
Release Bundle imported Object version Modified Status Raw hash
19.1 1.4 Current bundle aba71bed8f0b…
Raw source

Mirrored ATT&CK source object

The raw object is retained through the mirrored ATT&CK source bundle and object hash. The raw endpoint returns the exact object from the mirrored bundle when available.

Source references

External references and citations

MITRE external references are preserved separately from Glexia analysis so citations remain traceable to their original source records.

  1. [1]
    AWS Instance Metadata API

    AWS. (n.d.). Instance Metadata and User Data. Retrieved July 18, 2019.

    Open source URL
  2. [2]
    Krebs Capital One August 2019

    Krebs, B.. (2019, August 19). What We Can Learn from the Capital One Hack. Retrieved March 25, 2020.

    Open source URL
  3. [3]
    RedLock Instance Metadata API 2018

    Higashi, Michael. (2018, May 15). Instance Metadata API: A Modern Day Trojan Horse. Retrieved July 16, 2019.

    Open source URL
  4. [4]
    mitre-attack T1552.005
    Open source URL
Source and licensing

Source: MITRE ATT&CK®. © 2026 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. MITRE ATT&CK and ATT&CK are registered trademarks of The MITRE Corporation. Glexia is not affiliated with or endorsed by MITRE.