Skip to content
Info disclosure Disclosed report Intermediate

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

Non-production API endpoints for the Neptune Graph service accept standard IAM credentials but do not log API calls to CloudTrail. An attacker with stolen credentials could use these endpoints to test permissions without generating CloudTrail logs.

nick_frichette_dd Follow

Originally disclosed on HackerOne

  • Triaged in 31 hours
  • Fixed in 42 days
  • Disclosed after 57 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 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 7 non-production endpoints for the Amazon Neptune Graph 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.

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 neptune-graph list-graphs

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

aws neptune-graph list-graphs --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:

neptune-graph

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

Additionally, we have reported similar findings for different services:

  • lakeformation and m2
  • health
  • glue
  • globalaccelerator
  • forecast
  • events
  • elasticache
  • datazone part 2
  • docdb-elastic
  • devicefarm
  • datazone
  • cloudwatch
  • bedrock
  • bedrock-agent
  • ssm

The following is the list of endpoints we found that exhibited this behavior. Note that these appear to be AWS developer personal stacks with their aliases in the domains. These should be redacted prior to disclosure

  • ██████████
  • ██████████
  • █████
  • ███████
  • ██████
  • █████

In addition to the above 6, we found another non-production endpoint which can only perform the neptune-graph:ListGraphSnapshots action. Presumably this endpoint is only configured for that specific API call.

  • ███

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 lakeformation and m2 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

Amazon Neptune is AWS's graph database service, and neptune-graph is the API surface that the AWS CLI and SDKs call to manage graphs and snapshots. Like most AWS services, calls to the production endpoints are expected to be recorded in CloudTrail, which is the primary audit trail defenders use to see who called what.

The issue described here is a specific category of CloudTrail bypass that the researcher calls "non-production endpoint permission enumeration CloudTrail bypass". The idea is that some AWS services expose non-production endpoints that accept standard IAM credentials and behave like the real API for authorisation purposes, but do not write events to CloudTrail. An adversary holding stolen credentials can call those endpoints to learn which actions the credentials are permitted to perform, and the attempts leave no audit record.

The researcher points out that this technique is common in the wild: adversaries who obtain stolen AWS IAM credentials frequently test them by making API calls and observing which succeed and which fail, and there are automated tools that make this easier. For defenders, that behaviour is normally a detection opportunity because it produces a large number of failed API call attempts. If the enumeration can be done without logging to CloudTrail, the activity becomes invisible.

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 [redacted]".

Setup

Reproduction requires a standard commercial partition AWS account. The researcher used a sufficiently privileged IAM user or role to demonstrate what a logged call looks like, and standard IAM credentials to call the non-production endpoints. The only tool shown in the report is the AWS CLI, invoked through the neptune-graph command set.

No specific CLI version, region or credential type beyond "standard IAM credentials" is given.

Finding it

The researcher identified 7 non-production endpoints for the Amazon Neptune Graph service that can be used with standard IAM credentials and that do not log to CloudTrail. Six of them appear to be AWS developer personal stacks, with aliases visible in the domains; the report notes these should be redacted prior to disclosure. The seventh can only perform the neptune-graph:ListGraphSnapshots action, which suggests it is configured only for that specific API call.

The endpoints themselves are redacted in the report, so the exact hostnames are not available here.

The researcher notes that these endpoints do not appear to have access to customer partition data. The concern is not data access but the ability to enumerate permissions without generating CloudTrail events.

Exploitation

Step 1: Confirm that the production endpoint logs

With a sufficiently privileged IAM user or role, run the normal CLI operation against the production endpoint:

Bash
aws neptune-graph list-graphs

Wait approximately 5-10 minutes, and a log entry appears in CloudTrail. This establishes the baseline: the same API call, made normally, is auditable.

Step 2: Repeat the call against the non-production endpoint

Run the same operation with an explicit endpoint override pointing at one of the discovered non-production hosts:

Bash
aws neptune-graph list-graphs --endpoint-url ███████

The --endpoint-url flag redirects the CLI away from the production service endpoint to the supplied host. The endpoint is callable with the caller's standard IAM credentials and, per the report, exhibits normal IAM permission behaviour.

Step 3: Observe the missing audit record

After waiting 5-10 minutes, or longer, no log entry appears in CloudTrail for the call made in step 2. An adversary can make the call and, depending on the response, determine whether the identity has permission for the operation. An adversary can therefore make the call and, from the response alone, determine whether the compromised identity does or does not have permission to perform the operation, with no CloudTrail record of the attempt.

Root cause

The report does not describe the implementation behind the endpoints. What it establishes is the observable behaviour: these non-production endpoints accept normal IAM credentials, enforce normal IAM permission behaviour, and do not emit CloudTrail events. The logging gap is the defect; the authorisation behaviour is what makes the gap useful to an attacker, because a permitted call and a denied call produce distinguishable responses.

Existing defences did not help because CloudTrail is the mechanism defenders rely on to see API activity, including the burst of failed calls that normally accompanies credential testing. With no event written, there is nothing for detection rules to match.

Impact

An adversary who has obtained IAM credentials can use these endpoints to enumerate the permissions attached to those credentials without leaving a CloudTrail trail. The report frames this as invisible reconnaissance: the attacker learns what the stolen identity can do before using it, and the failed attempts that would normally be the loudest signal are not recorded.

The researcher explicitly limits the scope: the endpoints do not appear to have access to customer partition data. The impact is therefore confined to permission enumeration and the loss of audit visibility, not to reading or modifying customer data through these hosts.

The report estimates a CVSS score of 4.3 with the vector 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.

Fix

The report does not state what remediation AWS applied. The researcher cites AWS's position that such endpoints are a security issue worth reporting. Whether the endpoints were changed to log, restricted, or removed is not described.

Variants to test

The researcher lists similar findings reported for other services, which gives a concrete set of places to look for the same pattern:

  • lakeformation and m2
  • health
  • glue
  • globalaccelerator
  • forecast
  • events
  • elasticache
  • datazone (and a second datazone report)
  • docdb-elastic
  • devicefarm
  • cloudwatch
  • bedrock
  • bedrock-agent
  • ssm

The researcher lists similar findings reported for other services:

  1. Pick an API action the service exposes and call it against the production endpoint with known credentials.
  2. Wait for the expected CloudTrail delay and confirm the event appears.
  3. Call the same action with --endpoint-url pointed at a candidate non-production host, using the same credentials.
  4. Wait at least as long as in step 2 and check CloudTrail again.

A positive result is a response from the non-production host that reflects the caller's IAM permissions (success when permitted, an authorisation error when not) combined with no corresponding CloudTrail event after the normal delay.

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

What happened, in plain words

Imagine a large office building with a security desk at the front door. Every time someone walks in, the guard writes their name in a logbook. If something goes wrong later, investigators read the logbook to see who came and went. Now imagine there is a side door that nobody watches and that does not feed into the logbook. Someone who has stolen a staff badge could try it on the side door, learn whether it opens, and leave no trace.

That is the shape of the issue described here. Amazon Web Services (AWS) is a cloud provider: it rents out computers, databases and many other services over the internet. Every action a customer takes on AWS, such as listing their databases, is normally written into an audit log called CloudTrail. CloudTrail is the logbook. Security teams rely on it to see who did what and when.

The researcher found seven addresses, called endpoints, belonging to a service called Amazon Neptune Graph. These addresses accept standard IAM credentials and exhibit normal IAM permission behaviour, but they do not write anything to CloudTrail. Someone who has stolen AWS credentials could use these addresses to quietly work out what those credentials are allowed to do, without the logbook recording a single attempt.

The report calls this technique "non-production endpoint permission enumeration CloudTrail bypass". We will unpack each of those words as we go.

Background: the pieces involved

What an API is

An API (Application Programming Interface) is a way for one piece of software to ask another piece of software to do something. A simple comparison: a restaurant menu. You do not walk into the kitchen and cook; you pick an item from the menu, the kitchen prepares it, and a result comes back to your table. The menu is the API: a fixed list of things you can ask for, each with a name and some options.

On AWS, almost everything you do, whether through a web console, a command-line tool or a program, ends up as an API call: a structured request sent over the internet to an AWS address, with a name (the action) and some parameters.

What the AWS CLI is

The AWS CLI (Command Line Interface) is a free tool that lets you type AWS commands into a terminal, which is a text window on your computer where you type commands instead of clicking. The report's asset is described as "All API's called by the AWS CLI", meaning the issue concerns the API calls that this tool makes.

What Amazon Neptune and neptune-graph are

Amazon Neptune is AWS's graph database service. A graph database stores data as things and the connections between them, which suits problems like social networks or recommendation engines. neptune-graph is the name of the API surface, the menu of actions, that the AWS CLI and software development kits (SDKs, helper libraries for programmers) use to manage graphs and snapshots. A snapshot is a saved copy of a database at a point in time.

What IAM is

IAM stands for Identity and Access Management. It is AWS's system for deciding who is allowed to do what. An IAM user or role is an identity, roughly like a staff account. Each identity has permissions attached: a list of actions it may perform. When you make an API call, AWS checks your identity's permissions and either allows the action or refuses it.

What CloudTrail is

CloudTrail is AWS's audit logging service. When API calls are made against production endpoints, the normal, live addresses of a service, AWS is expected to record them in CloudTrail. Defenders, the people responsible for protecting a system, use CloudTrail as their primary record of who called what.

What a non-production endpoint is

Production means the live service that customers use. Non-production means everything else: test systems, development systems, internal builds. These often live at different internet addresses, called endpoints, from the production service. The researcher describes the ones found here as appearing to be AWS developer personal stacks, meaning individual developers' own test setups, with their aliases visible in the domain names.

What permission enumeration is

Enumeration means listing things out one by one. Permission enumeration means discovering, step by step, which actions a set of credentials is allowed to perform. The usual method is simple: try an action and watch whether it succeeds or fails. A success means the permission is there; a refusal means it is not.

The report notes that adversaries who obtain stolen AWS IAM credentials frequently do exactly this, and that automated tools exist to make the process easier. For defenders this behaviour is normally a golden opportunity for detection, because trying many actions produces a large number of failed API call attempts, which stands out in logs. If the same probing can be done without anything reaching CloudTrail, the activity becomes invisible.

What a CloudTrail bypass is

A bypass, in this context, means finding a way to make API calls that escape the logging you would expect. The report says there are many categories of CloudTrail bypass and focuses on one specific variant, the non-production endpoint permission enumeration bypass.

What AWS says about this class of issue

According to the quotation in the report, AWS has previously stated that this type of vulnerability should be reported. In the researcher's words, quoting AWS:

"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 [redacted]".

In plain terms: if an endpoint is reachable with ordinary credentials, behaves like the real service when checking permissions, but writes nothing to CloudTrail, AWS treats that as a security issue worth reporting.

What was found

The researcher found 7 non-production endpoints for the Amazon Neptune Graph service that can be used with standard IAM credentials and that do not log to CloudTrail.

Six of them appear to be AWS developer personal stacks, with aliases in the domains. The report says these should be redacted prior to disclosure, and indeed the endpoint addresses are blacked out in the published text, so the exact hostnames are not available.

The seventh endpoint can only perform one action, neptune-graph:ListGraphSnapshots. The researcher presumes it is configured only for that specific API call.

The report is careful about scope: these endpoints do not appear to have access to customer partition data. A partition, in AWS terms, is a separate grouping of cloud infrastructure; the commercial partition is the main one most customers use. The concern here is not reading or changing customer data, but the ability to enumerate permissions without generating CloudTrail events.

Reproducing it, step by step

Reproduction requires a standard commercial partition AWS account. The researcher used a sufficiently privileged IAM user or role to show what a logged call looks like, and standard IAM credentials to call the non-production endpoints. The only tool shown in the report is the AWS CLI, invoked through the neptune-graph command set. No specific CLI version, region or credential type beyond "standard IAM credentials" is given.

Step 1: Confirm that the production endpoint logs

First you need a baseline: proof that the same call, made normally, does get recorded. With a sufficiently privileged IAM user or role, run the normal CLI operation against the production endpoint:

Bash
aws neptune-graph list-graphs

Line by line:

  • aws is the name of the AWS CLI program you are running.
  • neptune-graph selects the Neptune Graph service, the menu of actions for managing graphs and snapshots.
  • list-graphs is the action: list the graphs that exist. It is a read-only request, it does not change anything.

Why this step: it establishes the baseline. The same API call, made normally, is auditable. Wait approximately 5-10 minutes, and a log entry appears in CloudTrail. The delay is normal; CloudTrail does not always record events instantly.

Step 2: Repeat the call against the non-production endpoint

Now run the same operation, but with an explicit endpoint override pointing at one of the discovered non-production hosts:

Bash
aws neptune-graph list-graphs --endpoint-url ███████

Line by line:

  • aws neptune-graph list-graphs is exactly the same command as before: same tool, same service, same action.
  • --endpoint-url ███████ is an extra option, a flag, that tells the CLI to send the request somewhere other than the normal production address. The actual address is redacted in the report.

Why this step: the --endpoint-url flag redirects the CLI away from the production service endpoint to the supplied host. The endpoint is callable with the caller's standard IAM credentials and, per the report, exhibits normal IAM permission behaviour. In other words, the side door still checks your badge; it just does not write in the logbook.

Step 3: Observe the missing audit record

After waiting 5-10 minutes, or longer, no log entry appears in CloudTrail for the call made in step 2. An adversary can make the call and, depending on the response, determine whether the identity has permission for the operation.

Why this matters: an adversary can make the call and, from the response alone, determine whether the compromised identity does or does not have permission to perform the operation, with no CloudTrail record of the attempt. A permitted call and a denied call produce distinguishable responses, so the answer is readable from the reply itself.

Why it works

The report does not describe the implementation behind the endpoints. What it establishes is the observable behaviour: these non-production endpoints accept normal IAM credentials, enforce normal IAM permission behaviour, and do not emit CloudTrail events.

The logging gap is the defect. The authorisation behaviour is what makes the gap useful to an attacker, because a permitted call and a denied call produce distinguishable responses.

Existing defences did not help because CloudTrail is the mechanism defenders rely on to see API activity, including the burst of failed calls that normally accompanies credential testing. With no event written, there is nothing for detection rules to match. Detection rules are automated checks that look through logs for suspicious patterns; if the log is empty, the rules have nothing to look at.

Impact

An adversary who has obtained IAM credentials can use these endpoints to enumerate the permissions attached to those credentials without leaving a CloudTrail trail. The report frames this as invisible reconnaissance: the attacker learns what the stolen identity can do before using it, and the failed attempts that would normally be the loudest signal are not recorded.

The researcher explicitly limits the scope: the endpoints do not appear to have access to customer partition data. The impact is therefore confined to permission enumeration and the loss of audit visibility, not to reading or modifying customer data through these hosts.

The report estimates a CVSS score of 4.3 with the vector 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.

A few words on those labels. CVSS is a standard scoring system for the severity of a security issue; 4.3 is in the medium range. The vector string is the breakdown behind the number: AV:N means the attack can be carried out over the network, AC:L means the attack complexity is low, PR:L means the attacker needs low-level privileges (here, some valid credentials), UI:N means no user interaction is required, S:U means the impact stays within the same security scope, and C:L, I:N, A:N mean low impact on confidentiality and no impact on integrity or availability. The CR, IR and AR values marked X are not defined. CWE-778 is a catalogue entry for weaknesses where logging is insufficient, which is exactly the category here.

Fix

The report does not state what remediation AWS applied. The researcher cites AWS's position that such endpoints are a security issue worth reporting. Whether the endpoints were changed to log, restricted, or removed is not described.

Variants to test

The researcher lists similar findings reported for other services, which gives a concrete set of places to look for the same pattern:

  • lakeformation and m2
  • health
  • glue
  • globalaccelerator
  • forecast
  • events
  • elasticache
  • datazone (and a second datazone report)
  • docdb-elastic
  • devicefarm
  • cloudwatch
  • bedrock
  • bedrock-agent
  • ssm

The researcher lists similar findings reported for other services:

  1. Pick an API action the service exposes and call it against the production endpoint with known credentials.
  2. Wait for the expected CloudTrail delay and confirm the event appears.
  3. Call the same action with --endpoint-url pointed at a candidate non-production host, using the same credentials.
  4. Wait at least as long as in step 2 and check CloudTrail again.

A positive result is a response from the non-production host that reflects the caller's IAM permissions (success when permitted, an authorisation error when not) combined with no corresponding CloudTrail event after the normal delay.

Glossary

  • API: a fixed menu of requests that one piece of software can send to another, each with a name and options, and a reply that comes back.
  • API call: a single request sent to an API, such as asking to list graphs.
  • AWS: Amazon Web Services, a cloud provider that rents out computing services over the internet.
  • AWS CLI: the AWS Command Line Interface, a tool for typing AWS commands into a text terminal.
  • CloudTrail: AWS's audit logging service, which records API activity so defenders can see who called what.
  • CloudTrail bypass: a way of making API calls that escape the logging you would expect.
  • Credential: a piece of information, such as a key or login, that proves who you are when making a request.
  • CVSS: a standard scoring system for the severity of a security issue, expressed as a number and a vector string.
  • CWE-778: a catalogue entry for the weakness "Insufficient Logging", where activity is not recorded well enough.
  • Defender: a person responsible for protecting a system and detecting attacks against it.
  • Detection rule: an automated check that scans logs for suspicious patterns.
  • Endpoint: an internet address that a service answers on.
  • Enumeration: discovering things one by one, such as testing which actions a set of credentials can perform.
  • Graph database: a database that stores data as things and the connections between them.
  • IAM: Identity and Access Management, AWS's system for deciding which identities may perform which actions.
  • IAM role: an AWS identity that can be assumed, with its own permissions.
  • IAM user: an AWS identity representing a person or application, with its own permissions.
  • Identity: an account or role in AWS that makes API calls and has permissions attached.
  • Non-production endpoint: an address belonging to a test or development system rather than the live customer service.
  • Partition: a separate grouping of AWS cloud infrastructure; the commercial partition is the main one most customers use.
  • Permission: an allowance for an identity to perform a particular action.
  • Permission enumeration: working out which actions a set of credentials is allowed to perform by trying them and watching the results.
  • Production endpoint: the live address of a service that customers use.
  • Reconnaissance: the information-gathering phase of an attack, before the attacker acts.
  • SDK: a software development kit, a set of helper libraries that programmers use to call an API.
  • Snapshot: a saved copy of a database at a particular point in time.
  • Terminal: a text window on a computer where you type commands instead of clicking.
  • Vector string: the breakdown of a CVSS score, listing each factor that contributed to the number.

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.