GCP Privilege Escalation via TagBinding
Description
Detects a sequence of events that could indicate a privilege escalation attempt via GCP's tag-based access control. The sequence includes: 1. Enumeration of IAM policies and tags 2. Creation of a tag binding 3. Performance of a privileged operation
Query
Detection:
- Group:
- ID: Enumeration
RuleID: GCP.IAM.Tag.Enumeration
- ID: TagBinding
RuleID: GCP.Tag.Binding.Creation
- ID: PrivilegedOperation
RuleID: GCP.Privileged.Operation
MatchCriteria:
field_name:
- GroupID: Enumeration
Match: p_alert_context.principal
- GroupID: TagBinding
Match: p_alert_context.principal
- GroupID: PrivilegedOperation
Match: p_alert_context.principal
Schedule:
RateMinutes: 1440
TimeoutMinutes: 10
LookbackWindowMinutes: 1800
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
GCP.IAM.Tag.Enumerationwithin 1800m -
correlates · Panther group
GCP.Privileged.Operationwithin 1800m -
correlates · Panther group
GCP.Tag.Binding.Creationwithin 1800m
Analyst notes
Verify if the user has legitimate business need for this sequence of operations. If unauthorized, revoke the tag binding and review IAM policies.