Defense Evasion (TA0005)(external, opens in a new tab or window)
Persistence (TA0003)(external, opens in a new tab or window)
text code block:data_stream.dataset: "aws.cloudtrail" and event.provider: "iam.amazonaws.com" and event.action: "DeletePolicy" and event.outcome: "success" and not aws.cloudtrail.user_identity.type: "AWSService" and aws.cloudtrail.request_parameters: (*Boundary* or *boundary* or *Deny* or *deny* or *Restrict* or *restrict* or *Guard* or *guard* or *SCP* or *Guardrail* or *guardrail*) and not user_agent.original: (*Terraform* or *terraform* or "cloudformation.amazonaws.com" or *pulumi* or *Pulumi* or *ansible* or *Ansible*)
Install detection rules in Elastic Security
Detect AWS IAM Permission Boundary or Guardrail Policy Deleted by Unusual Identity in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).