Skip to content
WETNav

methodNameHigh signal

SetIamPolicy: IAM policy set (Resource Manager)

IAM bindings on a project, folder or organization were replaced.

How to read it

Compare serviceData.policyDelta: an added Owner or Editor binding, or an outside account, is the persistence to remove.

Find it

gcloud logging read 'protoPayload.methodName="SetIamPolicy"' \
  --freshness=30d --format=json --project=<project-id>

ATT&CK

About methodName

The API method recorded in protoPayload.methodName of a Cloud Audit Logs entry. Admin Activity logs are always on; Data Access logs mostly have to be enabled.

Every Google Cloud audit log methodName value →

Questions

What does methodName SetIamPolicy mean?
IAM policy set (Resource Manager). IAM bindings on a project, folder or organization were replaced. Compare serviceData.policyDelta: an added Owner or Editor binding, or an outside account, is the persistence to remove.
Is methodName SetIamPolicy a sign of an attack?
Often, yes. It is a strong signal. It is associated with MITRE ATT&CK Additional Cloud Roles (T1098.003). Confirm it with the surrounding events: who made the request, from where, and what happened next.
Where is methodName SetIamPolicy recorded?
In the protoPayload.methodName field of Google Cloud audit logs.
How do I search for methodName SetIamPolicy?
The queries on this page filter for it in PowerShell, Microsoft Sentinel and the source's own tools. Paste a full record into the WETNav decoder to see every other field explained too.