Skip to content
Info disclosure Disclosed report Intermediate

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

Four non-production CloudWatch API endpoints accept standard IAM credentials and return different responses based on permissions, but do not log the calls to CloudTrail. An attacker with stolen credentials could silently enumerate which CloudWatch actions those credentials are allowed to perform.

nick_frichette_dd Follow

Originally disclosed on HackerOne

  • Fixed in 56 days
  • Disclosed after 56 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 4 non-production endpoints for the cloudwatch service which could be used with standard IAM credentials, and do not log the tested cloudwatch 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 cloudwatch list-dashboards --region us-east-1 --cli-connect-timeout 10 --cli-read-timeout 10 --endpoint-url ████████ --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 cloudwatch list-dashboards --region us-east-1 --cli-connect-timeout 10 --cli-read-timeout 10 --endpoint-url ████████ --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-dashboards against ████████

CloudTrail lookup for the admin candidate endpoint call:

  • region us-east-1: 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

admin candidate response:

Text
{
    "DashboardEntries": []
}

noperm candidate response:

Text
An error occurred (AccessDenied) when calling the ListDashboards operation: User: arn:aws:sts::████████:assumed-role/noperm/vm-noperm-20260601T181312Z is not authorized to perform: cloudwatch:ListDashboards on resource: arn:aws:cloudwatch::████████:dashboard/* because no identity-based policy allows the cloudwatch:ListDashboards action

Supporting Material/References:

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

cloudwatch

  • 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-dashboards: 4 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
████████ us-east-1 list-dashboards non-IAM-deny IAM deny none observed for admin or noperm
████████ us-east-1 list-dashboards non-IAM-deny IAM deny none observed for admin or noperm
████████ us-east-1 list-dashboards non-IAM-deny IAM deny none observed for admin or noperm
████████ us-east-1 list-dashboards 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 cloudwatch 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.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the non-production endpoints are not integrated with CloudTrail logging while still enforcing IAM authorisation, so permission checks occur without an audit record.

Impact

An adversary could enumerate permissions of compromised credentials for the CloudWatch service without logging to CloudTrail, making the activity invisible to defenders.

What the attacker needed

Stolen AWS IAM credentials; access to non-production endpoints

How it was found

  1. Using a privileged IAM principal, call the CloudWatch list-dashboards operation against one of the candidate endpoints.
  2. Wait 10-15 minutes and confirm that no matching CloudTrail event was generated.
  3. Repeat the same call using a principal without permission for the action.
  4. Confirm that this second call also generates no matching CloudTrail event.
  5. Observe that the responses differ between the privileged and no-permission principals, revealing whether the action is allowed.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When someone steals cloud credentials, they often test what those credentials can do by making API calls and seeing which succeed or fail. Normally, these calls are recorded in a log called CloudTrail, so defenders can spot the testing. Here, the researcher found special test endpoints that answer the same way but leave no trace in CloudTrail, so the testing could go unnoticed.

What is Info disclosure?

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

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.