# An External ID is not authentication: audit your vendor roles

> The Qubole intrusion passed every External ID check. What External IDs protect against, what they don't, and a step-by-step audit of AWS roles that trust outside accounts, using Access Analyzer, role last used data and network conditions.

Published November 17, 2026 by Antivenom · https://antivenom.ai/blog/external-id-is-not-authentication

In the [Qubole intrusion](https://antivenom.ai/blog/qubole-vendor-role-abuse), every AssumeRole call the attacker made carried an External ID, and every one succeeded. Many teams treat the External ID like a password on a vendor role. AWS doesn't. Its documentation says it plainly: ["AWS does not treat the external ID as a secret."](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_common-scenarios_third-party.html)

If you have roles that trust a vendor's AWS account, this is the week to look at them. Here is what the External ID does, what it doesn't, and how to audit the rest with tools AWS already gives you.

![Diagram: a table of three trust policy checks against three callers. The principal check passes all three. The External ID check blocks only another customer trying to misuse the vendor. The source IP check blocks only a thief holding the vendor's own keys.](/blog/external-id-is-not-authentication.svg)

## What an External ID protects against

AWS built the External ID for one problem: the [confused deputy](https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html). A vendor serves many customers. You give the vendor your role's ARN. Another customer learns or guesses that ARN, which isn't secret, and gives it to the same vendor. Without a check, the vendor would assume your role on the other customer's behalf.

The External ID closes that gap. The vendor generates a unique ID for each customer and always sends the ID of the customer it is acting for. Your trust policy accepts only your ID. The other customer can't change what the vendor sends, so the vendor can't be tricked into your account.

## What it doesn't protect against

The External ID assumes the vendor is in control of its own identities. It says nothing about someone who has stolen the vendor's credentials. That person calls AssumeRole from the vendor's account, with the vendor's IDs, and passes both checks. That is what [Wiz observed](https://www.wiz.io/blog/qubole-cross-account-access-abused-in-the-wild) with Qubole.

The value is also easy to find. AWS notes that the External ID ["can be seen by anyone with permission to view the role"](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_common-scenarios_third-party.html). Wiz notes that it is logged in plaintext in CloudTrail and commonly stored by vendors and in infrastructure-as-code. **Treat the External ID as a routing label, not a credential.** The controls that stop a thief are elsewhere.

## Step 1: list every role that trusts an outside account

IAM Access Analyzer does this for you. An external access analyzer [analyzes role trust policies](https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-resources.html) and creates a finding for each role that an entity outside your zone of trust can assume. External access findings are [free](https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-findings.html). Set the zone of trust to your organization, so that roles shared between your own accounts don't bury the vendor ones.

For each finding, write down the vendor, its account ID, who in your company owns the integration, and whether it is still in use.

## Step 2: find the dormant ones

Wiz says most of the Qubole roles the attacker assumed were not otherwise in use. Yours may look the same.

`GetRole` returns [`RoleLastUsed`](https://docs.aws.amazon.com/IAM/latest/APIReference/API_RoleLastUsed.html), with the date and Region of last use. The date is null if the role hasn't been used in the tracking period, which covers the trailing 400 days. A vendor role with a null or old date is a candidate for removal today. For continuous coverage, an [unused access analyzer](https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-findings.html) reports roles with no activity in a window you choose. That one is charged per role analyzed.

Before you delete, check the contract and ask the integration owner. Then delete the role, or remove the vendor's account from the trust policy.

## Step 3: add a network condition where the vendor supports it

Wiz's Qubole finding is the strongest argument here: "a source IP condition alone would have blocked every role assumption we observed." If a vendor publishes the IP ranges or VPC endpoint it calls from, add a condition next to the External ID in the trust policy:

```json
"Condition": {
  "StringEquals": { "sts:ExternalId": "<id from the vendor>" },
  "IpAddress": { "aws:SourceIp": ["203.0.113.0/24"] }
}
```

The [condition key reference](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html) has two caveats. `aws:SourceIp` works only for public IP ranges, and it is not present when the request comes through a VPC endpoint. If the vendor calls through a VPC endpoint, use `aws:SourceVpce` with the endpoint ID the vendor gives you. Ask the vendor which applies and test with them before you enforce it, or you will break the integration.

If the vendor doesn't publish its ranges, ask for them. Wiz's advice to SaaS providers includes publishing egress ranges and restricting where their own principals can be used.

## Step 4: shrink what the role can do

In the Qubole case the attacker read Lambda configuration, Secrets Manager, Parameter Store and whole S3 buckets. Ask what each vendor actually needs. A cost tool rarely needs `secretsmanager:GetSecretValue`. A data tool may need one bucket, not all of them. [Last accessed information](https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_last-accessed.html) shows which services a role has used, over a tracking period of at least 400 days, so you can remove the rest with some confidence.

## Step 5: alert when the vendor arrives from somewhere new

Wiz found the Qubole activity in victims' own CloudTrail logs, where each AssumeRole into their roles was recorded. For each vendor account, record the source IPs and user agents of normal traffic. Then alert on a vendor principal calling from an address you haven't seen, on a dormant role suddenly being assumed, and on a vendor session calling secret-reading APIs it never used before.

Make sure you could investigate if one fires. Wiz recommends an organization-wide trail and S3 data events for sensitive buckets, because management events do not show object reads. It also notes that rotating a credential does not end role sessions already issued, so revoke active sessions as part of any response.

## This week's checklist

- Create an external access analyzer with your organization as the zone of trust.
- Export every role finding and give each one an owner.
- Delete roles for vendors you no longer use.
- Check `RoleLastUsed` for the rest, and question anything that has been quiet for months.
- Add `aws:SourceIp` or `aws:SourceVpce` conditions where the vendor supports them.
- Trim each role to what the vendor uses.
- Alert on vendor AssumeRole from new networks.
- Ask each vendor for distinct External IDs per role and for its egress ranges.

## The short version

The External ID answers one question: is this vendor acting for me? It cannot answer the other one: is this really the vendor? Network conditions, dormant role cleanup and narrow permissions answer that.

Antivenom's AI red team treats these roles as part of your attack surface. It runs only against your own systems, with your permission, and maps which outside accounts can become which roles and what each role can reach. The AI blue team tightens the trust policies and permissions, and the red team retests to prove the path is closed. For the identity graph behind all of this, read [your AWS perimeter is a graph of who can become whom](https://antivenom.ai/blog/iam-who-can-become-whom).
