Skip to content
WETNav

methodNameSuspicious

v1.compute.instances.setMetadata: Instance metadata set

A VM's metadata changed.

How to read it

Look for ssh-keys or startup-script values.

Find it

gcloud logging read 'protoPayload.methodName="v1.compute.instances.setMetadata"' \
  --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 v1.compute.instances.setMetadata mean?
Instance metadata set. A VM's metadata changed. Look for ssh-keys or startup-script values.
Is methodName v1.compute.instances.setMetadata a sign of an attack?
It deserves a look. It is associated with MITRE ATT&CK SSH Authorized Keys (T1098.004). Confirm it with the surrounding events: who made the request, from where, and what happened next.
Where is methodName v1.compute.instances.setMetadata recorded?
In the protoPayload.methodName field of Google Cloud audit logs.
How do I search for methodName v1.compute.instances.setMetadata?
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.