Skip to content

New attack technique: Grant IAP Tunnel Access to an External Identity (gcp.execution.iap-tunnel-session) - #796

Open
Minosity-VR wants to merge 3 commits into
mainfrom
simon.marechal/gcp-execution-iap-tunnel-session
Open

New attack technique: Grant IAP Tunnel Access to an External Identity (gcp.execution.iap-tunnel-session)#796
Minosity-VR wants to merge 3 commits into
mainfrom
simon.marechal/gcp-execution-iap-tunnel-session

Conversation

@Minosity-VR

Copy link
Copy Markdown
Collaborator

What does this PR do?

New attack technique: gcp.execution.iap-tunnel-session

Motivation

GCP parity with existing AWS attack techniques.

Test results

  • stratus detonate gcp.execution.iap-tunnel-session
  • SetIamPolicy granting roles/iap.tunnelResourceAccessor appears in GCP Admin Activity audit logs

Checklist

  • The attack technique emulates a single attack step, not a full attack chain
  • We have factual evidence & references that the attack technique was used by real malware, pentesters, or attackers
  • The attack technique makes no assumption about the state of the environment prior to warming it up

@Minosity-VR
Minosity-VR force-pushed the simon.marechal/gcp-discovery-download-instance-metadata branch from 6985eca to 6feb46d Compare March 30, 2026 14:53
@Minosity-VR
Minosity-VR force-pushed the simon.marechal/gcp-execution-iap-tunnel-session branch from ec6c066 to 8f0f815 Compare March 30, 2026 14:54
@Minosity-VR
Minosity-VR marked this pull request as ready for review April 1, 2026 07:24
@Minosity-VR
Minosity-VR requested review from a team as code owners April 1, 2026 07:24
@Minosity-VR
Minosity-VR force-pushed the simon.marechal/gcp-discovery-download-instance-metadata branch from 6feb46d to e461282 Compare April 1, 2026 08:28
@Minosity-VR
Minosity-VR force-pushed the simon.marechal/gcp-execution-iap-tunnel-session branch from 8f0f815 to d365af8 Compare April 1, 2026 08:28
@Minosity-VR
Minosity-VR force-pushed the simon.marechal/gcp-discovery-download-instance-metadata branch from e461282 to 48187f4 Compare April 1, 2026 08:53
@Minosity-VR
Minosity-VR force-pushed the simon.marechal/gcp-execution-iap-tunnel-session branch from d365af8 to 52b4d0d Compare April 1, 2026 08:53
@Minosity-VR
Minosity-VR force-pushed the simon.marechal/gcp-discovery-download-instance-metadata branch from 48187f4 to e3b03db Compare April 1, 2026 09:04
@Minosity-VR
Minosity-VR force-pushed the simon.marechal/gcp-execution-iap-tunnel-session branch from 52b4d0d to 34a3079 Compare April 1, 2026 09:04
@christophetd
christophetd force-pushed the simon.marechal/gcp-discovery-download-instance-metadata branch from e3b03db to 4a33cbf Compare April 8, 2026 10:08
Base automatically changed from simon.marechal/gcp-discovery-download-instance-metadata to main April 8, 2026 13:01
Minosity-VR and others added 3 commits April 8, 2026 15:57
… (gcp.execution.iap-tunnel-session)

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>
@christophetd
christophetd force-pushed the simon.marechal/gcp-execution-iap-tunnel-session branch from 34a3079 to dc07d5d Compare April 8, 2026 13:58
<span style="font-variant: small-caps;">Detonation</span>:

- Add a project-level IAM binding granting <code>roles/iap.tunnelResourceAccessor</code>
to the attacker-controlled service account

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to give more detail on what external binding we're using here. See sample behavior at https://stratus-red-team.cloud/attack-techniques/GCP/gcp.persistence.backdoor-service-account-policy/#description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants