MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Discovery |
Telemetry coverage
| Platform | Record / event type |
|---|---|
| GCP | google.iam.admin.ListRoles: ListRoles |
Rule body
id: 52d88912-fa8b-4db2-b247-ee9225e41e8f
name: GCP IAM - Privileges Enumeration
description: |
'Detects possible privileges enumeration.'
severity: Low
status: Available
requiredDataConnectors:
- connectorId: GCPIAMDataConnector
dataTypes:
- GCP_IAM
queryFrequency: 12h
queryPeriod: 12h
triggerOperator: gt
triggerThreshold: 0
tactics:
- Discovery
relevantTechniques:
- T1069
query: |
let threshold = 5;
GCP_IAM
| where PayloadMethodname =~ 'google.iam.admin.v1.ListRoles'
| summarize count() by PayloadAuthenticationinfoPrincipalemail, bin(TimeGenerated, 1h)
| where count_ > threshold
| extend AccountCustomEntity = PayloadAuthenticationinfoPrincipalemail
entityMappings:
- entityType: Account
fieldMappings:
- identifier: FullName
columnName: AccountCustomEntity
version: 1.0.0
kind: Scheduled
Stages and Predicates
Parameters
let threshold = 5;
Stage 1: source
GCP_IAM
Stage 2: where
| where PayloadMethodname =~ 'google.iam.admin.v1.ListRoles'
Stage 3: summarize
| summarize count() by PayloadAuthenticationinfoPrincipalemail, bin(TimeGenerated, 1h)
Stage 4: where
| where count_ > threshold
Stage 5: extend
| extend AccountCustomEntity = PayloadAuthenticationinfoPrincipalemail
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
PayloadMethodname | eq |
| field:"gcp::method_name" kind:eq value:"google.iam.admin.v1.ListRoles" |
count_ | gt |
| field:"count_" kind:gt value:"5" |
Output fields
These fields are emitted when the rule matches.
| Field | Source |
|---|---|
PayloadAuthenticationinfoPrincipalemail | summarize |
AccountCustomEntity | extend |