Instance metadata

Reading the Azure Instance Metadata Service to mint managed-identity tokens, including through SSRF against a victim resource.

මිනිත්තු 1 කියවීම2026 වප් 7 යාවත්කාලීන කළාflorianametteදායකයන් 1
ඔබේ සහායකයාගෙන් අසන්න (MCP)GitHub හි සංස්කරණය කරන්න

The Azure Instance Metadata Service (IMDS) answers on the link-local 169.254.169.254 to any process on a VM, and its token endpoint hands out an access token for the resource's managed identity. Any foothold on a managed-identity-bearing resource, direct code execution or a server-side request forgery, turns into a token for whatever that identity can reach.

What folds in here#

  • Managed identity token: requesting and replaying the token from the IMDS endpoint on the host.
  • SSRF to IMDS: reaching the same endpoint through a vulnerable application.

Unlike AWS, Azure IMDS requires a Metadata: true request header and takes a resource parameter naming the audience (ARM, Microsoft Graph, Key Vault, storage), so a token is scoped to one audience at a time.

References#