Skip to content

Strengthen your Azure security baseline with Metadata Security Protocol


Managed identities make it easier to securely authenticate applications running on Azure Virtual Machines without storing credentials in application code. However, they introduce an important security consideration: which applications and processes running inside a VM should be able to request those identity tokens?  
 
The Metadata Security Protocol (MSP) feature is generally available and addresses this issue by introducing authentication and authorization for IMDS and Azure WireServer. With MSP, Azure customers can strengthen protection against unauthorized metadata access and restrict access to trusted processes, adding another layer of defense to their VM security baseline. 


 


Why MSP matters


Metadata services are essential to Azure VM operations. IMDS provides instance configuration information and managed identity tokens, while WireServer supports platform operations such as provisioning and VM extensions. 


Because these services are accessible from within the VM, an attacker who compromises an application may attempt to use that access to retrieve sensitive metadata or identity tokens. 


MSP helps mitigate three categories of security risks: 



  1. Server-Side Request Forgery (SSRF): Reduces exposure to attacks that exploit access to metadata endpoints to retrieve sensitive tokens or configuration information. 

  2. Nested virtualization and tenant isolation: Helps protect against unauthorized metadata requests originating from nested workloads or improperly isolated environments. 

  3. Excessive trust within a VM: Enables granular authorization policies that restrict metadata access to approved users and processes, reducing unnecessary exposure between applications sharing a VM. 


These protections are particularly valuable for internet-facing workloads, VMs with privileged managed identities, and environments where multiple applications share the same infrastructure. 


MSP provides defense in depth and complements existing controls such as Azure RBAC, application security, and workload isolation. 


How MSP works 


MSP introduces a default-closed security model for protected metadata endpoints. Requests are routed through the Guest Proxy Agent (GPA), which identifies the requesting process and evaluates its access against the configured authorization policy. 


Authorized requests receive a cryptographic endorsement, which the metadata service validates before processing the request. Requests without valid endorsement are rejected. 


Customers can adopt MSP at two levels: 



  • Basic enforcement: Requires authenticated metadata requests without requiring customers to create custom process-level rules. Default authorization remains broad for IMDS, while WireServer access requires administrator or root privileges. 



  • Advanced authorization: Allows customers to define which users, groups, and processes can access specific metadata endpoints, providing tighter least-privilege controls. 


MSP supports both Audit and Enforce modes. Audit records metadata activity and evaluation of authorization outcomes without blocking requests. Enforce applies configured authorization decisions and rejects requests without valid endorsements. 


For details, see the MSP configuration guide and advanced access-control documentation. 


Getting started with MSP 


We recommend a gradual rollout, starting with a representative nonproduction workload before expanding across your environment. 



  1. Validate compatibility. Identify a supported VM or scale set and verify its operating system, architecture, agent dependencies, and feature availability. 

  2. Enable Audit mode. Configure MSP for IMDS and WireServer in Audit mode to observe metadata access without disrupting existing requests.

  3. Review metadata dependencies. Examine audit logs to identify applications and platform components that require access. If using advanced authorization, develop and test least-privilege allowlists using the audit-to-rules guidance. 

  4. Enable enforcement. After validating dependencies and testing recovery procedures, gradually transition workloads to Enforce mode. Monitor denied requests, application behavior, and agent health. 

  5. Scale your deployment. Incorporate validated MSP configurations into your standard VM deployment templates and review policies as workloads evolve. 


For detailed onboarding instructions, see the guides for new VM deployments and existing VMs. 


Strengthen your Azure security baseline 


MSP gives Azure customers an additional layer of protection for sensitive metadata services, with authenticated requests and optional granular access controls. 


Start by enabling MSP in Audit mode on a supported workload, validate your dependencies, and progressively adopt enforcement as part of your Azure VM security baseline. 


For more information, visit the Metadata Security Protocol documentation

Microsoft Tech Community originally posted this article on 24 November 2026 at 9:52 PM.

Leave a Reply