Skip to content
Info disclosure Disclosed report Intermediate

Non-Production API Endpoints for the Amazon S3 Tables Service Fails to Log to CloudTrail Resulting in Silent Permission Enumeration

Twenty-three non-production S3 Tables endpoints accepted normal IAM credentials and returned different responses depending on whether the caller had permission, yet none of the calls produced a matching CloudTrail event. An attacker holding stolen credentials could therefore work out what an identity is allowed to do without leaving the audit trail defenders rely on.

nick_frichette_dd Follow

Originally disclosed on HackerOne

  • Fixed in 29 days
  • Disclosed after 29 days

Summary: Typically, when an adversary gains access to stolen AWS IAM credentials they will frequently test those credentials to see what access they have. They do this by performing API calls and seeing which succeed and which fail. There are even automated tools to make this process easier. For defenders and security professionals, this behavior serves as a golden opportunity for detection as it likely involves generating a large number of failed API call attempts. If an adversary could enumerate permissions without logging to CloudTrail, they could perform this activity invisibly.

There are many categories of CloudTrail bypass. The specific variant we will be focused on in this report has been referred to as "non-production endpoint permission enumeration CloudTrail bypass". If you would like to learn more about it, you can find more details here.

We have found 23 non-production endpoints for the S3 Tables service which could be used with standard IAM credentials, and do not log the tested s3tables operation to CloudTrail. While it is good that these results do not prove access to customer partition data, the endpoints can still be used for permission enumeration without logging to CloudTrail.

AWS has previously stated that this type of vulnerability should be reported. Specifically, "For isolated non-production endpoints that do not log to CloudTrail but are otherwise callable with normal credentials and exhibit normal IAM permission behavior, AWS considers the CloudTrail logging bypass of such endpoints also to be a security issue. If you find an API or APIs on an endpoint with these characteristics, please contact the AWS Security Team at ████████".

Description:

Automated validation tested the candidate endpoint with two principals:

  • admin: privileged role used to observe authorized candidate endpoint behavior.
  • noperm: no-permission role used to confirm the candidate endpoint exhibits useful IAM authorization behavior.

For each endpoint in this report, the candidate endpoint call did not generate a matching CloudTrail event for either principal, and the candidate endpoint responses differed between the privileged and no-permission principals.

Steps To Reproduce:

Using a sufficiently privileged IAM user or role, perform the following AWS CLI operation against one of the affected candidate endpoints:

Bash
aws s3tables list-table-buckets --region us-west-2 --cli-connect-timeout 10 --cli-read-timeout 10 --endpoint-url https://s3tables.us-west-2.████████.people.aws.dev --no-verify-ssl

Wait 10-15 minutes and confirm that the request does not generate a matching CloudTrail event. Next, perform the same candidate endpoint call with a principal that does not have permission for the target action:

Bash
aws s3tables list-table-buckets --region us-west-2 --cli-connect-timeout 10 --cli-read-timeout 10 --endpoint-url https://s3tables.us-west-2.████████.people.aws.dev --no-verify-ssl

The second request also does not generate a matching CloudTrail event. An adversary can perform these calls and, depending on the response of the API, determine if an identity they have compromised does or does not have permission to perform the operation.

Additionally, depending on if a principal does or does not have permission to perform the action, the response from the affected endpoint will be different. Example evidence from the validation run is below.

Example: list-table-buckets against s3tables.us-west-2.████████.people.aws.dev

CloudTrail lookup for the admin candidate endpoint call:

  • region us-east-1: matched_any=False, matched_marker=False, events=0, sources=none
  • region us-west-2: matched_any=False, matched_marker=False, events=0, sources=none

CloudTrail lookup for the noperm candidate endpoint call:

  • region us-east-1: matched_any=False, matched_marker=False, events=0, sources=none
  • region us-west-2: matched_any=False, matched_marker=False, events=0, sources=none

admin candidate response:

Text
{
    "tableBuckets": []
}

noperm candidate response:

Text
An error occurred (AccessDeniedException) when calling the ListTableBuckets operation: User: arn:aws:sts::████████:assumed-role/noperm/vm-noperm-20260601T181312Z is not authorized to perform: s3tables:ListTableBuckets on resource: arn:aws:s3tables:us-west-2:████████:bucket/* because no identity-based policy allows the s3tables:ListTableBuckets action

Supporting Material/References:

  • Indicate the Amazon service or product that this vulnerability occurs on:

s3tables

  • What type of Amazon AWS account(s) is needed to verify or reproduce this vulnerability?:

Standard commercial partition account

  • Estimated CVSS score and vector string:

4.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N/CR:H/IR:H/AR:H

  • Estimated CWEs (comma separated):

CWE-778: Insufficient Logging

  • Have you already publicly disclosed any information on this issue? If so, when and where?:

This specific example? No. This general technique? Yes, a lot actually. I have blogged about it here and spoke about it at Black Hat USA 2023 (hxxps://www.youtube.com/watch?v=YP2XNAbB_Nw) and fwd:cloudsec 2023 (hxxps://www.youtube.com/watch?v=61C_lEQ5qNM) [I have broken these links because HackerOne appeared to complain about them?]

Additionally, we have reported similar findings for different services:

The following operation exhibited this behavior:

  • list-table-buckets: 23 endpoint(s)

The following is a list of endpoints we found that exhibited this behavior:

Endpoint Region Operation Admin response Noperm response Candidate CloudTrail result
s3tables.us-west-2.████████.people.aws.dev us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3tables.us-west-2.████████.people.aws.dev us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-4149bd9bb9e7986d.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
████████ us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-765889aabb3e0b9d.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-917869bea09936f6.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-930aa3111d76f082.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-a351d8f1a2057b6a.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-c6e1e458a2373ef8.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-ef25a0a23b9710b0.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-41b2fe8a53a7854b.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-660fd22ab6a95d76.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-6d47ca7b39c9bfd6.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-7b7b4a03604be6ab.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-a03967c9a99997a7.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-a7e75bfde5df5805.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-1432e67e8b352dca.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-817fb62199a738c9.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-ab4fac4d0c09577f.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-bafb7b98fd853a85.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-de0e1ea4fee6668a.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-f6053cb49f4ae8cf.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-f809fb3c0e2999b7.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm

Please note: We follow an industry standard 90-day vulnerability disclosure policy. You can read more about our policy here.

Impact

Summary:

An adversary can enumerate permissions of compromised credentials for the s3tables service without logging to CloudTrail.

The original report as published on HackerOne, by nick_frichette_dd. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 10 min read.

Context

Amazon S3 Tables is an AWS service for storing tabular data in S3, and its API surface is exposed through the s3tables service namespace. Like most AWS services, it can be reached through the standard regional endpoints used by the AWS CLI, and every call made against those endpoints is normally expected to appear in CloudTrail so that account owners can audit who did what.

This report is about a different class of endpoint: non-production endpoints that sit alongside the production service, are callable with ordinary IAM credentials, enforce IAM permissions in the normal way, but do not write the corresponding operation to CloudTrail. The researcher calls this the "non-production endpoint permission enumeration CloudTrail bypass".

The concern is not data access. The researcher is explicit that the results do not prove access to customer partition data. The concern is that an adversary holding stolen IAM credentials can use these endpoints to work out what those credentials are allowed to do, without leaving the trail of failed API calls that defenders rely on.

Setup

The testing used two principals, each with a distinct purpose:

  • admin: a privileged role used to observe how the candidate endpoint behaves when the caller is authorised.
  • noperm: a role with no permission for the target action, used to confirm that the candidate endpoint still performs useful IAM authorisation and returns a distinguishable result.

For every endpoint in the report, the candidate call produced no matching CloudTrail event for either principal, and the responses differed between the privileged and no-permission principals. That combination is what makes the endpoint useful for silent enumeration: the caller learns whether they have permission, and nothing is logged.

A standard commercial partition AWS account is sufficient to verify or reproduce the issue. The candidate endpoints were reached with the AWS CLI, overriding the endpoint URL and disabling TLS verification.

Finding it

Adversaries who obtain stolen IAM credentials routinely test them, making API calls and watching which succeed and which fail. There are automated tools that do exactly this, and the resulting burst of failed calls is a well-known detection opportunity for defenders.

If the same enumeration can be performed against endpoints that never log to CloudTrail, that detection opportunity disappears. The researcher had already documented this general technique, including in a blog post and in talks at Black Hat USA 2023 and fwd:cloudsec 2023, and had reported similar findings for a long list of other services: aiops, bedrock-agent, neptune-graph, transcribe, storagegateway, sso-admin, ssm-quicksetup, securityhub, route53, redshift-data, lakeformation and m2, health, glue, globalaccelerator, forecast, events, elasticache, datazone, docdb-elastic, devicefarm, cloudwatch, bedrock and ssm.

AWS has previously stated that this class of issue should be reported. In the researcher's quotation: "For isolated non-production endpoints that do not log to CloudTrail but are otherwise callable with normal credentials and exhibit normal IAM permission behaviour, AWS considers the CloudTrail logging bypass of such endpoints also to be a security issue. If you find an API or APIs on an endpoint with these characteristics, please contact the AWS Security Team at ████████".

For S3 Tables, the researcher found 23 non-production endpoints that could be used with standard IAM credentials and that do not log the tested s3tables operation to CloudTrail.

Exploitation

Step 1: call the candidate endpoint with a privileged principal

Using a sufficiently privileged IAM user or role, run the following AWS CLI operation against one of the affected candidate endpoints:

Bash
aws s3tables list-table-buckets --region us-west-2 --cli-connect-timeout 10 --cli-read-timeout 10 --endpoint-url https://s3tables.us-west-2.████████.people.aws.dev --no-verify-ssl

The command invokes the list-table-buckets operation of the s3tables service in us-west-2, but redirects it away from the normal service endpoint to a candidate endpoint under people.aws.dev. The connect and read timeouts are set to 10 seconds, and --no-verify-ssl disables certificate verification for the request.

Step 2: wait and check CloudTrail

Wait 10 to 15 minutes and confirm that the request does not generate a matching CloudTrail event.

For the admin call against s3tables.us-west-2.████████.people.aws.dev, the CloudTrail lookup returned:

  • region us-east-1: matched_any=False, matched_marker=False, events=0, sources=none
  • region us-west-2: matched_any=False, matched_marker=False, events=0, sources=none

Step 3: repeat with a principal that lacks permission

Next, perform the same candidate endpoint call with a principal that does not have permission for the target action:

Bash
aws s3tables list-table-buckets --region us-west-2 --cli-connect-timeout 10 --cli-read-timeout 10 --endpoint-url https://s3tables.us-west-2.████████.people.aws.dev --no-verify-ssl

The second request also does not generate a matching CloudTrail event. The CloudTrail lookup for the noperm call returned:

Step 4: compare the responses

The two principals receive different answers, which is what turns the endpoint into an oracle. The admin candidate response was:

Text
{
    "tableBuckets": []
}

The noperm candidate response was:

Text
An error occurred (AccessDeniedException) when calling the ListTableBuckets operation: User: arn:aws:sts::████████:assumed-role/noperm/vm-noperm-20260601T181312Z is not authorized to perform: s3tables:ListTableBuckets on resource: arn:aws:s3tables:us-west-2:████████:bucket/* because no identity-based policy allows the s3tables:ListTableBuckets action

The privileged caller gets a normal, empty result. The unprivileged caller gets an AccessDeniedException naming the missing s3tables:ListTableBuckets permission. An adversary can make these calls and, depending on the response, determine whether a compromised identity does or does not have permission to perform the operation, with no CloudTrail record either way.

The 23 endpoints

All 23 endpoints returned the same pattern for list-table-buckets in us-west-2: a non-IAM-deny response for admin, an IAM deny for noperm, and no CloudTrail result observed for either principal.

Endpoint Region Operation Admin response Noperm response Candidate CloudTrail result
s3tables.us-west-2.████████.people.aws.dev us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3tables.us-west-2.████████.people.aws.dev us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-4149bd9bb9e7986d.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
████████ us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-765889aabb3e0b9d.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-917869bea09936f6.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-930aa3111d76f082.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-a351d8f1a2057b6a.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-c6e1e458a2373ef8.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-ef25a0a23b9710b0.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-41b2fe8a53a7854b.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-660fd22ab6a95d76.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-6d47ca7b39c9bfd6.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-7b7b4a03604be6ab.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-a03967c9a99997a7.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-a7e75bfde5df5805.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-1432e67e8b352dca.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-817fb62199a738c9.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-ab4fac4d0c09577f.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-bafb7b98fd853a85.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-de0e1ea4fee6668a.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-f6053cb49f4ae8cf.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-f809fb3c0e2999b7.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm

Root cause

The candidate endpoints are non-production endpoints that sit outside the normal CloudTrail logging path. They still evaluate IAM policy, so an authorised caller and an unauthorised caller get different answers, but the operation is never recorded as a CloudTrail event. The logging gap is the defect: the endpoint behaves like the production service for authorisation purposes while behaving like nothing at all for audit purposes.

Because the responses differ, the endpoint is a reliable permission oracle. Because nothing is logged, the usual detection signal, a large number of failed API calls, never appears. The report gives an estimated CVSS score of 4.3 with the vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N/CR:H/IR:H/AR:H, and lists CWE-778: Insufficient Logging as the estimated CWE.

Impact

An adversary who has compromised IAM credentials can enumerate the permissions those credentials hold for the s3tables service without any of the calls appearing in CloudTrail. The enumeration is driven by the difference between a non-IAM-deny response and an AccessDeniedException, so the attacker learns whether the identity can perform the tested operation.

The researcher is careful about the limits: the results do not prove access to customer partition data. The impact is the loss of the audit trail for this reconnaissance activity, which removes a detection opportunity that defenders would otherwise have.

Fix

The report does not describe a fix or a change made by AWS. The report quotes AWS stating that isolated non-production endpoints which do not log to CloudTrail but are callable with normal credentials and exhibit normal IAM permission behaviour are considered a security issue, and asks to be contacted about them.

Variants to test

  1. Other operations on the same service. The report only demonstrates list-table-buckets. Try other s3tables operations against the same candidate endpoints. A positive result is a response that differs between an authorised and an unauthorised principal while no matching CloudTrail event appears for either.
  2. Other non-production endpoints. The researcher lists similar findings for many other services, including aiops, bedrock-agent, neptune-graph, transcribe, storagegateway, sso-admin, ssm-quicksetup, securityhub, route53, redshift-data, lakeformation and m2, health, glue, globalaccelerator, forecast, events, elasticache, datazone, docdb-elastic, devicefarm, cloudwatch, bedrock and ssm. Test candidate endpoints for any service you have access to. A positive result is the same pattern: a non-IAM-deny response for a privileged principal, an IAM deny for an unprivileged one, and zero matching CloudTrail events in both the home region and the endpoint's region.
  3. Other regions. Every endpoint in the report's list is listed with region us-west-2. Try candidate endpoints in other regions and check CloudTrail in both us-east-1 and the endpoint's own region, as the researcher did. A positive result is matched_any=False, events=0 and sources=none for both principals.
  4. Different principal types. The report uses a privileged role for admin and an assumed role for noperm. Try IAM users and other role configurations. A positive result is the same response split with no CloudTrail record.

When testing, allow 10 to 15 minutes before concluding that no CloudTrail event was generated, as the researcher did, so that delayed delivery does not produce a false negative.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 17 min read.

What happened, in plain words

Amazon Web Services (AWS) is a cloud provider: instead of running your own computers, you rent theirs over the internet. Inside AWS, customers create accounts, and inside an account they create identities (users and roles) that are allowed to do certain things. A role is a set of permissions that software or a person can temporarily take on, a bit like a visitor badge that opens only some doors in a building.

When someone uses AWS, their actions are supposed to be written into a log called CloudTrail. Think of CloudTrail as the security camera recording at the entrance of every room: it does not stop anyone, it just records who went in and when. If an attacker steals a badge (in AWS terms, stolen credentials), the camera record is often the only way defenders notice the break-in.

This report is about a gap in that camera coverage. The researcher found 23 special addresses (endpoints) belonging to the Amazon S3 Tables service. These addresses are not the normal production ones; they are extra, non-production addresses that sit alongside the real service. They can be called with ordinary AWS credentials, they check permissions in the normal way, but they do not write anything to CloudTrail. So an attacker can quietly ask them "am I allowed to do this?" over and over, and no camera records it.

The researcher is careful to say this does not prove access to customer data. The problem is the missing audit trail, not a data leak. The report lists CWE-778: Insufficient Logging as the estimated CWE, with an estimated CVSS score of 4.3.

Background: the pieces you need to know

Before walking through the steps, here are the concepts the report relies on, explained from scratch.

  • API: an API (Application Programming Interface) is the set of instructions one program uses to talk to another. A restaurant menu is a good comparison: you do not walk into the kitchen, you pick an item from the menu and the kitchen responds. An AWS API is the menu of actions a service offers, such as "list my table buckets".
  • Endpoint: the address (a URL, like a web address) where an API answers. If the API is the menu, the endpoint is the restaurant's address. AWS normally has one official address per service per region, but sometimes extra addresses exist for testing or internal use.
  • Region: AWS runs data centres in many parts of the world, each called a region, with a short name such as us-west-2 (Oregon) or us-east-1 (Virginia). Services are reached region by region.
  • IAM: Identity and Access Management, the AWS system that decides who may do what. Every action has a permission name, for example s3tables:ListTableBuckets. If your identity's policy allows that permission, the action succeeds; if not, it is refused.
  • Principal: the identity making a request, such as a user or a role. The report uses two: admin (a privileged role that is allowed to do the action) and noperm (a role with no permission for the action).
  • Credentials: the secret material that proves who you are, similar to a username and password, or a badge. If stolen, someone else can act as you until the credentials are revoked.
  • AWS CLI: the Command Line Interface, a program you run in a terminal by typing commands. It is the text-based equivalent of clicking buttons in a website.
  • CloudTrail: the AWS logging service that records API calls made in an account. It is the audit camera mentioned above.
  • Permission enumeration: the process of trying actions one by one to discover which ones an identity is allowed to perform. It is like trying every door in a building with a stolen key to see which ones open.
  • Non-production endpoint: an address that is not the main public service address, often used for testing or internal purposes. It may behave like the real service in some ways but not others.
  • TLS / SSL: the encryption that protects connections to websites (the padlock in a browser). Disabling verification means the client stops checking the server's certificate, which is useful when testing an address whose certificate does not match the expected name.
  • Oracle (in security): any response that reveals a hidden fact. Here, the endpoint acts as an oracle because its answer tells the caller whether they have permission.
  • CVSS: a standard scoring system for the severity of a security issue, from 0 to 10. A score of 4.3 is medium.
  • CWE: a catalogue of weakness types. CWE-778 is "Insufficient Logging", meaning events happen but are not recorded well enough.

The service involved: Amazon S3 Tables

Amazon S3 Tables is an AWS service for storing tabular data (think spreadsheets or database tables) in S3, AWS's object storage. Its API is exposed under the service name s3tables. Like most AWS services, it is normally reached through the standard regional endpoints used by the AWS CLI, and every call against those endpoints is expected to appear in CloudTrail so account owners can audit who did what.

The report is about a different kind of address: non-production endpoints that sit alongside the production service, can be called with ordinary IAM credentials, enforce IAM permissions in the normal way, but do not write the corresponding operation to CloudTrail. The researcher calls this the "non-production endpoint permission enumeration CloudTrail bypass".

The concern is not data access. The researcher is explicit that the results do not prove access to customer partition data. The concern is that an adversary holding stolen IAM credentials can use these endpoints to work out what those credentials are allowed to do, without leaving the trail of failed API calls that defenders rely on.

Why this matters: how attackers test stolen credentials

When an adversary gains access to stolen AWS IAM credentials, they frequently test those credentials to see what access they have. They do this by making API calls and watching which succeed and which fail. There are even automated tools to make this process easier.

For defenders, this behaviour is a golden opportunity for detection, because it likely involves generating a large number of failed API call attempts. In other words, the attacker's probing is noisy, and the noise shows up in CloudTrail. If an adversary could enumerate permissions without logging to CloudTrail, they could perform this activity invisibly.

There are many categories of CloudTrail bypass. The specific variant in this report has been referred to as "non-production endpoint permission enumeration CloudTrail bypass". The researcher had already documented this general technique, including in a blog post and in talks at Black Hat USA 2023 and fwd:cloudsec 2023, and had reported similar findings for a long list of other services: aiops, bedrock-agent, neptune-graph, transcribe, storagegateway, sso-admin, ssm-quicksetup, securityhub, route53, redshift-data, lakeformation and m2, health, glue, globalaccelerator, forecast, events, elasticache, datazone, docdb-elastic, devicefarm, cloudwatch, bedrock and ssm.

AWS has previously stated that this class of issue should be reported. In the researcher's quotation: "For isolated non-production endpoints that do not log to CloudTrail but are otherwise callable with normal credentials and exhibit normal IAM permission behaviour, AWS considers the CloudTrail logging bypass of such endpoints also to be a security issue. If you find an API or APIs on an endpoint with these characteristics, please contact the AWS Security Team at ████████".

For S3 Tables, the researcher found 23 non-production endpoints that could be used with standard IAM credentials and that do not log the tested s3tables operation to CloudTrail. While it is good that these results do not prove access to customer partition data, the endpoints can still be used for permission enumeration without logging to CloudTrail.

Setup: the two test identities

The testing used two principals, each with a distinct purpose:

  • admin: a privileged role used to observe how the candidate endpoint behaves when the caller is authorised.
  • noperm: a role with no permission for the target action, used to confirm that the candidate endpoint still performs useful IAM authorisation and returns a distinguishable result.

For every endpoint in the report, the candidate call produced no matching CloudTrail event for either principal, and the responses differed between the privileged and no-permission principals. That combination is what makes the endpoint useful for silent enumeration: the caller learns whether they have permission, and nothing is logged.

A standard commercial partition AWS account is sufficient to verify or reproduce the issue. The candidate endpoints were reached with the AWS CLI, overriding the endpoint URL and disabling TLS verification.

Step by step: reproducing the issue

Step 1: call the candidate endpoint with a privileged principal

Using a sufficiently privileged IAM user or role, run the following AWS CLI operation against one of the affected candidate endpoints:

Bash
aws s3tables list-table-buckets --region us-west-2 --cli-connect-timeout 10 --cli-read-timeout 10 --endpoint-url https://s3tables.us-west-2.████████.people.aws.dev --no-verify-ssl

Line by line, in plain words:

  • aws: the AWS CLI program itself.
  • s3tables: the service being called, Amazon S3 Tables.
  • list-table-buckets: the operation, meaning "show me my table buckets". A table bucket is a container for tables, like a folder for spreadsheets.
  • --region us-west-2: tells the CLI which AWS region to use, here Oregon.
  • --cli-connect-timeout 10: if the connection cannot be established within 10 seconds, give up.
  • --cli-read-timeout 10: if the server does not answer within 10 seconds, give up.
  • --endpoint-url https://s3tables.us-west-2.████████.people.aws.dev: this is the key part. Instead of the normal AWS address, the request is sent to a candidate non-production address under people.aws.dev. The ████████ marks a part of the address that has been redacted.
  • --no-verify-ssl: do not check the server's certificate. --no-verify-ssl disables certificate verification for the request.

Why this step: the researcher first wants to see what a caller who is allowed to do the action gets back from the candidate endpoint, and whether that call appears in CloudTrail.

Step 2: wait and check CloudTrail

Wait 10 to 15 minutes and confirm that the request does not generate a matching CloudTrail event. The researcher waited 10 to 15 minutes before checking.

For the admin call against s3tables.us-west-2.████████.people.aws.dev, the CloudTrail lookup returned:

  • region us-east-1: matched_any=False, matched_marker=False, events=0, sources=none
  • region us-west-2: matched_any=False, matched_marker=False, events=0, sources=none

What those fields mean: matched_any says whether any event matched the search, matched_marker says whether a specific marker was found, events is the number of events found, and sources lists where they came from. All four say the same thing: nothing was recorded, in either the home region or the region of the endpoint.

Step 3: repeat with a principal that lacks permission

Next, perform the same candidate endpoint call with a principal that does not have permission for the target action:

Bash
aws s3tables list-table-buckets --region us-west-2 --cli-connect-timeout 10 --cli-read-timeout 10 --endpoint-url https://s3tables.us-west-2.████████.people.aws.dev --no-verify-ssl

The command is identical to the first one; only the identity running it is different. The second request also does not generate a matching CloudTrail event. The CloudTrail lookup for the noperm call returned:

Why this step: if the endpoint ignored permissions entirely, it would not be useful for enumeration, because every caller would get the same answer. The researcher wants to confirm the endpoint still enforces IAM rules.

Step 4: compare the responses

The two principals receive different answers, which is what turns the endpoint into an oracle. The admin candidate response was:

Text
{
    "tableBuckets": []
}

The response is an empty tableBuckets list.

The noperm candidate response was:

Text
An error occurred (AccessDeniedException) when calling the ListTableBuckets operation: User: arn:aws:sts::████████:assumed-role/noperm/vm-noperm-20260601T181312Z is not authorized to perform: s3tables:ListTableBuckets on resource: arn:aws:s3tables:us-west-2:████████:bucket/* because no identity-based policy allows the s3tables:ListTableBuckets action

This is a refusal. AccessDeniedException means "you are not allowed". The message names the identity (assumed-role/noperm/...), the missing permission (s3tables:ListTableBuckets), the resource it was tried on, and the reason: no policy attached to the identity allows that action. The account number and other identifying parts are redacted with ████████.

So the privileged caller gets a normal, empty result, and the unprivileged caller gets an AccessDeniedException naming the missing permission. An adversary can make these calls and, depending on the response, determine whether a compromised identity does or does not have permission to perform the operation, with no CloudTrail record either way.

The 23 endpoints

All 23 endpoints returned the same pattern for list-table-buckets in us-west-2: a non-IAM-deny response for admin, an IAM deny for noperm, and no CloudTrail result observed for either principal. "Non-IAM-deny" simply means the answer was not a permission refusal; it could be a normal result or some other error, but not "you are not allowed".

Endpoint Region Operation Admin response Noperm response Candidate CloudTrail result
s3tables.us-west-2.████████.people.aws.dev us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3tables.us-west-2.████████.people.aws.dev us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-4149bd9bb9e7986d.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
████████ us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-765889aabb3e0b9d.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-917869bea09936f6.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-930aa3111d76f082.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-a351d8f1a2057b6a.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-c6e1e458a2373ef8.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2a-ef25a0a23b9710b0.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-41b2fe8a53a7854b.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-660fd22ab6a95d76.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-6d47ca7b39c9bfd6.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-7b7b4a03604be6ab.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-a03967c9a99997a7.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2b-a7e75bfde5df5805.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-1432e67e8b352dca.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-817fb62199a738c9.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-ab4fac4d0c09577f.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-bafb7b98fd853a85.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-de0e1ea4fee6668a.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-f6053cb49f4ae8cf.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm
s3table-nlb-personal-us-west-2c-f809fb3c0e2999b7.elb.us-west-2.amazonaws.com us-west-2 list-table-buckets non-IAM-deny IAM deny none observed for admin or noperm

A note on the addresses: many of them look like s3table-nlb-personal-us-west-2a-...elb.us-west-2.amazonaws.com. The elb part stands for Elastic Load Balancer, an AWS component that distributes incoming traffic across servers. The long hex strings are unique identifiers for each load balancer.

Root cause

The candidate endpoints are non-production endpoints that sit outside the normal CloudTrail logging path. They still evaluate IAM policy, so an authorised caller and an unauthorised caller get different answers, but the operation is never recorded as a CloudTrail event. The logging gap is the defect: the endpoint behaves like the production service for authorisation purposes while behaving like nothing at all for audit purposes.

Because the responses differ, the endpoint is a reliable permission oracle. Because nothing is logged, the usual detection signal, a large number of failed API calls, never appears. The report gives an estimated CVSS score of 4.3 with the vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N/CR:H/IR:H/AR:H, and lists CWE-778: Insufficient Logging as the estimated CWE.

Reading the CVSS vector in plain words: the attack can be done over the network (AV:N), is easy to carry out (AC:L), needs only low privileges (PR:L), needs no user interaction (UI:N), affects only the vulnerable component (S:U), has no confidentiality impact (C:N), a low integrity impact (I:L), no availability impact (A:N), and the confidentiality, integrity and availability requirements are all high (CR:H/IR:H/AR:H).

Impact

An adversary who has compromised IAM credentials can enumerate the permissions those credentials hold for the s3tables service without any of the calls appearing in CloudTrail. The enumeration is driven by the difference between a non-IAM-deny response and an AccessDeniedException, so the attacker learns whether the identity can perform the tested operation.

The researcher is careful about the limits: the results do not prove access to customer partition data. The impact is the loss of the audit trail for this reconnaissance activity, which removes a detection opportunity that defenders would otherwise have.

Fix

The report does not describe a fix or a change made by AWS. The report quotes AWS stating that isolated non-production endpoints which do not log to CloudTrail but are callable with normal credentials and exhibit normal IAM permission behaviour are considered a security issue, and asks to be contacted about them.

Variants to test

If you want to look for the same pattern elsewhere, here are the directions the report suggests.

  1. Other operations on the same service. The report only demonstrates list-table-buckets. Try other s3tables operations against the same candidate endpoints. A positive result is a response that differs between an authorised and an unauthorised principal while no matching CloudTrail event appears for either.
  2. Other non-production endpoints. The researcher lists similar findings for many other services, including aiops, bedrock-agent, neptune-graph, transcribe, storagegateway, sso-admin, ssm-quicksetup, securityhub, route53, redshift-data, lakeformation and m2, health, glue, globalaccelerator, forecast, events, elasticache, datazone, docdb-elastic, devicefarm, cloudwatch, bedrock and ssm. Test candidate endpoints for any service you have access to. A positive result is the same pattern: a non-IAM-deny response for a privileged principal, an IAM deny for an unprivileged one, and zero matching CloudTrail events in both the home region and the endpoint's region.
  3. Other regions. Every endpoint in the report's list is listed with region us-west-2. Try candidate endpoints in other regions and check CloudTrail in both us-east-1 and the endpoint's own region, as the researcher did. A positive result is matched_any=False, events=0 and sources=none for both principals.
  4. Different principal types. The report uses a privileged role for admin and an assumed role for noperm. Try IAM users and other role configurations. A positive result is the same response split with no CloudTrail record.

When testing, allow 10 to 15 minutes before concluding that no CloudTrail event was generated, as the researcher did, so that delayed delivery does not produce a false negative.

Glossary

  • API: the set of instructions one program uses to talk to another, like a menu you order from.
  • AWS: Amazon Web Services, a cloud provider that rents out computing and storage over the internet.
  • AWS CLI: the command line program used to send AWS commands by typing them in a terminal.
  • AccessDeniedException: the error AWS returns when an identity is not allowed to perform an action.
  • CloudTrail: the AWS service that records API calls made in an account, used for auditing.
  • CWE: a catalogue of weakness types; CWE-778 is Insufficient Logging.
  • CVSS: a standard 0 to 10 scoring system for the severity of a security issue.
  • Credentials: secret material that proves an identity, such as keys or tokens; if stolen, someone can act as that identity.
  • Elastic Load Balancer (ELB): an AWS component that spreads incoming traffic across several servers.
  • Endpoint: the address (URL) where an API answers requests.
  • Oracle: in security, any response that reveals a hidden fact, such as whether a permission is held.
  • Permission enumeration: trying actions one by one to discover which ones an identity is allowed to perform.
  • Region: a geographic area where AWS runs data centres, named like us-west-2.
  • Role: a set of permissions that can be temporarily taken on, like a visitor badge.
  • S3: AWS's object storage service, used for storing files and data.
  • S3 Tables: an AWS service for storing tabular data in S3, exposed under the s3tables name.
  • TLS / SSL: the encryption that protects connections to websites; disabling verification stops the client checking the server's certificate.

More by nick_frichette_dd

View all

22 more disclosed reports, best first.

More from AWS VDP

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.