New attack technique: Overwrite a Cloud Function with Malicious Code (gcp.persistence.overwrite-cloud-function) - #809
Open
Minosity-VR wants to merge 3 commits into
Conversation
Minosity-VR
force-pushed
the
simon.marechal/gcp-persistence-create-workload-identity-federation
branch
from
March 30, 2026 14:54
95b153e to
ce99272
Compare
Minosity-VR
force-pushed
the
simon.marechal/gcp-persistence-overwrite-cloud-function
branch
from
March 30, 2026 14:54
bb682c1 to
d552117
Compare
Minosity-VR
marked this pull request as ready for review
April 1, 2026 07:26
Minosity-VR
force-pushed
the
simon.marechal/gcp-persistence-create-workload-identity-federation
branch
from
April 1, 2026 08:29
ce99272 to
4322496
Compare
Minosity-VR
force-pushed
the
simon.marechal/gcp-persistence-overwrite-cloud-function
branch
from
April 1, 2026 08:29
d552117 to
d0d5122
Compare
Minosity-VR
force-pushed
the
simon.marechal/gcp-persistence-create-workload-identity-federation
branch
from
April 1, 2026 08:54
4322496 to
2496e57
Compare
Minosity-VR
force-pushed
the
simon.marechal/gcp-persistence-overwrite-cloud-function
branch
from
April 1, 2026 08:54
d0d5122 to
c8802ae
Compare
Minosity-VR
force-pushed
the
simon.marechal/gcp-persistence-create-workload-identity-federation
branch
from
April 1, 2026 09:04
2496e57 to
363422b
Compare
Minosity-VR
force-pushed
the
simon.marechal/gcp-persistence-overwrite-cloud-function
branch
from
April 1, 2026 09:04
c8802ae to
fb8f494
Compare
…(gcp.persistence.overwrite-cloud-function) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Minosity-VR
force-pushed
the
simon.marechal/gcp-persistence-create-workload-identity-federation
branch
from
April 9, 2026 08:28
363422b to
7b7c5db
Compare
Minosity-VR
force-pushed
the
simon.marechal/gcp-persistence-overwrite-cloud-function
branch
from
April 9, 2026 08:28
fb8f494 to
6998c92
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds a new GCP attack technique
gcp.persistence.overwrite-cloud-functionthat replaces the source code of a Cloud Functions v2 function with code that exfiltrates runtime environment variables, simulating a supply-chain or insider attack.Motivation
GCP parity effort with existing AWS techniques (analogous to
aws.persistence.lambda-overwrite-code).Checklist
Test results
google.cloud.functions.v2.CloudFunctionsService.UpdateFunction)