actas in cloudbuild

This commit is contained in:
Carlos Polop
2025-01-05 16:03:29 +01:00
parent ec0ff62bcb
commit c1aee098b6

View File

@@ -10,7 +10,7 @@ For more information about Cloud Build check:
../gcp-services/gcp-cloud-build-enum.md
{{#endref}}
### `cloudbuild.builds.create`
### `cloudbuild.builds.create`, `iam.serviceAccounts.actAs`
With this permission you can **submit a cloud build**. The cloudbuild machine will have in its filesystem by **default a token of the cloudbuild Service Account**: `<PROJECT_NUMBER>@cloudbuild.gserviceaccount.com`. However, you can **indicate any service account inside the project** in the cloudbuild configuration.\
Therefore, you can just make the machine exfiltrate to your server the token or **get a reverse shell inside of it and get yourself the token** (the file containing the token might change).