Ensure that your Amazon Bedrock AgentCore runtimes are configured to require MicroVM Metadata Service Version 2 (MMDSv2) for metadata requests. Amazon Bedrock AgentCore Runtime uses MMDS (MicroVM Metadata Service), similar to the EC2 Instance Metadata Service (IMDS), to provide temporary AWS credentials and configuration data to the microVM environment where your agents run. MMDSv2 enforces a session-oriented authentication mechanism that requires a PUT request to obtain a session token before any metadata can be retrieved, which significantly reduces the risk of unauthorized metadata access through SSRF vulnerabilities. When `requireMMDSV2` is set to `true`, the runtime microVM will only accept MMDSv2 requests, blocking any attempts to access metadata using the less secure MMDSv1 protocol.
Requiring MMDSv2 for Amazon Bedrock AgentCore runtimes provides critical protection against Server-Side Request Forgery (SSRF) attacks. SSRF is a common attack vector in which an attacker tricks the application running inside the microVM into making requests to the metadata endpoint, potentially exposing temporary AWS credentials and other sensitive configuration data. MMDSv2 mitigates this risk by requiring a session token obtained through a PUT request, which most SSRF exploits cannot perform. Since any code or actor running inside the microVM can access credentials by calling the metadata endpoint, enforcing MMDSv2 adds a vital layer of defense, especially when running AI agents that may execute LLM-generated code with unpredictable behavior.
Audit
To determine if your Amazon Bedrock AgentCore runtimes require MMDSv2, perform the following operations:
Remediation / Resolution
To require MMDSv2 for your Amazon Bedrock AgentCore runtimes, perform the following operations:
References
- AWS Documentation
- Data encryption
- Encryption of agent resources for agents created before January 22, 2025
- UpdateAgent
- AWS KMS keys
- AWS Command Line Interface (CLI) Documentation
- list-agent-runtimes
- get-agent-runtime
- update-agent-runtime