Skip to content
Info disclosure Disclosed report Intermediate

Non-Production API Endpoint for the EventBridge Service Fails to Log to CloudTrail Resulting in Silent Permission Enumeration

A non-production API endpoint for the EventBridge service accepts standard IAM credentials but does not log API calls to CloudTrail. An attacker with stolen credentials could use this endpoint to test permissions without generating CloudTrail logs.

nick_frichette_dd Follow

Originally disclosed on HackerOne

  • Triaged in 7 days
  • Fixed in 2 months
  • Disclosed after 3 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 1 non-production endpoint for the EventBridge service which can be used with standard IAM credentials, and does not log to CloudTrail. While it is good that it doesn’t appear to have access to customer partition data, it 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 [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 events list-event-buses

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

aws events list-event-buses --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:

events

  • 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:L/I:N/A:N/CR:X/IR:X/AR:X

  • 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 (█████████?v█████████) [I have broken these links because HackerOne appeared to complain about them?]

Additionally, we have reported similar findings for different services:

  • elasticache
  • datazone part 2
  • docdb-elastic
  • devicefarm
  • datazone
  • cloudwatch
  • bedrock
  • bedrock-agent
  • ssm

The following is the endpoint we found that exhibited this behavior.

  • ██████████

Impact

Summary:

An adversary can enumerate permissions of compromised credentials for the elasticache 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. 5 min read.

Context

When an adversary gets hold of stolen AWS IAM credentials, a common first move is to work out what those credentials can actually do. They call APIs and watch which calls succeed and which fail. The report notes that this behaviour is well documented in the wild and that automated tooling exists to make the process easier. For defenders it is a useful signal, because permission enumeration tends to produce a large number of failed API calls, and those failures land in CloudTrail.

The report looks at a class of CloudTrail bypass that the author calls "non-production endpoint permission enumeration CloudTrail bypass". The idea is that some AWS service endpoints are not the normal production endpoints, are still callable with ordinary IAM credentials, still enforce normal IAM permission behaviour, but do not write events to CloudTrail. If an adversary can reach such an endpoint, they can test permissions without leaving the trail of failed calls that defenders rely on.

The researcher found one such non-production endpoint for the EventBridge service. The report notes that the endpoint does not appear to have access to customer partition data, which limits what it can be used for, but it can still be used for permission enumeration without logging to CloudTrail.

The report also cites AWS's own position on this class of issue. AWS has stated that for isolated non-production endpoints that do not log to CloudTrail but are otherwise callable with normal credentials and exhibit normal IAM permission behaviour, the CloudTrail logging bypass is considered a security issue, and that such findings should be sent to the AWS Security Team.

Setup

The reproduction needs a standard commercial partition AWS account. The report instructs using a sufficiently privileged IAM user or role for the production call, then repeating the operation against the non-production endpoint. The only tool shown in the report is the AWS CLI.

The report gives an estimated CVSS score of 4.3 with the vector:

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

and classifies the weakness as CWE-778: Insufficient Logging.

Finding it

The researcher was working from a known pattern: non-production AWS endpoints that accept normal IAM credentials and enforce IAM permissions but skip CloudTrail. The question for each service is whether such an endpoint exists and whether it can be reached with standard credentials. For EventBridge, the answer was yes: one non-production endpoint was found that behaves this way.

The reason this matters is the asymmetry it creates. A production call produces a CloudTrail entry. The same logical call against the non-production endpoint produces no entry, so the adversary learns whether the identity has the permission while the defender sees nothing. The report frames this as the core of the issue: the API response itself becomes the oracle, and the logging that would normally expose the probing is absent.

Exploitation

Step 1: establish the baseline on the production endpoint

With a sufficiently privileged IAM user or role, run the normal EventBridge list operation through the AWS CLI:

Bash
aws events list-event-buses

This is the standard production call for the service. The report says to wait approximately 5-10 minutes, after which a log entry for the call appears in CloudTrail. That entry is the baseline: it shows what a normal, logged EventBridge API call looks like.

Step 2: repeat the same operation against the non-production endpoint

Now run the same logical operation, but point the CLI at the non-production endpoint with --endpoint-url:

Bash
aws events list-event-buses --endpoint-url █████

The --endpoint-url flag overrides the endpoint the CLI would normally use, so the request goes to the non-production host instead of the production EventBridge endpoint. The report redacts the host itself. The same credentials are used; only the destination changes.

Step 3: observe the absence of a CloudTrail entry

After waiting 5-10 minutes, or longer, no log entry for the call appears in CloudTrail. The contrast with step 1 is the finding: the same operation, with the same kind of credentials, is invisible to CloudTrail when sent to the non-production endpoint.

Step 4: use the response as a permission oracle

Because the endpoint still enforces IAM permissions, the response tells the caller whether the identity is allowed to perform the operation. An adversary holding compromised credentials can call the endpoint and, from whether the call succeeds or fails, determine whether the identity has that permission. The report states this directly: depending on the response of the API, the adversary can determine whether a compromised identity does or does not have permission to perform the operation. Because nothing is written to CloudTrail, the probing does not generate the failed-call pattern that would normally be the detection opportunity.

Root cause

The report does not describe the internal implementation. What it establishes is the observable behaviour: a non-production EventBridge endpoint accepts standard IAM credentials, evaluates IAM permissions normally, and does not emit CloudTrail events. Whatever the mechanism, the effect is that the logging control defenders depend on does not cover this endpoint, even though the endpoint is reachable with ordinary credentials and behaves like a normal API for authorisation purposes.

The report also notes that the endpoint does not appear to have access to customer partition data. That limits the direct data exposure, but it does not remove the enumeration value, because the oracle is the authorisation decision rather than the data returned.

Impact

An adversary with compromised IAM credentials can enumerate permissions for the EventBridge service without generating CloudTrail entries. The report's impact statement is written in terms of the elasticache service, not EventBridge. The practical consequence is that the failed-call pattern that defenders use to spot credential probing is not produced for calls made to this endpoint, so the activity can proceed without that signal.

The report is explicit about the limits. The endpoint does not appear to have access to customer partition data. The impact is therefore about visibility and permission discovery rather than direct access to customer data through this endpoint. The severity is rated medium, with the CVSS vector above reflecting a low confidentiality impact and no integrity or availability impact.

Fix

The report does not describe a fix or a change made by AWS. What it does set out is the condition AWS itself has said should be reported: isolated non-production endpoints that do not log to CloudTrail but are callable with normal credentials and exhibit normal IAM permission behaviour.

Variants to test

The report lists similar findings the researcher had already submitted for other services, which is a useful map of where to look next:

  • elasticache
  • datazone (part 2)
  • docdb-elastic
  • devicefarm
  • datazone
  • cloudwatch
  • bedrock
  • bedrock-agent
  • ssm

Then run the same operation with --endpoint-url pointed at a candidate non-production endpoint, using the same credentials. If both hold, the endpoint is behaving as a silent permission oracle for that service.

The report notes that the researcher had written about and presented this general technique publicly before this specific finding.

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. 13 min read.

What happened, in plain words

Imagine you find a set of keys on the street. Before you try them on every door in the building, you want to know which doors they open. So you walk around trying each lock, and every time a key fails, a small light on the door turns on. The building's security guard watches those lights, and a long run of failed attempts tells the guard that someone is trying keys that do not belong to them.

Now imagine one door in the building has no light. You can still try your keys on it, and the lock still tells you yes or no, but the guard never sees anything. You can quietly learn which keys work without ever triggering the alarm.

That is the shape of the issue in this report. AWS is Amazon's cloud platform. When someone gets hold of stolen AWS credentials (the keys that let a program or person act inside an AWS account), a common first move is to find out what those credentials are allowed to do. They call AWS operations one by one and watch which ones succeed and which ones fail. Normally every one of those calls, including the failures, is written into a log called CloudTrail, which is AWS's audit trail. Defenders watch CloudTrail for bursts of failed calls, because that pattern usually means someone is probing.

The researcher found one AWS endpoint for the EventBridge service that behaves differently. An endpoint is simply the address a request is sent to. This particular endpoint is a non-production one, meaning it is not the normal address that ordinary customers use. It still accepts normal AWS credentials, it still checks permissions the normal way, but it does not write anything to CloudTrail. So an attacker can use it to test permissions silently, and the defender sees nothing.

The report notes that this endpoint does not appear to have access to customer partition data, which limits what it can be used for. But it can still be used to work out what a stolen identity is allowed to do, without leaving the log entries that would normally give the activity away.

AWS has previously said that this exact kind of issue should be reported. In the report's quotation, AWS states that 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 to be a security issue, and asks researchers to contact the AWS Security Team.

The background: why permission probing is normally visible

When an adversary gets hold of stolen AWS IAM credentials, a common first move is to work out what those credentials can actually do. IAM stands for Identity and Access Management: it is the part of AWS that decides who is allowed to do what. Credentials are the secret material (keys, tokens) that prove which identity is making a request.

The adversary calls APIs and watches which calls succeed and which fail. An API, in plain terms, is a way for one program to ask another program to do something, like a waiter taking an order to a kitchen. Each AWS operation, such as listing something or reading something, is an API call.

The report notes that this behaviour is well documented in the wild and that automated tooling exists to make the process easier. In other words, this is not a rare hand-crafted attack: there are ready-made programs that will try many API calls in a row and record the answers.

For defenders this is a useful signal, because permission enumeration tends to produce a large number of failed API calls, and those failures land in CloudTrail. CloudTrail is AWS's logging service: it records API activity in an account. A defender who sees many failures in a short time has a strong hint that someone is testing credentials.

The class of issue: non-production endpoint permission enumeration

The report looks at a class of CloudTrail bypass that the author calls "non-production endpoint permission enumeration CloudTrail bypass". A bypass here means getting around a control: the control is CloudTrail logging, and the bypass is reaching AWS in a way that does not produce the log.

The idea is that some AWS service endpoints are not the normal production endpoints. Production means the ordinary, supported address that customers use in day-to-day operation. A non-production endpoint is something else, perhaps used internally or for testing. The interesting ones are those that:

  1. are still callable with ordinary IAM credentials,
  2. still enforce normal IAM permission behaviour, and
  3. do not write events to CloudTrail.

If an adversary can reach such an endpoint, they can test permissions without leaving the trail of failed calls that defenders rely on. The permission check still happens, so the answer still comes back, but the record of the question being asked does not.

The specific finding

The researcher found one such non-production endpoint for the EventBridge service. EventBridge is an AWS service for routing events between parts of an application: something happens, an event is produced, and EventBridge delivers it to whatever is interested. Like most AWS services, it has API operations that can be called with the AWS CLI, Amazon's command-line tool for AWS.

The report notes that the endpoint does not appear to have access to customer partition data, which limits what it can be used for. A partition, in AWS terms, is a grouping of accounts and regions that share the same infrastructure and billing; the standard commercial partition is the ordinary public AWS. So the endpoint cannot be used to read customer data, but it can still be used for permission enumeration without logging to CloudTrail.

The report also cites AWS's own position on this class of issue. AWS has stated that for isolated non-production endpoints that do not log to CloudTrail but are otherwise callable with normal credentials and exhibit normal IAM permission behaviour, the CloudTrail logging bypass is considered a security issue, and that such findings should be sent to the AWS Security Team.

Setup: what you need to reproduce it

The reproduction needs a standard commercial partition AWS account, that is, an ordinary AWS account rather than one in a special government or isolated partition.

The report instructs using a sufficiently privileged IAM user or role for the production call, then repeating the operation against the non-production endpoint. An IAM user is an identity inside an account with its own credentials. A role is an identity that can be assumed temporarily, often by a service or a person, and that carries permissions. "Sufficiently privileged" means the identity has enough permissions for the operation being tested to succeed, so that the baseline call is a success rather than a permission failure.

The only tool shown in the report is the AWS CLI. The CLI is a program you run in a terminal; you type a command, it sends the corresponding API request to AWS, and it prints the response.

The report gives an estimated CVSS score of 4.3 with the vector:

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

CVSS is a standard scoring system for the severity of a security issue. The vector is the compact string that encodes how the score was reached. Reading it in plain terms: the attack can be carried out over a network (AV:N), with low complexity (AC:L), and requires privileges (PR:L), meaning the attacker needs some credentials already. No user interaction is needed (UI:N). The scope is unchanged (S:U), meaning the issue stays within the same security authority. Confidentiality impact is low (C:L), integrity impact is none (I:N), and availability impact is none (A:N). The CR, IR and AR fields are set to X, which means not defined.

The report classifies the weakness as CWE-778: Insufficient Logging. CWE is a catalogue of common weakness types; CWE-778 is the entry for systems that do not record enough information about what happened, which is exactly the problem here: the activity happens but the record does not.

Finding it

The researcher was working from a known pattern: non-production AWS endpoints that accept normal IAM credentials and enforce IAM permissions but skip CloudTrail. The question for each service is whether such an endpoint exists and whether it can be reached with standard credentials. For EventBridge, the answer was yes: one non-production endpoint was found that behaves this way.

The reason this matters is the asymmetry it creates. A production call produces a CloudTrail entry. The same logical call against the non-production endpoint produces no entry, so the adversary learns whether the identity has the permission while the defender sees nothing. The report frames this as the core of the issue: the API response itself becomes the oracle, and the logging that would normally expose the probing is absent.

An oracle, in security writing, is any source of information that answers a question for the attacker. Here the question is "does this identity have this permission?" and the answer is the success or failure of the call.

Exploitation

Step 1: establish the baseline on the production endpoint

With a sufficiently privileged IAM user or role, run the normal EventBridge list operation through the AWS CLI:

Bash
aws events list-event-buses

Line by line: aws is the CLI program. events selects the EventBridge service. list-event-buses is the operation being called: it asks EventBridge to return the list of event buses in the account. An event bus is the channel through which events are delivered in EventBridge. No extra options are given, so the CLI sends the request to the normal production endpoint for EventBridge.

This is the standard production call for the service. The report says to wait approximately 5-10 minutes, after which a log entry for the call appears in CloudTrail. That entry is the baseline: it shows what a normal, logged EventBridge API call looks like. The wait matters because CloudTrail does not necessarily record events instantly; the report's own instruction is to allow that delay before concluding anything from the absence of a log.

Step 2: repeat the same operation against the non-production endpoint

Now run the same logical operation, but point the CLI at the non-production endpoint with --endpoint-url:

Bash
aws events list-event-buses --endpoint-url █████

Line by line: the first three parts are identical to step 1, so the same operation is being requested. The addition is --endpoint-url █████, which tells the CLI to send the request to a different address instead of the default one. The report redacts the host itself, so the actual address is not shown. The same credentials are used; only the destination changes. That is the whole point of the test: keep everything the same except where the request goes, so that any difference in logging can be attributed to the endpoint.

Step 3: observe the absence of a CloudTrail entry

After waiting 5-10 minutes, or longer, no log entry for the call appears in CloudTrail. The contrast with step 1 is the finding: the same operation, with the same kind of credentials, is invisible to CloudTrail when sent to the non-production endpoint. The waiting period is what makes the comparison fair; without it, a slow log write could be mistaken for no log at all.

Step 4: use the response as a permission oracle

Because the endpoint still enforces IAM permissions, the response tells the caller whether the identity is allowed to perform the operation. An adversary holding compromised credentials can call the endpoint and, from whether the call succeeds or fails, determine whether the identity has that permission. The report states this directly: depending on the response of the API, the adversary can determine whether a compromised identity does or does not have permission to perform the operation. Because nothing is written to CloudTrail, the probing does not generate the failed-call pattern that would normally be the detection opportunity.

Put simply: the lock still says yes or no, but the light above the door never comes on.

Root cause

The report does not describe the internal implementation. What it establishes is the observable behaviour: a non-production EventBridge endpoint accepts standard IAM credentials, evaluates IAM permissions normally, and does not emit CloudTrail events. Whatever the mechanism, the effect is that the logging control defenders depend on does not cover this endpoint, even though the endpoint is reachable with ordinary credentials and behaves like a normal API for authorisation purposes.

The report also notes that the endpoint does not appear to have access to customer partition data. That limits the direct data exposure, but it does not remove the enumeration value, because the oracle is the authorisation decision rather than the data returned.

Impact

An adversary with compromised IAM credentials can enumerate permissions for the EventBridge service without generating CloudTrail entries. The report's impact statement is written in terms of the elasticache service, not EventBridge. The practical consequence is that the failed-call pattern that defenders use to spot credential probing is not produced for calls made to this endpoint, so the activity can proceed without that signal.

The report is explicit about the limits. The endpoint does not appear to have access to customer partition data. The impact is therefore about visibility and permission discovery rather than direct access to customer data through this endpoint. The severity is rated medium, with the CVSS vector above reflecting a low confidentiality impact and no integrity or availability impact.

Fix

The report does not describe a fix or a change made by AWS. What it does set out is the condition AWS itself has said should be reported: isolated non-production endpoints that do not log to CloudTrail but are callable with normal credentials and exhibit normal IAM permission behaviour.

Variants to test

The report lists similar findings the researcher had already submitted for other services, which is a useful map of where to look next:

  • elasticache
  • datazone (part 2)
  • docdb-elastic
  • devicefarm
  • datazone
  • cloudwatch
  • bedrock
  • bedrock-agent
  • ssm

Then run the same operation with --endpoint-url pointed at a candidate non-production endpoint, using the same credentials. If both hold, the endpoint is behaving as a silent permission oracle for that service.

The report notes that the researcher had written about and presented this general technique publicly before this specific finding.

Glossary

  • AWS: Amazon Web Services, Amazon's cloud platform, where customers rent computing and storage and use managed services.
  • API: a defined way for one program to ask another program to do something; each AWS operation is an API call.
  • API call: a single request sent to an API, such as asking EventBridge to list event buses.
  • AWS CLI: Amazon's command-line tool; you type a command in a terminal and it sends the corresponding API request to AWS.
  • Endpoint: the address a request is sent to.
  • Production endpoint: the ordinary, supported address that customers use in normal operation.
  • Non-production endpoint: an endpoint that is not the normal customer-facing one, for example an internal or test address.
  • CloudTrail: AWS's logging service that records API activity in an account.
  • CloudTrail bypass: reaching AWS in a way that does not produce the CloudTrail record that would normally be expected.
  • IAM: Identity and Access Management, the part of AWS that decides who is allowed to do what.
  • IAM credentials: the secret material that proves which identity is making a request.
  • IAM user: an identity inside an AWS account with its own credentials.
  • IAM role: an identity that can be assumed temporarily and that carries permissions.
  • Identity: the "who" in an access decision; a user or a role.
  • Permission: an allowance to perform a specific operation.
  • Permission enumeration: systematically testing which operations an identity is allowed to perform.
  • Privileged: having enough permissions for the operation in question to succeed.
  • EventBridge: an AWS service for routing events between parts of an application.
  • Event bus: the channel through which events are delivered in EventBridge.
  • Partition: a grouping of AWS accounts and regions that share infrastructure and billing; the standard commercial partition is ordinary public AWS.
  • Customer partition data: customer data held within a partition; the report says the endpoint does not appear to have access to it.
  • Oracle: any source of information that answers a question for an attacker; here, whether a call succeeds or fails.
  • CVSS: a standard scoring system for the severity of a security issue.
  • CVSS vector: the compact string that encodes how a CVSS score was reached.
  • CWE: a catalogue of common weakness types.
  • CWE-778: the catalogue entry for insufficient logging, where a system does not record enough about what happened.
  • Severity: a rating of how serious an issue is; this report rates it medium.
  • Redacted: removed from the published text, here the actual non-production host address.

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.