
Summary
Identifies a correlation indicative of credential replay tied to Amazon Bedrock AgentCore workloads. The rule looks for an initial AgentCore operation that can run attacker-controlled content inside a Firecracker microVM (examples include InvokeAgentRuntimeCommand, InvokeCodeInterpreter, ConnectBrowserAutomationStream, InvokeBrowser) using the execution role credentials exposed via the microVM metadata service. It then flags a follow-on AWS API call from the same source IP that uses a different temporary access key and a different AssumedRole identity, within a 30-minute window and with non-AgentCore provenance. The correlation is heuristic: it relies on temporal and network proximity rather than a cryptographic link, and remains robust against obfuscated content or alternative MMDS encodings. This detection requires CloudTrail data events ingested through the Elastic AWS integration and Bedrock data-event logging for roles such as AWS Bedrock Runtime, Code Interpreter, and Browser resources. The rule records the initial invocation and the subsequent follow-on event, and requires that both occur with distinct credentials, indicating potential credential theft and replay outside AgentCore. Investigation steps include examining Esql.first_agentcore_event, Esql_priv.first_agentcore_access_key, Esql_priv.first_agentcore_identity_arn for the initial workload, and Esql.last_follow_on_event, Esql_priv.last_follow_on_access_key, Esql_priv.last_follow_on_identity_arn for the follow-on activity; retrieving matching CloudTrail events; confirming the follow-on role attach to the AgentCore resource and reviewing permissions; and looking for adjacent AgentCore logs (runtime_logs or code_interpreter_application_logs) that show MMDS access or temporary credential returns. Further steps consider attacker-created resources such as CreateAgentRuntime, CreateHarness, CreateCodeInterpreter, CreateBrowser, CreateWorkloadIdentity and iam:PassRole activity. False positives can arise from shared egress infrastructure or platform automation; remediation includes revoking affected sessions, removing unnecessary execution roles, applying least privilege, and restricting bedrock-agentcore and iam:PassRole permissions to approved principals. The rule maps to MITRE ATT&CK T1078.004 (Cloud Accounts) and T1552.005 (Cloud Instance Metadata API), and MITRE ATLAS AML.T0098 (AI Agent Tool Credential Harvesting).
Categories
- Cloud
- AWS
Data Sources
- Cloud Service
ATT&CK Techniques
- T0098
- T1078
- T1078.004
- T1552
- T1552.005
Created: 2026-11-25