Skip to content
Book a demo
All posts
News

Attacker used Qubole's trusted AWS access to reach customer accounts

Wiz says an attacker broke into AWS accounts belonging to multiple Qubole customers between October 14 and October 26, reading stored secrets and copying data out of S3.

Published
Reading
3 min
By
Kairo

An attacker broke into AWS accounts belonging to multiple Qubole customers between October 14 and October 26 and stole stored secrets and data, cloud security company Wiz said today. The access came through the trust path that the platform itself uses to reach customer environments.

What happened

The attacker used credentials for an AWS account that Qubole's platform uses to reach those customers. How the attacker got those credentials has not been disclosed.

There was an earlier window as well. From October 8 to October 11, an attacker used customers' own AWS access keys, which the researchers believe had been set up for Qubole.

In the accounts the researchers examined, the activity was broad rather than targeted. The attacker looked for stored credentials across several services, and separately copied data out of object storage.

How it was done

In the accounts the researchers examined, the attacker looked for stored credentials. It read environment variables for Lambda functions, pulled secrets from Secrets Manager, and read values from the SSM Parameter Store.

The attacker also copied data out of S3. It retrieved data from any bucket a role could access rather than searching for specific data, and sometimes downloaded an entire bucket in a single session.

The attacker used credentials for an AWS account that Qubole's platform uses to reach those customers.
Wiz, via The Hacker News

What to check

If a third party holds a role or key in your AWS accounts, treat that path as something to audit directly.

  1. Inventory every cross-account role a vendor can assume

    In IAM, list roles whose trust policy names an external account principal. Run aws iam list-roles and inspect AssumeRolePolicyDocument for Principal.AWS values outside your organisation. A role with no external ID condition and a broad principal is the weak case.

  2. Pull AssumeRole events for those roles

    Query CloudTrail for eventName AssumeRole and AssumeRoleWithWebIdentity filtered on the role ARNs you listed. Compare source IP addresses and user agents against the vendor's normal pattern. Assumptions from new addresses, or outside the vendor's usual hours, are what you want to pull apart.

  3. Look for secret reads under vendor identities

    Search CloudTrail for GetSecretValue, GetParameter, GetParameters and GetFunctionConfiguration where the userIdentity is the vendor role session. A session reading many distinct secret or parameter names in a short period, rather than the handful its job needs, is the result to chase.

  4. Check S3 read volume per role

    Enable S3 data events if they are off, then query for GetObject and ListBucket by principal. In Cost Explorer or CloudWatch, compare data transfer out per bucket against the prior baseline. A single session touching every object in a bucket is the shape to flag.

  5. Narrow what the integration role can reach

    Review the attached policies for wildcards on s3:*, secretsmanager:* and ssm:*. Replace them with named buckets, paths and parameter prefixes. If you cannot state which resources the vendor needs, the policy is too wide.

  6. Retire long lived access keys created for integrations

    Run aws iam list-access-keys per user and check the credential report for keys with old creation dates and recent use. Move the integration to a role with short lived credentials, then delete the keys rather than only deactivating them.

Keep reading

More from the team
that verifies every change.

All posts

See what your application allows before an attacker does.