Skip to content
Misconfiguration Write-up Intermediate

From GitHub To Account Takeover: Misconfigured Actions Place GCP & AWS Accounts At Risk

Misconfigured GitHub OIDC trust policies in AWS and GCP allowed any GitHub organization to assume roles or service accounts, and poorly defined subject conditions with wildcards in the organization name could be bypassed by creating a similarly named organization. An attacker could gain unauthorized access to cloud accounts.

Rezonate Follow

Published on rezonate.io

In April 2023, Rezonate research team explored prevalent misconfigurations of GitHub integration with cloud native vendors. GitHub OIDC-based trust relations have been found with the critical misconfigurations that leave connected AWS/GCP accounts vulnerable to potential takeover attacks.

Ori Amiga, on rezonate.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 9 min read.

In April 2023 the Rezonate research team looked at how GitHub integrates with cloud providers through OpenID Connect, and found trust relations with critical misconfigurations that leave connected AWS and GCP accounts open to takeover. The issue had been described before, in books and security blogs, but the team found dozens of GitHub public repositories, and potentially many private ones, still demonstrating it, leaving dozens of companies exposed. Affected organisations were notified, though more private repositories and organisations may remain at risk.

Context

Cloud and SaaS tools have made identity and access controls the connective tissue between operational tools and cloud-native environments. To keep operations flowing, IAM and DevOps teams share administrative access and create trust relations between third-party tools and their core cloud environments. The hard part is limiting privileges and conditions on those relations and monitoring this highly privileged administrative access.

A common example is a CI/CD pipeline that holds strong privileges and access to an organisation's cloud infrastructure. The team has seen dozens of cases where this access path was exploited through misconfigurations, lost credentials and access keys, and compromised supply chains such as the CircleCI and NPM incidents.

Because these access paths are so sensitive, CI/CD vendors added support for OpenID Connect (OIDC) to supply short-term credentials, considered more secure. GitHub, GitLab and CircleCI all announced OIDC support within the previous two years. OIDC is a modern, secure authentication method for creating trust relationships, but when it is not configured correctly it can become the root cause of a hidden, critical access risk.

GitHub's OIDC deployment guide lists the advantages over access keys:

  • No cloud secrets: no need to store cloud credentials as long-lived secrets; workflows request and use a short-lived access token from the cloud provider through OIDC.
  • Authentication and Authorization management: granular control over how workflows use credentials, using the cloud provider's own tools to control access to resources.
  • Rotating credentials: the cloud provider issues a short-lived access token valid for a single job, which then expires automatically.

The integration works in four steps:

  1. Create an Identity Provider in the target cloud environment.
  2. GitHub Actions generates an OIDC temporary token containing execution context such as the repository, organisation or branch.
  3. GitHub sends a request to the cloud provider containing the GitHub OIDC token.
  4. The cloud provider validates the token and the context, and exchanges it for short-lived credentials that allow access to the cloud environment.

Setup

Configuring trust between the cloud provider and GitHub is similar across providers and has two main steps: create an OIDC Identity Provider, then create a role or service account and establish trust with that provider.

Configure trust with GCP

Following Google Cloud's documentation, the process creates a Workload Identity Federation, which provides the issuer ID and basic attribute mapping.

Optionally, after configuring attribute mapping, you add Attribute Conditions such as a GitHub organisation, repository or branch.

With the Identity Provider configured, you bind it to service accounts so GitHub can use them in its workflow. In the example, a service account named github-actions-integration is connected to the newly created Identity Provider.

Configure trust with AWS

AWS starts the same way: create a new Identity Provider (OpenID Connect) with the GitHub Provider URL. Then create an IAM Role that references the new Identity Provider, allowing users federated by it to assume roles in the account. You name the role, add a description, and modify the access conditions. By default the trust policy condition only includes audience filters.

GitHub's integration documentation strongly recommends limiting access to specific repositories by adding filters against the token subject. AWS does not enforce additional conditions by default. Clicking "Edit Policy" to add conditions reveals a warning about the missing additional conditions.

Configure the GitHub workflow

The cloud side is now ready; the workflow side comes next.

  1. Add permissions to the workflow so it can read an OIDC token, at the beginning of the workflow YAML file.
  2. Add the matching action for the cloud provider: for AWS, configure-aws-credentials; for GCP, google-github-action/auth (the report links to setup-gcloud).

After these steps the integration is complete and the workflow can perform operations in the cloud environment.

Finding it

Although the integration is relatively simple, misconfigurations can expose access to unauthorised parties. GitHub's articles refer to conditional access as part of the integration, but the cloud infrastructure neither flags nor alerts when conditional access is not used. That silence during setup increases the chance an organisation ends up with misconfigured trust settings, producing roles and service accounts that threat actors can abuse.

The research identified two specific types of misconfiguration.

Misconfiguration: lack of subject condition

This occurs when whoever integrated the role added no conditional limitations to cloud access. It allows any GitHub organisation to access the cloud account.

Misconfiguration: poorly-defined condition pattern

This occurs when conditions limit the subject but are not restrictive enough, so they can be bypassed. For example, the subject condition may include a wildcard so that all repositories in the organisation can use the same role or service account. If the wildcard is mistakenly placed in the organisation name rather than the repository name, the condition allows unauthorised access from any GitHub organisation whose name fits the pattern.

Exploitation

To find vulnerable organisations and measure how prevalent the misconfigurations are, the team used GitHub search for Actions workflows that use OIDC with AWS or GCP. Using GitHub Code Search, they ran queries for AWS OIDC workflows and for GCP OIDC workflows, splitting each query into subqueries to avoid GitHub's result limit, and eventually produced a list of roles and accounts that were potentially vulnerable.

The Actions query returned thousands of results, and checking them through GitHub Actions would have been slow. The team's workaround was to identify vulnerable organisations using self-hosted runners.

Step 1: set up a self-hosted runner

GitHub Self-Hosted Runners let organisations execute parts of Actions workflows in their own environment. By controlling the machine that authenticates against the cloud, the team could extract the OIDC token and run batch tests against AWS roles and GCP service accounts outside GitHub. They downloaded and installed the GitHub self-hosted runner.

Step 2: proxy the runner's traffic

The runner was configured to proxy all traffic through the team's local proxy, using the http-proxy parameter within the GitHub action.

Step 3: trigger the workflow and intercept the token

With everything ready, the team triggered the workflow by committing to the repository. The commit started a workflow that made a network request to assume the target role with the Web Identity token. The team then extracted the token from the request the runner sent to AWS.

Decoding the JWT reveals the sub claim along with other identifiers that are sent and logged by the cloud provider as part of authentication.

Step 4: batch-test the roles

The token was copied into a multithreaded script that checks the potentially vulnerable roles. Using a pre-developed script and leveraging Boto3 and Gcloud, the team scanned the list of potentially vulnerable roles while holding the JWT.

Results

After removing duplicate roles and service accounts, the team scanned approximately 1500 roles and service accounts across GCP and AWS.

For the lack of subject condition, dozens of roles were vulnerable, allowing anyone to use them to access the accounts.

The poorly-defined condition was harder to test and required setting up a dedicated GitHub organisation per target. The team ran a random test against 20 organisations and found one vulnerable to this attack.

The vulnerable accounts included private companies, non-profit organisations, software development studios and many personal accounts. The team reached out to the relevant organisations and people with information about the vulnerable roles and remediation guidance.

Root cause

A role or service account is bound to the GitHub Identity Provider without a subject condition, or with a subject condition whose wildcard sits in the organisation name. In the first case any GitHub organisation can obtain credentials for the role; in the second, any organisation whose name matches the pattern can.

The cloud provider does not flag or alert when conditional access is missing. AWS's default trust policy condition includes only audience filters and does not enforce additional conditions; the warning about missing conditions appears only when you click "Edit Policy". GCP likewise does not flag or alert when conditional access is absent. GitHub's documentation recommends subject filters, but AWS does not enforce additional conditions by default, so a working integration can be completed with no subject restriction at all.

Impact

An attacker who finds such a role or service account can use it to access the connected AWS or GCP account, as the report's overview of the attack describes. The exposure applies to AWS and GCP users who use GitHub Actions with OIDC. The team's scan covered roughly 1500 roles and service accounts, with dozens vulnerable to the missing subject condition and one of 20 randomly tested organisations vulnerable to the wildcard pattern. Affected parties included private companies, non-profits, software development studios and many personal accounts. The team notes there may be more private repositories and organisations at risk beyond those notified.

Fix

Check whether you are affected

This misconfiguration is a risk for AWS and GCP users who use GitHub Actions with OIDC.

For the lack of subject conditions in AWS, check for roles with no subject limitations in their trust policy. In GCP, check for service accounts connected to an Identity Provider that has access to the Entire Pool.

For poorly-defined conditions in AWS, locate the StringLike conditions on roles connected to the Identity Provider and check for wildcards in the organisation name. In the report's example, a role intended for different repositories within the Rezonate organisation had a wildcard in the organisation name, so every organisation starting with "rezonate" could assume it: an attacker could create a GitHub organisation named "rezonateX" and get access to the role. This option does not apply to GCP, which does not support wildcards.

Rezonate customers should look for the security risk "GitHub Actions Role vulnerable to hijacking" in the Rezonate UI and follow the guided remediation steps attached to it.

For everyone else, the team released a script in its GitHub repository, github-oidc-checker, which performs a quick scan against an AWS account or GCP project and reveals possible vulnerable roles and service accounts.

Variants to test

  • Missing subject condition on AWS. Inspect trust policies of roles that reference the GitHub OIDC provider. A positive result is a role with no subject limitation, which any GitHub organisation can assume.
  • Missing subject condition on GCP. Inspect service accounts bound to a Workload Identity Federation provider. A positive result is a service account connected to the Entire Pool rather than a specific attribute condition.
  • Wildcard in the organisation name on AWS. Look for StringLike conditions on roles connected to the provider. A positive result is a StringLike condition with a wildcard in the organisation name, which any organisation whose name fits the pattern can satisfy.
  • Wildcard placement generally. Check whether the wildcard sits in the organisation segment rather than the repository segment of the subject condition; the former widens access to other organisations, the latter stays within one.
  • Token extraction through a self-hosted runner. Configure a runner to proxy traffic through a local proxy and trigger a workflow that assumes a role. A positive result is a Web Identity token visible in the outbound request, whose decoded sub shows the context the cloud provider will accept.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 18 min read.

What happened, in plain words

In April 2023, a group of security researchers at a company called Rezonate looked at a feature that lets GitHub talk to cloud providers. GitHub is the website where people store and share code. Cloud providers are companies like Amazon (AWS) and Google (GCP) that rent out computers and storage over the internet. The feature in question is called OpenID Connect, or OIDC for short.

OIDC is a way for one service to prove its identity to another service without sharing a password. Think of it like a hotel key card: the front desk (GitHub) gives you a card (a token) that opens a specific door (a cloud role) for a short time, and then the card stops working. The cloud provider checks the card and, if it looks right, lets you in.

The researchers found that many organisations had set up this trust relationship incorrectly. The door was left open to anyone, not just to the people who were supposed to have the key. That meant an attacker could walk in and take control of the connected AWS or GCP account. This kind of problem had been written about before, in books and security blogs, but the team found dozens of public GitHub repositories, and possibly many private ones, still affected. Dozens of companies were exposed. The team contacted the organisations it could identify, but more may still be at risk.

Context

Why cloud and SaaS tools need trust relationships

Cloud and SaaS tools have made identity and access controls the connective tissue between operational tools and cloud-native environments. In plain terms: when a company uses many online services, those services need to talk to each other and prove who they are. The systems that decide who can do what are called identity and access controls.

To keep operations flowing, IAM and DevOps teams share administrative access and create trust relations between third-party tools and their core cloud environments. IAM stands for Identity and Access Management: the part of a cloud account that decides who is allowed to do what. DevOps is the practice of building and running software automatically. A trust relation is an arrangement where one system says "I trust this other system to act on my behalf." The hard part is limiting privileges and conditions on those relations and monitoring this highly privileged administrative access. Privileges are the permissions someone or something has. Conditions are the rules that say when a permission applies.

A common example is a CI/CD pipeline that holds strong privileges and access to an organisation's cloud infrastructure. CI/CD stands for Continuous Integration and Continuous Delivery: an automated assembly line that takes code a developer writes, tests it, and ships it to the live service. Because that assembly line needs to deploy things into the cloud, it is given powerful access. The team has seen dozens of cases where this access path was exploited through misconfigurations, lost credentials and access keys, and compromised supply chains such as the CircleCI and NPM incidents. A supply chain here means the chain of tools and services a company depends on; if one link is compromised, everything downstream is at risk.

Why OIDC was introduced

Because these access paths are so sensitive, CI/CD vendors added support for OpenID Connect (OIDC) to supply short-term credentials, considered more secure. A credential is simply proof of identity, like a username and password. Short-term means it expires quickly, so if it leaks it is useless soon after. GitHub, GitLab and CircleCI all announced OIDC support within the previous two years. GitLab and CircleCI are competing code-hosting and CI/CD services.

OIDC is a modern, secure authentication method for creating trust relationships, but when it is not configured correctly it can become the root cause of a hidden, critical access risk. Authentication means proving who you are. Configuration means the settings someone chose when they set the system up.

GitHub's OIDC deployment guide lists the advantages over access keys. An access key is an old-style long password that a program uses to log in to a cloud account; it does not expire unless someone deletes it.

  • No cloud secrets: no need to store cloud credentials as long-lived secrets; workflows request and use a short-lived access token from the cloud provider through OIDC. A secret here means a password or key that must be kept hidden. A workflow is an automated set of steps that GitHub runs for you.
  • Authentication and Authorization management: granular control over how workflows use credentials, using the cloud provider's own tools to control access to resources. Authorization means deciding what an authenticated identity is allowed to do. Granular means fine-grained, down to individual actions.
  • Rotating credentials: the cloud provider issues a short-lived access token valid for a single job, which then expires automatically. Rotating means replacing credentials regularly so an old one stops working.

How the integration works, step by step

The integration works in four steps:

  1. Create an Identity Provider in the target cloud environment. An Identity Provider is a service that vouches for who someone is. Here, GitHub is the identity provider and the cloud account is told to trust it.
  2. GitHub Actions generates an OIDC temporary token containing execution context such as the repository, organisation or branch. GitHub Actions is GitHub's automation feature. A token is a small piece of data that proves identity, like a stamped ticket. Execution context means the details of what is running: which repository (project folder), which organisation (account that owns repositories) and which branch (a line of development).
  3. GitHub sends a request to the cloud provider containing the GitHub OIDC token. A request is a message one computer sends to another asking it to do something.
  4. The cloud provider validates the token and the context, and exchanges it for short-lived credentials that allow access to the cloud environment. Validates means checks that it is genuine and still valid.

Setup

Configuring trust between the cloud provider and GitHub is similar across providers and has two main steps: create an OIDC Identity Provider, then create a role or service account and establish trust with that provider. A role (in AWS) or service account (in GCP) is a named identity that a program can use, with a defined set of permissions.

Configure trust with GCP

Following Google Cloud's documentation, the process creates a Workload Identity Federation, which provides the issuer ID and basic attribute mapping. Workload Identity Federation is Google's name for the feature that lets outside systems, like GitHub, log in without a Google password. The issuer ID identifies who issued the token (GitHub). Attribute mapping means deciding which details in the token (such as the repository name) are copied into fields Google understands.

Optionally, after configuring attribute mapping, you add Attribute Conditions such as a GitHub organisation, repository or branch. A condition is a rule that must be true for access to be granted. For example: "only allow this if the token says the request comes from the repository my-org/my-repo on the main branch."

With the Identity Provider configured, you bind it to service accounts so GitHub can use them in its workflow. Binding means linking the two together. In the example, a service account named github-actions-integration is connected to the newly created Identity Provider.

Configure trust with AWS

AWS starts the same way: create a new Identity Provider (OpenID Connect) with the GitHub Provider URL. A URL is a web address. Then create an IAM Role that references the new Identity Provider, allowing users federated by it to assume roles in the account. Federated means trusted through an outside identity provider. To assume a role means to temporarily take on its permissions. You name the role, add a description, and modify the access conditions. By default the trust policy condition only includes audience filters. A trust policy is the document that says who is allowed to use the role. An audience filter checks that the token was meant for this cloud account, but says nothing about which repository or organisation it came from.

GitHub's integration documentation strongly recommends limiting access to specific repositories by adding filters against the token subject. The subject is a field inside the token that says who the token is about. AWS does not enforce additional conditions by default. Clicking "Edit Policy" to add conditions reveals a warning about the missing additional conditions. In other words, the cloud provider will happily let you finish the setup with no restriction at all, and only mentions the problem if you go looking for it.

Configure the GitHub workflow

The cloud side is now ready; the workflow side comes next.

  1. Add permissions to the workflow so it can read an OIDC token, at the beginning of the workflow YAML file. YAML is a plain-text format for configuration files. Permissions here are settings that tell GitHub what the workflow is allowed to do.
  2. Add the matching action for the cloud provider: for AWS, configure-aws-credentials; for GCP, google-github-action/auth (the report links to setup-gcloud). An action is a reusable building block in GitHub Actions.

After these steps the integration is complete and the workflow can perform operations in the cloud environment.

Finding it

Although the integration is relatively simple, misconfigurations can expose access to unauthorised parties. GitHub's articles refer to conditional access as part of the integration, but the cloud infrastructure neither flags nor alerts when conditional access is not used. Conditional access means "only allow this if certain conditions are met." Flags and alerts are warnings the system shows you. That silence during setup increases the chance an organisation ends up with misconfigured trust settings, producing roles and service accounts that threat actors can abuse. A threat actor is anyone trying to break in.

The research identified two specific types of misconfiguration.

Misconfiguration: lack of subject condition

This occurs when whoever integrated the role added no conditional limitations to cloud access. It allows any GitHub organisation to access the cloud account. In everyday terms: the door has a lock, but the lock accepts any key from any hotel in the world.

Misconfiguration: poorly-defined condition pattern

This occurs when conditions limit the subject but are not restrictive enough, so they can be bypassed. For example, the subject condition may include a wildcard so that all repositories in the organisation can use the same role or service account. A wildcard is a symbol (usually *) that stands for "anything here." If the wildcard is mistakenly placed in the organisation name rather than the repository name, the condition allows unauthorised access from any GitHub organisation whose name fits the pattern. In everyday terms: the rule says "anyone whose name starts with rezonate may enter," so someone calling themselves rezonateX gets in too.

Exploitation

To find vulnerable organisations and measure how prevalent the misconfigurations are, the team used GitHub search for Actions workflows that use OIDC with AWS or GCP. Using GitHub Code Search, they ran queries for AWS OIDC workflows and for GCP OIDC workflows, splitting each query into subqueries to avoid GitHub's result limit, and eventually produced a list of roles and accounts that were potentially vulnerable. GitHub Code Search is a search engine over the code stored on GitHub. A result limit is a cap on how many answers a search will return.

The Actions query returned thousands of results, and checking them through GitHub Actions would have been slow. The team's workaround was to identify vulnerable organisations using self-hosted runners. A runner is the machine that actually executes a workflow. GitHub normally provides these machines, but a self-hosted runner is one the organisation runs itself, on its own computer.

Step 1: set up a self-hosted runner

GitHub Self-Hosted Runners let organisations execute parts of Actions workflows in their own environment. By controlling the machine that authenticates against the cloud, the team could extract the OIDC token and run batch tests against AWS roles and GCP service accounts outside GitHub. Extract means to pull out and copy. Batch tests means checking many targets automatically in one go. They downloaded and installed the GitHub self-hosted runner.

Step 2: proxy the runner's traffic

The runner was configured to proxy all traffic through the team's local proxy, using the http-proxy parameter within the GitHub action. A proxy is a middleman computer that all messages pass through, so the middleman can read and record them. A parameter is a setting you pass to a program.

Step 3: trigger the workflow and intercept the token

With everything ready, the team triggered the workflow by committing to the repository. A commit is a saved change to the code. The commit started a workflow that made a network request to assume the target role with the Web Identity token. The Web Identity token is the name AWS uses for the OIDC token in this exchange. The team then extracted the token from the request the runner sent to AWS.

Decoding the JWT reveals the sub claim along with other identifiers that are sent and logged by the cloud provider as part of authentication. A JWT, or JSON Web Token, is a token format made of three parts separated by dots; the middle part is readable data encoded in a standard way, not encrypted. Decoding means converting that encoded data back into readable text. A claim is a named field inside the token, such as sub (subject), which says who the token is about.

Step 4: batch-test the roles

The token was copied into a multithreaded script that checks the potentially vulnerable roles. A script is a small program. Multithreaded means it does several checks at the same time instead of one after another. Using a pre-developed script and leveraging Boto3 and Gcloud, the team scanned the list of potentially vulnerable roles while holding the JWT. Boto3 is Amazon's official Python library for talking to AWS. Gcloud is Google's command-line tool for talking to GCP. A library is a collection of ready-made code that saves you writing everything from scratch.

Results

After removing duplicate roles and service accounts, the team scanned approximately 1500 roles and service accounts across GCP and AWS.

For the lack of subject condition, dozens of roles were vulnerable, allowing anyone to use them to access the accounts.

The poorly-defined condition was harder to test and required setting up a dedicated GitHub organisation per target. The team ran a random test against 20 organisations and found one vulnerable to this attack.

The vulnerable accounts included private companies, non-profit organisations, software development studios and many personal accounts. The team reached out to the relevant organisations and people with information about the vulnerable roles and remediation guidance. Remediation means fixing the problem.

Root cause

A role or service account is bound to the GitHub Identity Provider without a subject condition, or with a subject condition whose wildcard sits in the organisation name. In the first case any GitHub organisation can obtain credentials for the role; in the second, any organisation whose name matches the pattern can.

The cloud provider does not flag or alert when conditional access is missing. AWS's default trust policy condition includes only audience filters and does not enforce additional conditions; the warning about missing conditions appears only when you click "Edit Policy". GCP likewise does not flag or alert when conditional access is absent. GitHub's documentation recommends subject filters, but AWS does not enforce additional conditions by default, so a working integration can be completed with no subject restriction at all.

Impact

An attacker who finds such a role or service account can use it to access the connected AWS or GCP account, as the report's overview of the attack describes. Impersonate means to pretend to be that application. The exposure applies to AWS and GCP users who use GitHub Actions with OIDC. The team's scan covered roughly 1500 roles and service accounts, with dozens vulnerable to the missing subject condition and one of 20 randomly tested organisations vulnerable to the wildcard pattern. Affected parties included private companies, non-profits, software development studios and many personal accounts. The team notes there may be more private repositories and organisations at risk beyond those notified.

Fix

Check whether you are affected

This misconfiguration is a risk for AWS and GCP users who use GitHub Actions with OIDC.

For the lack of subject conditions in AWS, check for roles with no subject limitations in their trust policy. In GCP, check for service accounts connected to an Identity Provider that has access to the Entire Pool. The Entire Pool means every identity that the provider can vouch for, rather than a named subset.

For poorly-defined conditions in AWS, locate the StringLike conditions on roles connected to the Identity Provider and check for wildcards in the organisation name. StringLike is an AWS condition type that allows wildcard matching on text. In the report's example, a role intended for different repositories within the Rezonate organisation had a wildcard in the organisation name, so every organisation starting with "rezonate" could assume it: an attacker could create a GitHub organisation named "rezonateX" and get access to the role. This option does not apply to GCP, which does not support wildcards.

Rezonate customers should look for the security risk "GitHub Actions Role vulnerable to hijacking" in the Rezonate UI and follow the guided remediation steps attached to it. A UI is a user interface, the screens you click through.

For everyone else, the team released a script in its GitHub repository, github-oidc-checker, which performs a quick scan against an AWS account or GCP project and reveals possible vulnerable roles and service accounts. A repository is a project folder on GitHub.

Variants to test

  • Missing subject condition on AWS. Inspect trust policies of roles that reference the GitHub OIDC provider. A positive result is a role with no subject limitation, which any GitHub organisation can assume.
  • Missing subject condition on GCP. Inspect service accounts bound to a Workload Identity Federation provider. A positive result is a service account connected to the Entire Pool rather than a specific attribute condition.
  • Wildcard in the organisation name on AWS. Look for StringLike conditions on roles connected to the provider. A positive result is a StringLike condition with a wildcard in the organisation name, which any organisation whose name fits the pattern can satisfy.
  • Wildcard placement generally. Check whether the wildcard sits in the organisation segment rather than the repository segment of the subject condition; the former widens access to other organisations, the latter stays within one.
  • Token extraction through a self-hosted runner. Configure a runner to proxy traffic through a local proxy and trigger a workflow that assumes a role. A positive result is a Web Identity token visible in the outbound request, whose decoded sub shows the context the cloud provider will accept.

Glossary

  • Access key: a long-lived password-like credential a program uses to log in to a cloud account.
  • Action (GitHub Actions): a reusable building block in a GitHub workflow.
  • Attribute condition: a rule in GCP that must be true (for example, a specific repository) before access is granted.
  • Attribute mapping: deciding which details from a token are copied into fields the cloud provider understands.
  • Audience filter: a check that the token was intended for this cloud account, without checking which repository or organisation it came from.
  • Authentication: proving who you are.
  • Authorization: deciding what an authenticated identity is allowed to do.
  • AWS: Amazon Web Services, Amazon's cloud platform.
  • Binding: linking two things together, such as an identity provider and a service account.
  • Boto3: Amazon's official Python library for talking to AWS.
  • Branch: a line of development inside a code repository.
  • CI/CD: Continuous Integration and Continuous Delivery, the automated process that tests and ships code.
  • Claim: a named field inside a token, such as sub.
  • Cloud provider: a company that rents out computing over the internet, such as AWS or GCP.
  • Commit: a saved change to code.
  • Condition: a rule that must be true for access to be granted.
  • Conditional access: allowing access only when certain conditions are met.
  • Configuration: the settings someone chose when setting a system up.
  • Credential: proof of identity, such as a password or key.
  • Decoding: converting encoded data back into readable text.
  • DevOps: the practice of building and running software automatically.
  • Entire Pool: in GCP, every identity the identity provider can vouch for, rather than a named subset.
  • Extract: to pull out and copy.
  • Federated: trusted through an outside identity provider.
  • GCP: Google Cloud Platform, Google's cloud platform.
  • Gcloud: Google's command-line tool for talking to GCP.
  • GitHub: a website where people store and share code.
  • GitHub Actions: GitHub's automation feature that runs workflows.
  • GitLab: a competing code-hosting and CI/CD service.
  • Granular: fine-grained, down to individual actions.
  • IAM: Identity and Access Management, the part of a cloud account that decides who can do what.
  • Identity Provider: a service that vouches for who someone is.
  • Impersonate: to pretend to be someone or something else.
  • Issuer ID: the identifier of who issued a token.
  • JWT: JSON Web Token, a token format with three dot-separated parts, the middle one readable when decoded.
  • Library: a collection of ready-made code that saves you writing everything from scratch.
  • Multithreaded: doing several tasks at the same time instead of one after another.
  • OIDC: OpenID Connect, a way for one service to prove its identity to another without sharing a password.
  • Parameter: a setting passed to a program.
  • Permissions: settings that say what something is allowed to do.
  • Privileges: the permissions an identity has.
  • Proxy: a middleman computer that messages pass through, so it can read and record them.
  • Remediation: fixing a problem.
  • Repository: a project folder, on GitHub or elsewhere.
  • Request: a message one computer sends to another asking it to do something.
  • Role (AWS): a named identity a program can temporarily take on, with defined permissions.
  • Runner: the machine that executes a workflow.
  • Script: a small program.
  • Secret: a password or key that must be kept hidden.
  • Self-hosted runner: a runner the organisation runs on its own computer instead of GitHub's.
  • Service account (GCP): a named identity a program can use, with defined permissions.
  • StringLike: an AWS condition type that allows wildcard matching on text.
  • Subject: the field in a token that says who the token is about.
  • Supply chain: the chain of tools and services a company depends on.
  • Threat actor: anyone trying to break in.
  • Token: a small piece of data that proves identity, like a stamped ticket.
  • Trust policy: the document that says who is allowed to use a role.
  • Trust relation: an arrangement where one system trusts another to act on its behalf.
  • UI: user interface, the screens you click through.
  • URL: a web address.
  • Validates: checks that something is genuine and still valid.
  • Web Identity token: AWS's name for the OIDC token in this exchange.
  • Wildcard: a symbol (usually *) that stands for "anything here."
  • Workflow: an automated set of steps GitHub runs for you.
  • Workload Identity Federation: Google's feature that lets outside systems log in without a Google password.
  • YAML: a plain-text format for configuration files.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.