Skip to main content
All articles

Qubole and the AWS cross-account role trap: your vendor's IAM role is an open door

Between 14 and 26 October 2026, an actor used a vendor's AWS account to assume customer integration roles, every call carrying a valid ExternalId. How cross-account trust is abused, the CloudTrail hunt, how we test for it, and the trust-policy changes that would have stopped it.

By Published

9 min read7 views

{
  "Effect": "Allow",
  "Principal": { "AWS": "arn:aws:iam::805246085872:root" },
  "Action": "sts:AssumeRole",
  "Condition": { "StringEquals": { "sts:ExternalId": "a1b2c3d4" } }
}

That is the trust policy shape that sits on the back of nearly every third-party AWS integration: a role in your account that says "the vendor's account may assume me, if it presents this ExternalId". The account ID above is Qubole's, as published by Wiz on 9 November 2026. The ExternalId and the rest of the document are illustrative, but the structure is the one that was abused.

Wiz reports that from 14 to 26 October 2026 an actor used IAM users in that vendor account to call sts:AssumeRole on customer integration roles, every request carrying a valid ExternalId, every one succeeding. In most environments, Wiz says, these were the only AssumeRole calls from the vendor account that month. AWS's statement put it this way: AWS services "were not compromised by this issue and operated as designed". What failed was the trust relationship, and nobody on the customer side was positioned to see it.

The trap, in plain terms

A cross-account role has two halves. The trust policy says who can assume it. The permissions policy says what it can do once assumed. Vendors ask you to create one so their product can read your resources: logs, S3 data, cost reports, cluster metadata.

The common trust pattern names the vendor's whole account as the principal, usually as :root. That means any identity in that account with sts:AssumeRole permission can assume your role. You are not trusting the vendor's product. You are trusting every IAM user, role and access key that exists in their account, now and in future.

The ExternalId is meant to stop the confused-deputy problem, where a vendor is tricked into using your role on someone else's behalf. It does not authenticate the caller. It is a string the vendor stores next to your account ID, it is written into your trust policy in plaintext. Wiz's guidance is to "Treat the External ID as non-secret." Anyone who can read the vendor's configuration store can use it.

So a leaked vendor credential, plus the ExternalIds it already has on file, is a skeleton key to every customer that trusts that account. Two details from the incident make it worse:

  • Old integrations stay trusted. Wiz's first two recommendations are to inventory roles that allow an external account and delete integration roles you no longer use. A role you created for a trial three years ago still carries a trust policy.
  • Rotating a vendor credential does not end live sessions. In Wiz's words, "Rotating a credential does not end temporary sessions that were already issued."

What the actor did with the role

Wiz documents the post-access activity, and it is a standard cloud credential sweep:

  • Discovery: broad enumeration across storage, compute, databases, identity and keys, including ListBuckets, ListObjects, DescribeInstances, ListRoles, ListKeys and GetKeyPolicy.
  • Credential harvesting: GetFunctionConfiguration on Lambda functions, which returns environment variables, Secrets Manager ListSecrets and GetSecretValue, and SSM DescribeParameters and GetParameter.
  • Credential validation: TruffleHog was used to test harvested AWS keys with GetCallerIdentity, and to test Entra service principal client secrets and Okta client credentials.
  • Data theft: ListBuckets, ListObjects, HeadObject and GetObject, in some cases downloading entire buckets in one session.

The last two points matter beyond AWS. A role that can read a Lambda environment variable or an SSM parameter is a role that can read someone's Entra client secret, which is why the incident reaches identity systems as well as storage. Wiz also reports a separate campaign from 8 to 11 October that used access keys which Wiz believes were created for Qubole integrations, which it could not link to the role-assumption activity. A "small number" of those led to compromised customer environments.

We are not repeating the attribution claims that circulated afterwards. Wiz said the targeting looked opportunistic, and a threat actor's claim of responsibility reported by the press has not been confirmed by Wiz.

How we test for it

In a cloud penetration test, vendor trust is one of the first things we map, because it is the one part of the environment that was designed to be reachable from outside. From a read-only audit identity:

1. Find every role that trusts another account.

ACCOUNT=$(aws sts get-caller-identity --query Account --output text)
aws iam list-roles --output json \
 | jq -r --arg me "$ACCOUNT" '
   .Roles[]
   | . as $r
   | (.AssumeRolePolicyDocument.Statement | if type=="array" then .[] else . end)
   | select(.Effect=="Allow")
   | (.Principal | if type=="string" then . else (.AWS // empty) end)
   | (if type=="array" then .[] else . end)
   | select(. == "*" or ((test("^arn:aws:iam::[0-9]{12}:") or test("^[0-9]{12}$")) and (test($me)|not)))
   | "\($r.RoleName)  \(.)"'

Also pull IAM Access Analyzer's external access findings, which report roles shared outside the account or organisation.

2. Grade each trust policy. For every hit:

  • Is the principal :root of a whole account, or one specific role or user?
  • Is there an sts:ExternalId, and is it unique per role, or the same string everywhere?
  • Is there any network condition: aws:SourceIp, aws:SourceVpce?
  • Is the vendor still a vendor? Look at the role's last-used data (aws iam get-role --role-name NAME --query 'Role.RoleLastUsed') and flag roles unused for months.

3. Read the permissions policy as the vendor's attacker would. Which of these can the role reach: secretsmanager:GetSecretValue, ssm:GetParameter*, lambda:GetFunctionConfiguration, broad s3:GetObject? Each is a path to more credentials. We then follow one harvested secret to see where it works, because in the incident the secrets opened Entra and Okta.

4. Test the revocation story. Simulate what the client would do on a vendor-breach notice and check whether it ends sessions already issued, or only removes the credential.

The report states which vendor roles are one leaked credential away from reading secrets. That is a result clients rarely have, and it is the one that reaches the identity layer.

Detection

Wiz recommends reviewing CloudTrail from 1 October 2026 onward. The hunts it lists are specific:

  • AssumeRole where userIdentity.accountId is 805246085872 and the sourceIPAddress is not an AWS address
  • AssumeRole where userIdentity.principalId is AIDA3W7DIFLYOLTK63SFS, or AIDAJYRRH5Y3A7AAJM2HW from a non-AWS address
  • role session names matching quiam-*
  • GetCallerIdentity calls with a TruffleHog user agent, and the same user agent in identity provider sign-in logs
  • any activity from Wiz's published indicator IP addresses, including 57.129.54[.]120

For a generic version that does not depend on this one vendor, run it in CloudWatch Logs Insights or Athena over CloudTrail. The AssumeRole event is written in your account, with the caller's account in userIdentity.accountId:

fields @timestamp, userIdentity.accountId, userIdentity.principalId, sourceIPAddress, userAgent, requestParameters.roleArn, requestParameters.roleSessionName
| filter eventName = "AssumeRole" and userIdentity.type = "AWSAccount" and userIdentity.accountId != "111122223333"
| sort @timestamp desc

Replace the account ID with your own. Then summarise to find a stable baseline per vendor:

filter eventName = "AssumeRole" and userIdentity.type = "AWSAccount"
| stats count() as calls, earliest(@timestamp) as first_seen, latest(@timestamp) as last_seen
    by userIdentity.accountId, sourceIPAddress
| sort first_seen desc

Reading the output:

  • New source addresses for a known vendor account. A vendor that has always called from its own AWS ranges and now calls from a hosting provider or consumer VPN is the signal. Wiz lists hosting-provider addresses (OVH, 31173 Services, Datacamp) for the activity.
  • Calls from an integration you retired. Any AssumeRole against a role you thought was dormant.
  • Calls outside the vendor's normal pattern. Wiz says that in most environments the malicious role assumptions were the only AssumeRole calls from the vendor account that month, so a vendor you never see in normal operation is itself informative.
  • Follow-on reads. For any suspicious session, pivot on the role session name and look for GetSecretValue, GetParameter, GetFunctionConfiguration and bulk GetObject.

Two prerequisites. You need an organisation trail so the events exist in every account, and S3 data events enabled for sensitive buckets, or the download phase is invisible. And user agent matches alone are weak: Wiz says to treat them as suspicious only alongside another listed indicator.

Fix

Wiz's recommendations are short, and one sentence from the post is the argument for the cheapest change: "In this activity, a source IP condition alone would have blocked every role assumption we observed."

  1. Inventory. List every role whose trust policy allows an external account, using the command above and Access Analyzer.
  2. Delete what you do not use. Remove integration roles for tools you stopped using, or at minimum remove the vendor account from their trust policies.
  3. Narrow the principal. Replace the account :root with the specific role or user the vendor says it uses, where the vendor supports it.
  4. Add a network condition. Constrain the trust policy with aws:SourceIp for the vendor's published egress addresses, or aws:SourceVpce for private connectivity. Ask the vendor for its ranges in writing. Note this works only if the vendor calls from stable addresses.
  5. Treat ExternalId as a non-secret. AWS's own documentation says it does not treat the external ID as a secret. Keep it, because it addresses the confused-deputy problem, but use a distinct value per role and rotate it with the vendor after any incident.
  6. Least privilege on the permissions side. A monitoring vendor does not need secretsmanager:GetSecretValue or lambda:GetFunctionConfiguration. Remove the actions that return secrets and the ones that expose environment variables.
  7. Plan to kill live sessions. In the IAM console, "Revoke active sessions" on a role attaches an inline policy named AWSRevokeOlderSessions that denies sessions issued before that moment, using the aws:TokenIssueTime condition key. Practise it before an incident, because rotating the vendor's credential does not do it for you.
  8. Alert on new networks. Page on any vendor AssumeRole call from an address range that vendor has never used, using the baseline query above.
  9. Close the pivot. Assume any secret the vendor role could read is burned. Rotate it, and favour short-lived credentials so the next one is worth less. Entra and Okta client secrets stored in Lambda environment variables or SSM parameters are the ones to check first.

Take this away

The vendor will tell you it did not get hacked, or that AWS did not. Both can be true while your data leaves through a role you wrote yourself, for a product you may no longer use. The audit that matters is not "is our vendor secure" but "which of our roles trust someone else's account, from where, and for what". Answer it before the next advisory does.

References

Was this useful?

Share

Tags

  • cloud security
  • aws
  • iam
  • detection engineering

Get the next write-up by email

New technical write-ups by email when we publish. No sales sequence, and every email has an unsubscribe link.

Prefer a feed? RSS. How we handle your address: privacy notice.

Comments

Loading comments…

Leave a comment

Comments are read and approved by hand before they appear, so yours will not show up straight away. Your email address is optional, is never published, and is only used if we need to reply to you directly.

0/5000

Related service

Cloud Penetration Testing (AWS)

Identity, storage and workload misconfiguration testing across your AWS accounts.

If you want to know whether what you have just read applies to your own systems, that is the engagement that answers it.