AWS Builder Center
 Securing Cross-Account IAM Trust After the Qubole Incident

Securing Cross-Account IAM Trust After the Qubole Incident

An attacker reportedly used credentials associated with Qubole’s AWS account to assume IAM roles trusted by multiple customer accounts, then harvested secrets and copied S3 data between October 14 and October 26, 2026. The incident is a practical reminder that a vendor integration’s IAM trust relationship is part of your own cloud attack surface.

Securing Cross-Account IAM Trust After the Qubole Incident

An attacker reportedly used credentials associated with Qubole’s AWS account to assume IAM roles trusted by multiple customer accounts, then harvested secrets and copied S3 data between October 14 and October 26, 2026.
The incident is a practical reminder that a vendor integration’s IAM trust relationship is part of your own cloud attack surface.

1. What Happened?

Qubole customers commonly create an IAM role that trusts Qubole’s AWS account, allowing the vendor’s platform to operate inside the customer account.
The role is typically protected with an  ExternalId  condition, which is intended to prevent the confused-deputy problem.
In this case, an unknown actor used credentials tied to Qubole’s AWS account ( 805246085872 ) to call  AssumeRole  against customer roles that trusted that account.
The attacker then enumerated AWS resources, accessed sensitive configuration data, and exfiltrated accessible S3 objects.

2. Attack Chain

Stage
Attacker Activity
AWS Security Lesson
Initial Access
Used credentials associated with Qubole’s AWS account.
Protect third-party credentials using MFA, short-lived sessions, and least privilege.
Cross-Account Access
Called  AssumeRole  on customer IAM roles that trusted Qubole.
Narrowly scope and continuously review trust policies.
Discovery
Enumerated storage, compute, databases, and keys.
Limit permissions attached to vendor roles.
Secret Harvesting
Read Lambda environment variables, Secrets Manager values, and SSM Parameter Store values.
Avoid plaintext secrets in Lambda environment variables.
Credential Validation
Used TruffleHog to validate stolen AWS, Microsoft Entra ID, and Okta credentials.
Rotate exposed credentials and revoke active sessions.
Data Exfiltration
Listed and downloaded S3 objects, sometimes entire buckets.
Apply S3 least privilege and monitor unusual bulk  GetObject  activity.

3. Why the Trust Relationship Mattered

The central issue was not simply that data was stolen. It was that a trusted third-party identity could enter customer accounts through an IAM role.
A cross-account IAM role allows an external principal to temporarily receive AWS credentials with the permissions granted by the target account.
The  ExternalId  helps ensure that the intended third party, rather than another principal that happens to control that account, can assume the role.
However, it should be treated as an access-control mechanism, not a secret. It can appear in plaintext in CloudTrail logs and infrastructure-as-code files.

4. Detection Priorities

Organizations with a Qubole integration should review CloudTrail activity from October 1 onward, especially in accounts containing roles that trust Qubole.
Look for the following suspicious activities:
  •  AssumeRole  calls from AWS account  805246085872 , particularly from non-AWS IP addresses.
  • Activity from IAM principal  AIDA3W7DIFLYOLTK63SFS , which Wiz reportedly identified in attacker activity.
  • Unusual  GetSecretValue ,  GetParameter ,  GetParameterHistory ,  ListBuckets , and  GetObject  calls.
  • Bulk S3 download patterns following suspicious role assumptions.
  • Lambda  GetFunctionConfiguration  calls that could expose environment variables containing credentials.
  • Unexpected use of harvested AWS, Entra ID, or Okta credentials outside the original AWS session.

5. Immediate Response

If suspicious activity is discovered, prioritize containment before broad cleanup.
  1. Restrict cross-account access: Remove or restrict the Qubole trust policy on affected IAM roles.
  1. Rotate exposed credentials: Rotate AWS access keys, Entra ID client secrets, Okta credentials, and other secrets the compromised role could access.
  1. Revoke active sessions: Use  revoke-sessions  where applicable for affected IAM users or roles. Credential rotation alone does not terminate already-issued sessions.
  1. Investigate S3 activity: Review S3 access logs, CloudTrail data events, and data-transfer patterns for evidence of exfiltration.
  1. Notify stakeholders: Inform the vendor and incident-response team.
  1. Preserve evidence: Retain relevant CloudTrail, S3 access, and VPC Flow Logs for further investigation.

6. Longer-Term Security Hardening

Inventory External Trust

Identify every IAM role whose trust policy allows an external AWS account, OIDC provider, or SAML provider to assume it.

Remove Dormant Integrations

Delete trust relationships for vendors and platforms that are no longer actively used.

Use Least-Privilege Roles

Grant only the specific actions and resources required by the integration instead of broad service-level access.

Constrain Trust Policies

Where feasible, introduce additional conditions such as source IP restrictions, VPC endpoint conditions, and tighter principal restrictions.

Protect Secrets

  • Prefer AWS Secrets Manager with rotation.
  • Avoid storing credentials in Lambda environment variables.
  • Restrict  secretsmanager:GetSecretValue  and SSM read permissions.
  • Rotate exposed credentials immediately.

Monitor Cross-Account Access

Create detections for:
  • Unusual  AssumeRole  activity.
  • Unfamiliar source IP addresses.
  • Role sessions followed by secret access.
  • Unusually large S3 read operations.

Apply Security Guardrails

Use Service Control Policies (SCPs), permission boundaries, and data-perimeter controls to limit what a compromised vendor identity can accomplish.

7. Skill Builder Takeaway

Treat every third-party AWS integration as a delegated identity with the potential to become an attack path.
The strongest defense is not just detecting compromise after the fact. It is designing cross-account access so that a compromised vendor credential cannot silently become broad access to your secrets and data.
Key takeaway: Never blindly trust an external AWS account. Continuously review IAM trust policies, enforce least privilege, protect secrets, and monitor cross-account activity.



References

  1. Incident reporting and investigation details cited in the original article.
  1. AWS IAM documentation – Cross-account role access.
  1. AWS security guidance – ExternalId, CloudTrail monitoring, and incident response.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article