AWS Backdoor Administrative IAM Role Created
Description
Identifies when CreateRole and AttachAdminRolePolicy CloudTrail events occur in a short period of time. This sequence could indicate a potential security breach.
Query
Detection:
- Group:
- ID: CreateRole
RuleID: AWS.IAM.CreateRole
- ID: AttachAdminRolePolicy
RuleID: AWS.IAM.AttachAdminRolePolicy
MatchCriteria:
field_name:
- GroupID: CreateRole
Match: p_alert_context.request_rolename
- GroupID: AttachAdminRolePolicy
Match: p_alert_context.request_rolename
LookbackWindowMinutes: 1800
Schedule:
RateMinutes: 1440
TimeoutMinutes: 5
Rule dependencies
⚠ Higher-order rule. It fires on other rules' alerts, not on raw events, so it cannot fire on its own. Deploy the rules it depends on too.
Depends on
-
correlates · Panther group
AWS.IAM.AttachAdminRolePolicywithin 1800m -
correlates · Panther group
AWS.IAM.CreateRolewithin 1800m