Source: AWS Security Blog
Author: Oscar Diaz
URL: https://aws.amazon.com/blogs/security/incident-response-guide-for-aws-cloudtrail-investigations-part-2/
ONE SENTENCE SUMMARY:
An SSRF flaw stole IMDSv1 role credentials, enabling console access and cross-Region Amazon Bedrock misuse, shown through CloudTrail forensics analysis.
MAIN POINTS:
- Describes five-stage chain: SSRF, metadata credential theft, probing, pivoting, region hopping.
- CloudTrail CreateUser failure exposed webdev role and ec2RoleDelivery 1.0 indicating IMDSv1.
- ConsoleLogin success without MFA revealed interactive access from same source IP.
- ListFoundationModels in us-east-2 marked reconnaissance and intentional alternate Bedrock endpoint targeting.
- Converse invocation confirmed Amazon Nova Pro model abuse and token counts for cost estimation.
- Correlation hinges on consistent role ARN, session name instance ID, and sourceIPAddress.
- Key fields: userIdentity for attribution, readOnly for intent, awsRegion for evasion.
- Absence of userIdentity.invokedBy indicated direct credential use, not service-linked automation.
- Investigation prioritized role over-permissioning to Bedrock and searching other instances with same role.
- Response checklist includes fixing SSRF, enforcing IMDSv2, expanding multi-Region log queries and billing review.
TAKEAWAYS:
- Enforce IMDSv2 with hop-limit to neutralize SSRF-based metadata credential theft.
- Require MFA and restrict console sessions for workload roles to prevent interactive pivots.
- Standardize monitoring and controls across all Regions to reduce cross-Region blind spots.
- Enable Bedrock model invocation logging and telemetry to capture prompts, responses, and agent actions.
- Apply least-privilege policies and regularly analyze unused permissions to limit lateral movement.