Skip to content
Info disclosure Disclosed report Intermediate

Non-Production API Endpoints for the bedrock Service Fail to Log to CloudTrail Resulting in Silent Permission Enumeration

Non-production API endpoints for the bedrock service accept standard IAM credentials and respond to permission checks but do not log those calls to CloudTrail. An attacker with stolen credentials could therefore test whether they have permission for two bedrock actions without generating the failed-call logs that defenders rely on for detection.

nick_frichette_dd Follow

Originally disclosed on HackerOne

Medium 4.3 View original
  • Triaged in under an hour
  • Fixed in 4 months
  • Disclosed after 4 months

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 focussed 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 5 non-production endpoints for the bedrock service which can be used with standard IAM credentials, and do not log to CloudTrail. While it is good that they don’t appear to have access to customer partition data, they can still be used for permission enumeration without logging to CloudTrail. More specifically, they can invoke bedrock:ListImportedModels and bedrock:ListModelImportJobs.

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 [email protected]”.

Description:

Steps To Reproduce:

To see an example of what should appear in CloudTrail when using normal production endpoints, perform the following AWS CLI operation with a sufficiently privileged IAM user or role:

aws bedrock list-imported-models

Wait approximately 5-10 minutes and a log will appear in CloudTrail. Next, perform the following AWS CLI operation:

aws bedrock list-imported-models --endpoint-url ██████

After waiting 5-10 minutes (or longer), notice that it does not generate a log in CloudTrail. An adversary can perform this operation and depending on the response of the API make a determination if an Identity they have compromised does, or does not have permission to perform the operation.

Supporting Material/References:

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

bedrock

  • 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:

5.0 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 (Note: That is the score I received on my previous submission for the same issue here)

  • 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’ve blogged about it here and spoke about it at Black Hat USA 2023 (██████) and fwd:cloudsec 2023 (█████████) [I have broken these links because HackerOne appeared to complain about them?]

Additionally, we have reported similar findings for different services:

  • bedrock-agent
  • ssm

It is important to note that there are two categories at play here.

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

* ██████
* ██████
* ████████
* █████████
* ███████

Impact

An adversary can enumerate permissions of compromised credentials for two actions from the bedrock service without logging to CloudTrail. We have found 5 non-production endpoints which exhibit this behavior.

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 covered by CloudTrail logging in the way production endpoints are, so calls to them are not recorded.

Impact

An adversary could enumerate permissions for two bedrock actions using compromised credentials without logging to CloudTrail; the endpoints did not appear to reach customer partition data.

What the attacker needed

Stolen AWS IAM credentials; knowledge of a non-production endpoint URL; standard commercial partition account

The fix

AWS considers such endpoints a security issue and asks that they be reported to its security team.

How it was found

  1. Call the production bedrock list-imported-models operation with a sufficiently privileged identity.
  2. Wait about 5-10 minutes and confirm a CloudTrail log entry appears.
  3. Call the same operation again but point the CLI at one of the non-production endpoint URLs.
  4. Wait 5-10 minutes or longer and observe that no CloudTrail log entry is generated.

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.

CloudTrail is AWS's audit log: it records who called which AWS API and whether the call succeeded. Normally, if someone with stolen keys tries many actions to see what they are allowed to do, the failures show up in that log and defenders can spot them. Here, some special non-production endpoints answered the same permission questions but left no entry in the log, so that probing 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.