---
title: "GCP attacker survived 3 service account key rotations"
description: "How an attacker with stolen Google Cloud service account keys kept access through 3 key rotations, shown in raw audit logs with 3 hunting queries."
url: "https://www.exaforce.com/threat-intelligence/gcp-attacker-survived-service-account-key-rotation"
language: "en"
published: "2026-11-30T17:06:11.000Z"
updated: "2026-11-30T17:57:35.000Z"
---

[Back to Threat intelligence](https://www.exaforce.com/threat-intelligence)

# GCP Attacker Survived 3 Service Account Key Rotations: Anatomy of a Service Account Key Intrusion

An attacker with stolen Google Cloud service account keys kept access through 3 key rotations at a technology company.

_GCP Attacker Survived 3 Service Account Key Rotations: Anatomy of a Service Account Key Intrusion_

An attacker with stolen Google Cloud service account keys kept access through 3 key rotations at a technology company. The company rotated the key of its most used service account 3 times in less than 9 hours. The attacker was still in after the third rotation, and used 2 of the 3 new keys. The first new key was in attacker use 5 hours 35 minutes after its creation, and the third after 8 hours 57 minutes. Each new key goes to a large worker fleet within minutes, and we think the attacker takes it from there. On the third day the attacker opened a shell in a Google Kubernetes Engine (GKE) pod. A server at another cloud provider used the Workload Identity token of that pod 37 seconds after Google issued it. We track this activity as Claimant Braniac. This post shows the attack in the raw Google Cloud and GKE audit logs, with 3 hunting queries and the indicators.

## Executive summary

- **Access.** The attacker held key files for about 25 service accounts. The logs do not show how the keys were taken. We think that they left from a machine that held a key file.
- **Infrastructure.** One rented server made most of the calls. Commercial proxy exits and a virtual machine at a second cloud provider made the others. The main client was python-httpx/0.28.1. The rented server also used a browser client string and the clients trb, lab-assess/1.0 and lab-probe.
- **Actions.** The attacker tested 21 service accounts in 2.2 seconds and read 9 BigQuery tables in 69 seconds. One key made 28,060 storage calls in 1 hour 42 minutes.
- **Name.** Claimant Braniac. "Claimant" is for access with stolen credentials. "Braniac" is for the goal: every test of a key included a call to a generative AI model.
- **Outcome.** The company rotated one key 3 times, and the attacker was still in after the third rotation. The attacker used 2 of the 3 new keys. The worker fleet made 171,005 calls with the first new key before the attacker's first call. Unsolicited "breach alert" emails reached the company 7 minutes 32 seconds after the last BigQuery query.

## The attack at a glance

| Characteristic      | What the logs show                                                                                                                                      |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Initial access      | Not observed. About 25 service account key files were already in the attacker's hands. We think that the keys left from a machine that held a key file. |
| Permission tests    | 31 calls for 21 service accounts from 25 addresses in 2.2 seconds. All were denied.                                                                     |
| Collection          | Cloud Storage reads, container image pulls and BigQuery queries with the accounts that had access.                                                      |
| Email to the victim | Three emails in 18 minutes from senders who posed as security researchers.                                                                              |
| Key rotation        | 3 rotations of one key in less than 9 hours. The attacker used the first new key after 5 hours 35 minutes and the third after 8 hours 57 minutes.       |
| Path to the new key | Not observed. Only the administrator and 6 kubelets read the Kubernetes secret. The fleet used each new key from more than 500 addresses.               |
| Movement in GKE     | Secrets listed in the whole cluster, then a shell in another pod (pods/exec).                                                                           |
| Token theft         | Workload Identity token used from another cloud provider 37 seconds after it was issued.                                                                |

## How each new key was used after a rotation

_Sequence diagram of a new key that goes from a Kubernetes secret to a worker fleet and is then used by an attacker host._

_Figure 1. An administrator made a new key and wrote it into a Kubernetes secret. The worker fleet outside the cluster used the new key 2 minutes 19 seconds later. The attacker tested the same key 5 hours 35 minutes after its creation and then read 25 objects. The administrator rotated the key 2 more times. The attacker used the third key 8 hours 57 minutes after its creation. No log shows how a key reached the attacker, so that arrow is an inference._

## Timeline (UTC)

Calendar dates are removed. All times are on one day unless a row says +1 day or +2 days.

| Time                                    | Source                  | Event                                                                                                    | Network                     |
| --------------------------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------- | --------------------------- |
| About two weeks earlier, 17:45 to 19:27 | Cloud Storage audit log | 28,060 successful storage calls with the key of one service account                                      | 23.95.170.108               |
| 14:12                                   | Cloud audit log         | First call with python-httpx/0.28.1 on one of the service accounts                                       | Hosting and proxy addresses |
| 19:55:45                                | Cloud audit log         | 31 denied calls for 21 service accounts in 2.2 seconds                                                   | 25 proxy addresses          |
| 23:36:24                                | Cloud audit log         | 63 denied calls for 21 service accounts in 1.0 second                                                    | 23.95.170.108               |
| +1 day, 01:37 to 01:46                  | BigQuery audit log      | 83 successful query calls from 12 service accounts. 9 tables read in the last 69 seconds                 | 23.95.170.108               |
| +1 day, 01:54                           | Mail log                | First unsolicited "breach alert" email arrives. Two more follow at 02:05 and 02:12                       | Cloud email service         |
| +1 day, 03:50                           | Cloud audit log         | The company disables three service accounts                                                              |                             |
| +1 day, 05:21 to 05:38                  | Cloud Storage audit log | Second wave. Reads succeed for accounts that still have valid keys                                       | 10 proxy addresses          |
| +1 day, 11:48                           | Cloud audit log         | 10 keys tested on three services in 20 seconds                                                           | 23.95.170.108               |
| +1 day, 14:25 to 14:48                  | IAM audit log           | An administrator disables 18 service account keys, one of them the key of the most used account          | Company egress              |
| +1 day, 16:23:50                        | IAM and GKE audit logs  | An administrator makes new key 1 for that account and writes it into a Kubernetes secret 8 seconds later | Company egress              |
| +1 day, 16:26:17                        | Cloud Storage audit log | The worker fleet makes its first call with key 1                                                         | Fleet addresses             |
| +1 day, 21:59:27                        | Cloud audit log         | The attacker tests key 1, then reads 25 objects                                                          | 63.35.192.102               |
| +1 day, 22:48:49                        | IAM and GKE audit logs  | An administrator makes key 2 and writes it into the secret at 23:14:33. The fleet uses it from 23:19:21  | Company egress              |
| +2 days, 00:11:23                       | IAM audit log           | An administrator deletes key 1                                                                           | Company egress              |
| +2 days, 01:20:13                       | IAM and GKE audit logs  | An administrator makes key 3 and writes it into the secret at 01:21:49. The fleet uses it from 01:26:58  | Company egress              |
| +2 days, 10:17:18                       | Cloud Storage audit log | The attacker uses key 3 and reads a database dump file and a compressed archive                          | 63.35.192.102               |
| +2 days, 11:36 to 11:38                 | Cloud audit log         | 41 more calls with key 3                                                                                 | VPN exit address            |
| +2 days, 12:59 to 13:01                 | GKE audit log           | A script lists secrets in the whole cluster. 9 list calls succeed                                        | Pod address                 |
| +2 days, 13:18:57                       | GKE and IAM audit logs  | Shell opened in an application pod. Token issued 0.3 seconds later. 18 denied calls follow               | Pod and node addresses      |
| +2 days, 13:19:34                       | Cloud audit log         | The same identity lists buckets and image repositories from outside the cluster                          | 63.35.192.102               |
| +2 days, 13:26:47                       | IAM audit log           | An administrator makes key 4 and deletes keys 2 and 3 at 13:28                                           | Company egress              |

## Stage 1: Stolen service account keys tested in bulk

The attacker held user-managed key files for about 25 service accounts. A key file is a long-lived credential: it works from any network until someone deletes the key. The attacker first learned what each key could do. In 2.2 seconds, 25 addresses in 11 countries made 31 calls for 21 service accounts. Each call asked for a list of buckets, a list of secrets or a response from a generative AI model.

The model call is the mark of this actor. Google Threat Intelligence Group describes the same call with stolen service account keys in its report on [LLMjacking](https://cloud.google.com/blog/topics/threat-intelligence/llmjacking-monetizing-compromised-cloud-models). In that report, actors resell access to the victim's models.

text

```
timestamp: "[Day 1]T19:55:45.394Z" protoPayload.serviceName: "aiplatform.googleapis.com" protoPayload.methodName: "google.cloud.aiplatform.v1.PredictionService.GenerateContent" protoPayload.authenticationInfo.principalEmail: "[service-account]@[project].iam.gserviceaccount.com" protoPayload.authenticationInfo.serviceAccountKeyName: "//iam.googleapis.com/projects/[project]/serviceAccounts/[service-account]/keys/[key-id]" protoPayload.requestMetadata.callerIp: "134.199.64.31" protoPayload.requestMetadata.callerSuppliedUserAgent: "python-httpx/0.28.1,gzip(gfe)" protoPayload.status.code: 7
```

- status.code: 7 is PERMISSION_DENIED. The account had no access to the model.
- A denied call still proves that the key works. Google authenticated the key and named the service account before it checked the permission.
- serviceAccountKeyName shows that the caller used a key file. A workload inside Google Cloud that uses an attached service account has no value in this field.
- All 31 calls were denied. A triage that closes denied calls as harmless would close this event.

Stolen service account keys are part of the [cloud infrastructure attack surface](https://www.exaforce.com/solutions/iaas-attack-surface).

## Stage 2: Cloud Storage, container images and BigQuery read with the keys

Some accounts had access, and the attacker used it. About two weeks before the sweep, one key made 28,060 successful storage calls in 1 hour 42 minutes. Later the attacker pulled container images and read buckets that hold evaluation data. Then 12 service accounts ran BigQuery queries from one address in nine minutes.

text

```
timestamp: "[Day 1 +1]T01:46:48.862Z" protoPayload.serviceName: "bigquery.googleapis.com" protoPayload.methodName: "google.cloud.bigquery.v2.JobService.Query" protoPayload.authenticationInfo.principalEmail: "[service-account]@[project].iam.gserviceaccount.com" protoPayload.requestMetadata.callerIp: "23.95.170.108" protoPayload.requestMetadata.callerSuppliedUserAgent: "python-httpx/0.28.1,gzip(gfe)" protoPayload.status: {}
```

- An empty status means that the call succeeded.
- In the last 69 seconds, one account read 9 tables. Two of them hold API keys, with 15 and 17 rows.
- The audit log gives the table and the number of rows. It does not give the content of the rows.

## Stage 3: "Breach alert" emails after the data access

The first unsolicited email arrived 7 minutes 32 seconds after the last BigQuery query. Two more arrived in the next 18 minutes. The senders posed as an independent security research group. They wrote that an actor held 15 AI model API keys from the company. One table that the attacker read holds 15 rows.

The link between the senders and the attacker is an inference from this timing and this count. The company did not find the keys that the email describes. The email also listed weaknesses in public web applications of the company, and those were accurate.

## Stage 4: Service account key rotation that did not remove the attacker

The company disabled the stolen key of the service account that the attacker used most. About two hours later an administrator made a new key for the account and wrote it into a Kubernetes secret. The worker fleet used the new key 2 minutes 19 seconds after that write. The attacker used it 5 hours 35 minutes after its creation.

text

```
timestamp: "[Day 1 +1]T16:23:58.220Z" protoPayload.serviceName: "k8s.io" protoPayload.methodName: "io.k8s.core.v1.secrets.patch" protoPayload.resourceName: "core/v1/namespaces/[namespace]/secrets/[secret]" protoPayload.authenticationInfo.principalEmail: "[administrator]" protoPayload.requestMetadata.callerIp: "[company egress]" protoPayload.status: {}
```

- This write is the moment when the new key starts to move. The administrator had made the key 8 seconds before.
- Between this write and the attacker's first call, the audit log shows two kinds of readers of the secret. The administrator read it 15 times, and 6 kubelets watched it. No service account and no other user read it.
- In the same period the fleet made 171,005 calls with the new key from 510 addresses.

text

```
timestamp: "[Day 1 +1]T21:59:27.537Z" protoPayload.serviceName: "aiplatform.googleapis.com" protoPayload.methodName: "google.cloud.aiplatform.v1.PredictionService.GenerateContent" protoPayload.authenticationInfo.principalEmail: "[service-account]@[project].iam.gserviceaccount.com" protoPayload.authenticationInfo.serviceAccountKeyName: ".../keys/[new-key-id]" protoPayload.requestMetadata.callerIp: "63.35.192.102" protoPayload.requestMetadata.callerSuppliedUserAgent: "python-httpx/0.28.1,gzip(gfe)" protoPayload.status.code: 7
```

- The first three services that the attacker called with the new key were Vertex AI, Secret Manager and Cloud Storage. The 8 calls took 1.3 seconds, and all were denied.
- 46 seconds later the attacker listed the one bucket that the account can read. The attacker then read 25 objects with 43 calls.

The company rotated the key 2 more times in the next 3 hours 21 minutes. The attacker used one of the 2 new keys.

| New key | Written to the secret | First fleet call after the write | Fleet use before the attacker's first call | First attacker call after the key was made |
| ------- | --------------------- | -------------------------------- | ------------------------------------------ | ------------------------------------------ |
| 1       | +1 day, 16:23:58      | 2 minutes 19 seconds             | 171,005 calls from 510 addresses           | 5 hours 35 minutes                         |
| 2       | +1 day, 23:14:33      | 4 minutes 49 seconds             | Not applicable                             | No attacker call in the logs               |
| 3       | +2 days, 01:21:49     | 5 minutes 9 seconds              | 235,802 calls from 687 addresses           | 8 hours 57 minutes                         |

- Key 2 was the newest key for 2 hours 31 minutes. We found no call with it from an attacker address or with the attacker client.
- With key 3 the attacker did not test first. The first calls were 6 object lists and 18 object reads. The reads include a database dump file and a compressed archive.
- The readers of the secret were the same after key 3: the administrator and 6 kubelets.

The key does not stay in the secret. Hundreds of worker and sandbox machines outside the cluster use each new key within about five minutes. We think the attacker reads the key from that fleet after each rotation. This is an inference: no log shows the hand-off of the key.

## Stage 5: Kubernetes secrets listed and a shell opened in another pod

On the third day the attacker ran code in a second cluster, in a pod of a browser-based developer tool. The Google service account of that pod could list secrets in every namespace and run pods/exec. A script with the client Python-urllib/3.12 listed secrets, and 9 list calls succeeded. A list call returns the values of the secrets with their names. The first exec attempt failed because the container name was wrong. The second attempt, 54 seconds later, opened a shell in an application pod.

text

```
timestamp: "[Day 1 +2]T13:18:57.061Z" protoPayload.serviceName: "k8s.io" protoPayload.methodName: "io.k8s.core.v1.pods.exec.get" protoPayload.resourceName: "core/v1/namespaces/[namespace]/pods/[application-pod]/exec" protoPayload.authenticationInfo.principalEmail: "[ide-service-account]@[project].iam.gserviceaccount.com" protoPayload.requestMetadata.callerIp: "10.72.3.20" protoPayload.authorizationInfo[0].permission: "io.k8s.core.v1.pods.exec.get" protoPayload.authorizationInfo[0].granted: true
```

- The caller address is a pod address in the same cluster. The call came from inside.
- The principal is a Google service account, used through Workload Identity. The Kubernetes service account of the same pod was denied 16 times on the same lists.
- This exec is a get call. GKE records it only when Data Access audit logs are on for the Kubernetes Engine API.

## Stage 6: Workload Identity token used outside the cluster in 37 seconds

A pod with Workload Identity gets its Google token from the GKE metadata server. Any process in the pod can ask for one. Google issued a token for the application pod 0.3 seconds after the shell opened.

text

```
timestamp: "[Day 1 +2]T13:18:57.322Z" protoPayload.serviceName: "iamcredentials.googleapis.com" protoPayload.methodName: "GenerateAccessToken" protoPayload.authenticationInfo.principalSubject: "serviceAccount:[project].svc.id.goog[[namespace]/[kubernetes-service-account]]" protoPayload.requestMetadata.callerIp: "gce-internal-ip" protoPayload.requestMetadata.callerSuppliedUserAgent: "google-api-go-client/0.5 gke-metadata-server,gzip(gfe)" protoPayload.request.name: "projects/-/serviceAccounts/[app-service-account]@[project].iam.gserviceaccount.com"
```

A script in the pod then made 18 calls in 1.4 seconds with Python-urllib/3.12. It asked for lists of secrets, buckets and image repositories, and every call was denied. The next call with this identity came from another cloud provider.

text

```
timestamp: "[Day 1 +2]T13:19:34.767Z" protoPayload.serviceName: "storage.googleapis.com" protoPayload.methodName: "storage.objects.list" protoPayload.resourceName: "projects/_/buckets/[bucket]" protoPayload.authenticationInfo.principalEmail: "[app-service-account]@[project].iam.gserviceaccount.com" protoPayload.authenticationInfo.serviceAccountDelegationInfo[0].principalSubject: "serviceAccount:[project].svc.id.goog[[namespace]/[kubernetes-service-account]]" protoPayload.requestMetadata.callerIp: "63.35.192.102" protoPayload.requestMetadata.callerSuppliedUserAgent: "python-httpx/0.28.1,gzip(gfe)" protoPayload.authorizationInfo[0].granted: true
```

_Sequence diagram with six parties that shows a shell opened in a pod, a token issued by the GKE metadata server, and the same identity used from an attacker host 37 seconds later._

_Figure 2. The attacker ran code in a pod of a developer tool and opened a shell in an application pod. Google issued a token for that pod 0.3 seconds later. A script in the pod made 18 calls with it, and all were denied. 37 seconds after Google issued the token, a server at another cloud provider used the same identity and listed three buckets. How the token left the cluster is not in the logs._

- This call is 37 seconds after Google issued the token. The address and the client are the ones that used the new keys in stage 4.
- serviceAccountDelegationInfo names the Kubernetes service account. The field shows that the credential is a Workload Identity token and that no key file exists for it.
- From outside, the attacker made 7 calls in 3 seconds. Object lists for three buckets and two image repository lists succeeded. The attacker read no object and pulled no image.
- That the outside token is the one from the shell is an inference from the 37 seconds. The audit log does not record the token.

An earlier post shows a pod token used for data theft in AWS: [ARTEX-style data theft in AWS](https://www.exaforce.com/blogs/silent-claimant-artex-aws-data-exfiltration).

## Why the keys left the cluster, and how Workload Identity Federation prevents it

A user-managed service account key is a file. Each machine that uses the key holds a copy, and any code on that machine can read the copy. In this incident, the worker fleet outside the cluster held each new key within about five minutes of a rotation. We think that the first keys left from a machine of this type, and that each new key followed. This is an inference: the audit logs do not record a file read on a machine.

A rotation gives the new file to the same machines. If an attacker can read files on one of them, the attacker gets the new key too. Thus do not give service account keys to machines outside the cluster.

[Workload Identity Federation](https://cloud.google.com/iam/docs/workload-identity-federation) removes the file. A workload outside Google Cloud proves its own identity to Google and gets a short-lived token. There is no key to copy and no key to rotate. A pod in GKE gets its token from Workload Identity Federation for GKE, and a virtual machine uses its attached service account.

A short-lived token can also be stolen, as stage 6 shows. The difference is time. The token from the pod stops after about one hour, but a key file works until someone deletes the key. An IAM deny policy or a VPC Service Controls perimeter can limit the networks where a token works.

## How far it got (blast radius)

| Resource           | What the attacker reached                                    | Confirmed by                          |
| ------------------ | ------------------------------------------------------------ | ------------------------------------- |
| Cloud Storage      | Evaluation data, database dump files and compressed archives | Successful storage.objects.get calls  |
| Artifact Registry  | About 445 image manifests and 444 blobs                      | Successful Docker pull calls          |
| BigQuery           | 9 tables, two of them with API keys (15 and 17 rows)         | Successful query jobs with row counts |
| Kubernetes secrets | Every secret in one cluster, with values                     | 9 successful list calls               |
| Workload Identity  | Lists of three buckets and two image repositories            | Successful list calls from outside    |

The identity provider denied a password spray from the main attacker address on the day before the sweep. No sign-in from that address succeeded. All 104 Secret Manager calls from the attacker addresses were denied.

The logs do not show the content of the rows and objects that the attacker read. They do not show how the keys left the company or how a new key reached the attacker. They also cannot show that the attacker did not have key 2: they show only that no attacker call used it. Generative Language API calls with API keys were not in the audit logs, so the claim in the emails could not be tested there.

## MITRE ATT&CK mapping

| Stage | Technique ID                                                | Name                                                            | Evidence                                          |
| ----- | ----------------------------------------------------------- | --------------------------------------------------------------- | ------------------------------------------------- |
| 1     | [T1078.004](https://attack.mitre.org/techniques/T1078/004/) | Valid Accounts: Cloud Accounts                                  | Service account keys used from attacker addresses |
| 1     | [T1580](https://attack.mitre.org/techniques/T1580/)         | Cloud Infrastructure Discovery                                  | Bucket, secret and service lists for 21 accounts  |
| 1     | [T1090](https://attack.mitre.org/techniques/T1090/)         | Proxy                                                           | 25 proxy exits in 11 countries in one sweep       |
| 2     | [T1530](https://attack.mitre.org/techniques/T1530/)         | Data from Cloud Storage                                         | Object reads and BigQuery table reads             |
| 2     | [T1619](https://attack.mitre.org/techniques/T1619/)         | Cloud Storage Object Discovery                                  | Object lists before the reads                     |
| 5     | [T1552.007](https://attack.mitre.org/techniques/T1552/007/) | Unsecured Credentials: Container API                            | Secrets listed through the Kubernetes API         |
| 5     | [T1613](https://attack.mitre.org/techniques/T1613/)         | Container and Resource Discovery                                | Lists of pods, deployments and service accounts   |
| 5     | [T1609](https://attack.mitre.org/techniques/T1609/)         | Container Administration Command                                | pods/exec into the application pod                |
| 6     | [T1552.005](https://attack.mitre.org/techniques/T1552/005/) | Unsecured Credentials: Cloud Instance Metadata API              | Token from the GKE metadata server                |
| 6     | [T1528](https://attack.mitre.org/techniques/T1528/)         | Steal Application Access Token                                  | Token of the application pod taken after the exec |
| 6     | [T1550.001](https://attack.mitre.org/techniques/T1550/001/) | Use Alternate Authentication Material: Application Access Token | Token used from another cloud provider            |

## Hunting for this pattern

The queries are DuckDB SQL over Google Cloud audit log entries exported as JSON lines. The view below flattens the fields that the queries use.

sql

```
CREATE  VIEW  audit  AS SELECT   CAST ( "timestamp"  AS  TIMESTAMPTZ )                               AS  ts,   protoPayload . serviceName                                       AS  service ,   protoPayload . methodName                                        AS  method,   protoPayload . authenticationInfo .principalEmail                 AS  principal,   protoPayload . authenticationInfo .serviceAccountKeyName          AS  key_name,   CAST ( protoPayload . authenticationInfo .serviceAccountDelegationInfo  AS  VARCHAR )  AS  delegation,   protoPayload . requestMetadata .callerIp                          AS  ip,   protoPayload . requestMetadata .callerSuppliedUserAgent           AS  user_agent,   COALESCE ( protoPayload . status .code,  0 )                          AS  status_code   -- 0 = OK, 7 = PERMISSION_DENIED FROM  read_json_auto( 'audit_logs/*.json' );
```

**1. A Workload Identity is denied inside the cluster and then succeeds from outside.** Replace the address filters with the egress ranges of your own clusters.

sql

```
WITH  denied_inside  AS  (   SELECT  principal, ts  FROM  audit   WHERE  status_code  =  7  AND  key_name  IS  NULL     AND  principal  LIKE  '%gserviceaccount.com'     AND  (ip  LIKE  '10.%'  OR  ip  =  'gce-internal-ip' ) ), ok_outside  AS  (   SELECT  principal, ts, ip, user_agent  FROM  audit   WHERE  status_code  =  0  AND  key_name  IS  NULL     AND  delegation  LIKE  '%svc.id.goog[%'     AND  ip  NOT  LIKE  '10.%'  AND  ip  <>  'gce-internal-ip'     AND  ip  NOT  LIKE  '34.%'  AND  ip  NOT  LIKE  '35.%'    -- your cluster egress ranges ) SELECT  o . principal ,  o . ip ,  o . user_agent ,        min ( o . ts )  AS  first_outside,  max ( d . ts )  AS  last_denied_inside FROM  ok_outside o JOIN  denied_inside d   ON  d . principal  =  o . principal  AND  d . ts  <  o . ts  AND  d . ts  >=  o . ts  -  INTERVAL  '120 seconds' GROUP BY  ALL  ORDER BY  first_outside;
```

On the incident day this query returned one identity and one address: the application pod's identity from 63.35.192.102.

**2. Many service account keys are denied in the same five seconds with one client.**

sql

```
SELECT  time_bucket(INTERVAL  '5 seconds' , ts)  AS  bucket, user_agent,        count ( DISTINCT  principal)  AS  accounts,        count ( DISTINCT  ip)         AS  addresses,        count ( * )                   AS  calls FROM  audit WHERE  key_name  IS NOT NULL  AND  status_code  =  7 GROUP BY  ALL HAVING  count ( DISTINCT  principal)  >=  10 ORDER BY  bucket;
```

This query returned two rows on the first day. One is the sweep of 21 accounts from 25 addresses, and one is a later sweep of 18 accounts from one address. The 5-second bucket cuts the later sweep in two. The full sweep is 63 calls for 21 accounts in 1.0 second.

**3. One key from one address is denied on Vertex AI, Secret Manager and Cloud Storage in ten seconds.**

sql

```
SELECT  time_bucket(INTERVAL  '10 seconds' , ts)  AS  bucket,        key_name, ip,        count ( DISTINCT  service )  AS  services,        count ( * )                 AS  calls FROM  audit WHERE  key_name  IS NOT NULL  AND  status_code  =  7   AND  service  IN  ( 'aiplatform.googleapis.com' ,                   'secretmanager.googleapis.com' ,                   'storage.googleapis.com' ) GROUP BY  ALL HAVING  count ( DISTINCT  service )  =  3 ORDER BY  bucket;
```

This query returned 11 rows on the second day: 10 keys from the main attacker address in 20 seconds, and the first new key from 63.35.192.102.

We also ran the three queries on six days of activity before the first sweep, which is 484 million audit events. They returned no rows.

## Indicators

Use the addresses to search your audit logs. The proxy and VPN addresses are shared infrastructure, and their owners change.

| Type       | Value                                                                                    | Context                                                                                                              |
| ---------- | ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| IPv4       | 23.95.170.108                                                                            | Main attacker server at a hosting provider (AS36352). Key tests, storage reads, BigQuery queries                     |
| IPv4       | 63.35.192.102                                                                            | Virtual machine at another cloud provider (AS16509, EC2 eu-west-1). New keys 1 and 3 and the Workload Identity token |
| IPv4       | 178.171.47.3, 109.70.67.36, 158.115.243.58, 194.135.132.54                               | Successful calls with stolen keys                                                                                    |
| IPv4       | 84.247.60.125, 191.96.254.138, 64.137.10.153, 45.38.107.97, 198.46.161.42, 104.164.49.38 | Proxy exits with successful storage reads in the second wave. Do not block permanently                               |
| IPv4       | 134.199.64.31, 134.199.72.139, 134.199.73.117, 134.199.78.13, 93.114.13.144              | Proxy exits in the 2.2-second sweep. Do not block permanently                                                        |
| IPv6       | 2a09:bac5:a5fe:31eb::4f9:45                                                              | Cloudflare WARP exit (AS13335) used with new key 3. Do not block permanently                                         |
| User agent | python-httpx/0.28.1                                                                      | Attacker client outside the cluster. Common in normal traffic, so use it only with an address or a pattern above     |
| User agent | Python-urllib/3.12, Python-urllib/3.11                                                   | Attacker scripts inside the clusters                                                                                 |
| User agent | trb, lab-assess/1.0, lab-probe                                                           | Attacker clients on the main server, on the day before the first sweep and on the day of it                          |

## Takeaways

**Read a denied call as proof that the key works.** Google authenticates the key before it checks the permission. A PERMISSION_DENIED entry with a key name from an unknown network means that someone outside holds the key.

**Do not use service account keys outside the cluster.** In this incident each new key was in use from more than 500 addresses within hours, and the attacker used the new key after 2 of 3 rotations. Replace such keys with Workload Identity Federation or short-lived tokens, so that no file can leave the machine.

**After a rotation, watch the new key and not only the old one.** The first attacker call with each new key came from an address and a client that the fleet never used.

**Delete the key when you disable the account.** Accounts that kept valid keys were read again in the second wave, hours after the first containment.

**Treat pods/exec and cluster-wide secret lists as administrator rights.** A service account with both can take the identity of every workload in the cluster.

**Turn on Data Access audit logs for GKE and the AI services.** Without them, the exec, the secret reads and the model calls in this incident leave no record.

## Frequently asked questions

**How do I know if a Google Cloud service account key is stolen?**

Search the audit logs for serviceAccountKeyName with caller addresses and user agents that your workloads do not use. Include denied calls. A sweep of many accounts in a few seconds is a strong sign.

**Why did rotating the service account key not stop the attacker?**

Rotation replaces the key and leaves the path to it open. In this incident each new key went to hundreds of machines within about five minutes, and the attacker used a new key 5 hours 35 minutes after its creation. Close the path first, then rotate.

**How can I see who read a Kubernetes secret after a key rotation?**

Search the GKE audit log for io.k8s.core.v1.secrets.get, .list and .watch on the secret. These read calls appear only when Data Access audit logs are on for the Kubernetes Engine API. If only the expected readers appear, look at the machines that receive the key.

**Can a GKE Workload Identity token be used outside the cluster?**

Yes. The token is a normal Google OAuth access token, and it is valid for about one hour from any network. A VPC Service Controls perimeter or an IAM deny policy with a network condition can limit where a token works.

**Does a PERMISSION_DENIED entry mean that the attack failed?**

No. It means that this account has no access to that resource. The attacker in this incident used denied calls to sort the keys, and then used the keys that had access.

**Which audit logs show pods/exec in GKE?**

The GKE audit log records it as io.k8s.core.v1.pods.exec.create or .get. The exec in this incident was a get call, which appears only when Data Access logs are on for the Kubernetes Engine API.

## How Exaforce customers are protected

An attack with valid keys becomes visible in what the identity does after it authenticates. [Exaforce MDR](https://www.exaforce.com/mdr) watches that activity in Google Cloud and GKE and responds to it.

- **Coverage.** Exaforce covers service account and workload identity activity across Google Cloud, GKE and the identity provider. The coverage runs from the use of a key to the commands in a cluster. This is the [cloud infrastructure attack surface](https://www.exaforce.com/solutions/iaas-attack-surface).
- **Correlation.** The Exabots, the Exaforce AI agents, join this activity and the alerts from your other tools into one finding. Analysts then work on one incident.
- **Response.** Exaforce analysts opened a war room with the customer and listed the keys and identities in attacker use. They gave the order of containment: close the entry point, then rotate. The customer's team disabled the accounts and rotated the keys.
- **Risk findings.** Exaforce reports the service accounts that have user-managed keys and the service accounts that authenticate with a long-lived key. A team can then replace those keys with Workload Identity Federation before an attacker finds them.
- **Log analysis.** The analysis after each rotation showed the customer where the new key went and which objects the attacker read with it. For the cluster activity, one finding gave the full sequence for one service account (Figures 3 and 4). The account opened shell sessions in a pod of the development namespace, about 12 times in nine minutes. About forty minutes later a script listed namespaces, pods and secrets, and asked the cluster which actions the account was permitted to do. The secret lists succeeded in three namespaces and for the whole cluster. A second finding covered one service account key used from a hosting address outside the company (Figures 5 and 6). In about 5 seconds the caller listed three buckets and read one object, a script.

_Screenshot of a finding summary with a conclusion paragraph, six top findings and a panel of the identities, addresses and resources involved._

_Figure 3. The finding for the cluster activity, as an analyst sees it. The conclusion gives the sequence of calls, and the list below it gives the main facts. Names, addresses and locations are redacted._

_Screenshot of a finding analysis table with six rows, one for each factor of the investigation._

_Figure 4. The same finding by factor: the identity, the network path, the two sessions, the client, the actions and the resources. Names, addresses and locations are redacted._

_Screenshot of a finding summary with a conclusion paragraph, seven top findings and a panel of the identity, network and resources involved._

_Figure 5. The finding for the service account key used from outside the company. The conclusion gives the calls and the network they came from, and the list below it gives the main facts. Names, addresses and locations are redacted._

_Figure 6. The same finding by factor: the identity, the network, the client, the actions, the resources and the behavior over the session. Names, addresses and locations are redacted._

If you are not a customer, the same team does [incident response](https://www.exaforce.com/incident-response).

**Seeing this in your environment?** Call the Exaforce incident response hotline at +1 (844) 660-1663, or go to <https://www.exaforce.com/incident-response>. A responder answers within 15 minutes, and you do not need a retainer.

## References

- Google Cloud: [AuditLog reference](https://cloud.google.com/logging/docs/reference/audit/auditlog/rest/Shared.Types/AuditLog) (authenticationInfo, serviceAccountKeyName, serviceAccountDelegationInfo, requestMetadata)
- Google Cloud: [GKE audit logging](https://cloud.google.com/kubernetes-engine/docs/how-to/audit-logging)
- Google Cloud: [Workload Identity Federation for GKE](https://cloud.google.com/kubernetes-engine/docs/concepts/workload-identity)
- Google Cloud: [Best practices for managing service account keys](https://cloud.google.com/iam/docs/best-practices-for-managing-service-account-keys)
- MITRE ATT&CK: [T1078.004](https://attack.mitre.org/techniques/T1078/004/), [T1580](https://attack.mitre.org/techniques/T1580/), [T1090](https://attack.mitre.org/techniques/T1090/), [T1530](https://attack.mitre.org/techniques/T1530/), [T1619](https://attack.mitre.org/techniques/T1619/), [T1552.007](https://attack.mitre.org/techniques/T1552/007/), [T1613](https://attack.mitre.org/techniques/T1613/), [T1609](https://attack.mitre.org/techniques/T1609/), [T1552.005](https://attack.mitre.org/techniques/T1552/005/), [T1528](https://attack.mitre.org/techniques/T1528/), [T1550.001](https://attack.mitre.org/techniques/T1550/001/)
- Google Threat Intelligence Group: [The Rise of LLMJacking](https://cloud.google.com/blog/topics/threat-intelligence/llmjacking-monetizing-compromised-cloud-models)

## More threat research

- [One Pasted Terminal Command, 21 Seconds: Anatomy of a macOS ClickFix Infostealer Attempt](https://www.exaforce.com/threat-intelligence/macos-clickfix-infostealer-terminal-paste-analysis)

  [Jan Michálek November 26, 2026](https://www.exaforce.com/threat-intelligence/macos-clickfix-infostealer-terminal-paste-analysis)
- [A Stolen AWS Key Was Tested for AI Model Access in 210 Seconds: Anatomy of an LLMjacking Attempt After a Third-Party Breach](https://www.exaforce.com/threat-intelligence/llmjacking-stolen-aws-access-key-cloudtrail)

  [Joseph Odyn November 25, 2026](https://www.exaforce.com/threat-intelligence/llmjacking-stolen-aws-access-key-cloudtrail)
- [_AiTM phishing beat Okta number matching in 12 seconds_](https://www.exaforce.com/threat-intelligence/aitm-phishing-okta-number-matching-session-hijack)

  [A Phishing Relay Passed Okta MFA in 12 Seconds: Anatomy of a Mailbox Takeover](https://www.exaforce.com/threat-intelligence/aitm-phishing-okta-number-matching-session-hijack)

  [Joseph Odyn November 25, 2026](https://www.exaforce.com/threat-intelligence/aitm-phishing-okta-number-matching-session-hijack)

## The dream SOC team. Working with you 24/7.

Detection, triage, investigation, hunting, and response covered by five Exabots running on a unified, real-time view of your environment. Operate the platform yourself, or have Exaforce run it for you.

[Request Demo](https://www.exaforce.com/request-a-demo)
