Skip to content
← RegistryDossier · 6 steps · 5 edges

GitHub OIDC trust over-broad → AWS admin

An IAM role trusts GitHub Actions OIDC with a wildcard 'repo:*' subject. Any attacker GitHub repo can assume the role and run with its privileges.

Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll

§ Context

Assumed environment: target uses GitHub OIDC for keyless AWS deploys. The role's trust policy uses a wildcard token.actions.githubusercontent.com sub claim (or 'repo:org/*').

§ Steps

  1. 01
    Push a public repo with a GH Actions workflowInitial Access
    T1195Supply Chain Compromise
  2. 02
    Find role ARN + trust policyReconnaissance
    C-AWS-ACCT-ENUMAWS Account ID Enumeration
  3. 03
    Workflow obtains OIDC token + AssumeRoleWithWebIdentityLateral Movement
    C-AWS-ASSUMEROLE-CHAINAWS sts:AssumeRole Chain
  4. 04
    Backdoor IAM userPersistence
    C-AWS-IAM-BACKDOORAWS IAM Backdoor User / Access Key
  5. 05
    Exfil AWS keys / cloud secretsCredential Access
    C-SECRETS-MANAGER-DUMPSecrets Manager / Key Vault Dump
  6. 06
    Spot wildcard sub claimInitial Access
    C-OIDC-TRUST-MISCONFCloud OIDC Trust Misconfiguration

§ References

§ Frequently asked

What is the "GitHub OIDC trust over-broad → AWS admin" attack path?
An IAM role trusts GitHub Actions OIDC with a wildcard 'repo:*' subject. Any attacker GitHub repo can assume the role and run with its privileges. It chains 6 steps drawn from real-world offensive-security techniques.
What starting position does this attack require?
The first step is Push a public repo with a GH Actions workflow (T1195) — a initial access primitive. Assumed environment: target uses GitHub OIDC for keyless AWS deploys.
What is the final impact of this kill-chain?
The final step lands on Spot wildcard sub claim (C-OIDC-TRUST-MISCONF), which falls under Initial Access. From here, an operator typically pivots into post-exploitation or maintains persistence.
How can defenders detect or prevent this attack?
Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.

§ Related dossiers