Elastic low stable kql
AWS STS Role Assumption by Service
Identifies when a service has assumed a role in AWS Security Token Service (STS). Services can assume a role to obtain temporary credentials and access AWS resources. Adversaries can use this technique for credential access and privilege escalation. This is a New Terms rule that identifies when a service assumes a role in AWS Security Token Service (STS) to obtain temporary credentials and access AWS resources. While often legitimate, adversaries may use this technique for unauthorized access, privilege escalation, or lateral movement within an AWS environment.
Detection Logic
data_stream.dataset: "aws.cloudtrail"
and event.provider: "sts.amazonaws.com"
and event.action: "AssumeRole"
and event.outcome: "success"
and aws.cloudtrail.user_identity.type: "AWSService"
and aws.cloudtrail.user_identity.invoked_by: (
"ec2.amazonaws.com" or
"lambda.amazonaws.com" or
"rds.amazonaws.com" or
"ssm.amazonaws.com" or
"ecs-tasks.amazonaws.com" or
"ecs.amazonaws.com" or
"eks.amazonaws.com" or
"eks-fargate.amazonaws.com" or
"codepipeline.amazonaws.com" or
"codebuild.amazonaws.com" or
"autoscaling.amazonaws.com") False Positives
- ⚠ AWS administrators or automated processes might regularly assume roles for legitimate administrative purposes. AWS services might assume roles to access AWS resources as part of their standard operations. Automated workflows might assume roles to perform periodic tasks such as data backups, updates, or deployments.
Field Validations
Loading…
Comments (0)
Loading comments...