Stealing Azure Managed Identity Tokens from Serverless Resources

Azure serverless resources like Logic Apps, Function Apps, and Automation Accounts rely on managed identities to securely access Azure services without managing credentials, making them widely trusted but high-value targets. This talk shows how attackers can extract access tokens issued to managed identities, abuse them against Azure APIs, and pivot within an environment, along with practical mitigation and detection strategies.


Managed identities are widely used in Azure to eliminate credential management, but in my experience, they can introduce significant risk when exposed through misconfigurations or accessible endpoints.
In this talk, I show how Azure serverless resources—including Logic Apps, Function Apps, and Automation Accounts—can be abused to extract managed identity access tokens. I walk through realistic attack paths where an attacker with limited initial access can retrieve a token and use it to interact with Azure APIs, enabling lateral movement and access to other resources.
I demonstrate how these attacks work in practice using a recorded demo, highlighting the key steps involved in moving from initial access to meaningful impact within an environment.
Finally, I will cover practical defensive strategies I’ve found effective, including scoping managed identities appropriately, restricting access to exposed endpoints, and improving monitoring to detect token abuse.

Manuel Melendez

I'm Manuel Melendez, originally from Chihuahua, Mexico.
Received my master's from the University of Texas at El Paso and have been working at Microsoft for almost 3 years. My work focuses on doing research on attacks, Azure infrastructure, as well as validation and investigation of the attacks.

Outside of work, I like to play videogames, spend time with my dogs, and play guitar.