Workload identity audit

tenant 00000000-0000-0000-0000-000000000000 · 5 identities · 4 workflows · generated 2026-11-28 22:24 UTC · wiaudit 0.1.10
4critical
4high
4medium
5low
0info
SeverityRuleFindingCount
criticalWIA003Identity trusts pull_request workflows1
criticalWIA006Trust points to a GitHub repository that no longer exists1
criticalWIA007Trust points to a renamed GitHub repository1
criticalWIA101pull_request_target workflow can request OIDC tokens1
highWIA001GitHub trust uses a mutable, name-based subject4
highWIA004Federated identity holds broad privileged role2
highWIA002Flexible credential uses wildcards without binding repository_id1
mediumWIA010Trust to a GitHub repository outside your organizations1
mediumWIA103azure/login uses a client secret instead of OIDC1
mediumWIA104azure/login OIDC step without id-token: write1
lowWIA005Non-default audience on federated credential1
lowWIA009Federated credential from an unrecognized issuer1
lowWIA102id-token: write granted to every job in the workflow1

criticalWIA003 · Identity trusts pull_request workflows

app:gh-payments-deploy (11111111-1111-1111-1111-111111111111) / credential 'pr'

Credential 'pr' accepts tokens from any pull_request run in contoso/payments-api. Anyone who can open a PR from a branch in the repo can act as this identity (Owner on subscription /subscriptions/33333333-3333-3333-3333-333333333333).

Fix: Use a separate low-privilege identity for PR validation (e.g. Reader / plan-only), and environment-based subjects with required reviewers for deployments.

criticalWIA006 · Trust points to a GitHub repository that no longer exists

app:gh-legacy-tool (44444444-4444-4444-4444-444444444444) / credential 'main'

Credential 'main' trusts contoso/legacy-tool, which GitHub reports as not found. If the name is re-registered by someone else, their workflows can get this identity's token (name-based subject).

Fix: Delete the credential, or move it to the immutable subject format bound to the original IDs.

criticalWIA007 · Trust points to a renamed GitHub repository

app:gh-payments-deploy (11111111-1111-1111-1111-111111111111) / credential 'old-name'

Credential 'old-name' trusts the old name contoso/old-api; the repo is now contoso/payments-api. The old name can be registered again by someone else.

Fix: Replace it with a credential for contoso/payments-api in the immutable subject format.

criticalWIA101 · pull_request_target workflow can request OIDC tokens

.github/workflows/label.yml:10

.github/workflows/label.yml runs on pull_request_target and jobs label, report have id-token: write. pull_request_target runs with repository secrets and permissions, so a crafted PR that gets code executed here can obtain cloud tokens.

Fix: Do not grant id-token: write in pull_request_target workflows. Split into a pull_request workflow (no cloud access) and a deployment workflow on push / environment.

highWIA001 · GitHub trust uses a mutable, name-based subject

app:gh-payments-deploy (11111111-1111-1111-1111-111111111111) / credential 'pr'

Credential 'pr' trusts 'repo:contoso/payments-api:pull_request'. Name-based subjects follow renames and recycled names; GitHub uses the immutable format for repos created, renamed or transferred since 2026-07-15 and Microsoft recommends migrating.

Fix: Migrate to repo:OWNER@OWNER_ID/REPO@REPO_ID:<context>, or a flexible credential that also checks repository_id. Suggested subject: repo:contoso@5544123/payments-api@821093847:pull_request

highWIA001 · GitHub trust uses a mutable, name-based subject

app:gh-payments-deploy (11111111-1111-1111-1111-111111111111) / credential 'prod'

Credential 'prod' trusts 'repo:contoso/payments-api:environment:prod'. Name-based subjects follow renames and recycled names; GitHub uses the immutable format for repos created, renamed or transferred since 2026-07-15 and Microsoft recommends migrating.

Fix: Migrate to repo:OWNER@OWNER_ID/REPO@REPO_ID:<context>, or a flexible credential that also checks repository_id. Suggested subject: repo:contoso@5544123/payments-api@821093847:environment:prod

highWIA002 · Flexible credential uses wildcards without binding repository_id

app:gh-monorepo-all (55555555-5555-5555-5555-555555555555) / credential 'any-branch'

Credential 'any-branch' matches sub with a wildcard (claims['sub'] matches 'repo:contoso/*:ref:refs/heads/*') but does not check repository_id or repository_owner_id.

Fix: Add `and claims['repository_id'] eq '<id>'` (and/or repository_owner_id) to the expression, as Microsoft now requires for GitHub flexible credentials.

highWIA004 · Federated identity holds broad privileged role

app:gh-payments-deploy (11111111-1111-1111-1111-111111111111)

gh-payments-deploy has 'Owner' at subscription scope (/subscriptions/33333333-3333-3333-3333-333333333333). Anyone who can satisfy one of its federated credentials gets this access.

Fix: Scope the role to the resource group or resources the pipeline deploys to. Avoid Owner / User Access Administrator for CI identities; use separate identities per environment.

mediumWIA004 · Federated identity holds broad privileged role

app:gh-legacy-tool (44444444-4444-4444-4444-444444444444)

gh-legacy-tool has 'Contributor' at subscription scope (/subscriptions/33333333-3333-3333-3333-333333333333). Anyone who can satisfy one of its federated credentials gets this access.

Fix: Scope the role to the resource group or resources the pipeline deploys to. Avoid Owner / User Access Administrator for CI identities; use separate identities per environment.

mediumWIA010 · Trust to a GitHub repository outside your organizations

app:gh-reporting-deploy (66666666-6666-6666-6666-666666666666) / credential 'jdoe-fork'

Credential 'jdoe-fork' trusts jdoe-dev/reporting-tools: owner 'jdoe-dev' is not in your allowed GitHub owners. Personal and external accounts are outside your org's SSO, policies and offboarding; whoever controls that repo can act as this identity (no broad privileged roles found).

Fix: Move the repository into your GitHub organization, or delete the credential. If the trust is intended, document it and add the owner to --allowed-owners.

mediumWIA103 · azure/login uses a client secret instead of OIDC

.github/workflows/legacy.yml:7

Job 'old' in .github/workflows/legacy.yml logs in with `creds:` (a long-lived client secret).

Fix: Switch to OIDC: add a federated credential to the identity, use client-id / tenant-id / subscription-id inputs, grant id-token: write, then delete the secret.

mediumWIA104 · azure/login OIDC step without id-token: write

.github/workflows/pr.yml:8

Job 'plan' in .github/workflows/pr.yml uses azure/login with OIDC but cannot request a token: no permissions block exists, and default token permissions never include id-token.

Fix: Add to the job: permissions: id-token: write contents: read
WIA001 · GitHub trust uses a mutable, name-based subject (2 low)

lowWIA001 · GitHub trust uses a mutable, name-based subject

app:gh-reporting-deploy (66666666-6666-6666-6666-666666666666) / credential 'jdoe-fork'

Credential 'jdoe-fork' trusts 'repo:jdoe-dev/reporting-tools:ref:refs/heads/main'. Name-based subjects follow renames and recycled names; GitHub uses the immutable format for repos created, renamed or transferred since 2026-07-15 and Microsoft recommends migrating.

Fix: Migrate to repo:OWNER@OWNER_ID/REPO@REPO_ID:<context>, or a flexible credential that also checks repository_id.

lowWIA001 · GitHub trust uses a mutable, name-based subject

managedIdentity:mi-new-svc (22222222-2222-2222-2222-222222222222) / credential 'main'

Credential 'main' trusts 'repo:contoso/new-svc:ref:refs/heads/main'. Name-based subjects follow renames and recycled names; GitHub uses the immutable format for repos created, renamed or transferred since 2026-07-15 and Microsoft recommends migrating.

Fix: Migrate to repo:OWNER@OWNER_ID/REPO@REPO_ID:<context>, or a flexible credential that also checks repository_id. Suggested subject: repo:contoso@5544123/new-svc@900001:ref:refs/heads/main
WIA005 · Non-default audience on federated credential (1 low)

lowWIA005 · Non-default audience on federated credential

app:gh-monorepo-all (55555555-5555-5555-5555-555555555555) / credential 'custom-aud'

Credential 'custom-aud' accepts audiences ['custom-audience'] instead of api://AzureADTokenExchange.

Fix: Use the recommended audience api://AzureADTokenExchange unless you have a documented reason.
WIA009 · Federated credential from an unrecognized issuer (1 low)

lowWIA009 · Federated credential from an unrecognized issuer

app:gh-monorepo-all (55555555-5555-5555-5555-555555555555) / credential 'partner'

Credential 'partner' trusts issuer https://oidc.partner-ci.example.net.

Fix: Confirm the issuer is owned by your organization and still in use; delete it otherwise.
WIA102 · id-token: write granted to every job in the workflow (1 low)

lowWIA102 · id-token: write granted to every job in the workflow

.github/workflows/label.yml

.github/workflows/label.yml sets id-token: write at workflow level; jobs label, report inherit it even if they never log in to the cloud.

Fix: Move `permissions: id-token: write` to the job that runs azure/login.