Skip to main content
Back
DemonstrationAWS
1 min read

AWS AppSync used a trusted service role across research accounts

Environment
AWS AppSync research demonstration by Datadog Security Labs
When
Research in September 2022; individual test dates not statedDisclosed Nov 21, 2022
Entry
Datadog demonstrates that AppSync accepts a role associated with another researcher-owned AWS account.

Datadog researchers showed that a request from one AWS account could make AppSync, a managed service for building APIs, act with permissions granted by a second account. The researchers controlled both accounts. AWS fixed the issue and said its logs, dating back to the service’s launch, showed this behavior only between the researchers’ accounts.

What the demonstration did

Research team
Datadog Security Labs
Internet
AWS research scope
AppSync API
Service role

Research demonstration / Datadog Security Labs

  1. 1

    Cross-account validation

    September 2022

    Datadog demonstrates that AppSync accepts a role associated with another researcher-owned AWS account.

  2. 2

    Service role permissions

    September 2022

    AppSync acts with the permissions of the trusted role in the second test account.

Impact

The researchers demonstrated operations through a role that trusted AppSync in a second test account. AWS reported that no other customer accounts were affected.

Would the controls have stopped it?

AppSync fixed its cross-account role check

AWS corrected the managed service and confirmed that customers needed to take no action. Narrow permissions on an AppSync role limit the resources it can use, even when the service acts for the wrong caller.

Incident control assessments

0
Prevented
1
Contained
1
Not covered

How it could have been prevented

The same replay with the controls in place. Green marks where a step is refused, blue where it is bounded, and red where no control reaches it. Open a row to read the control, why it acts, and its caveat.

Research team
Datadog Security Labs
Internet
AWS research scope
AppSync API
Service role

Research demonstration / Datadog Security Labs

1 · Cross-account validation

1 Not covered

2 · Service role permissions

1 Contained

Key facts

  • Datadog reported its cross-account AppSync finding on September 1.
  • AWS reproduced the issue and confirmed its impact on September 2.
  • Datadog confirmed that the September 6 AppSync fix closed the reported route.
  • AWS said its review of logs back to service launch found only activity between researcher-owned accounts.

Sources

Every fact in this breakdown comes from the public reporting below. The replay is a model of that reporting, not a reconstruction of the environment it describes.

  1. 1.
    AppSync cross-tenant vulnerability disclosureDatadog Security Labs · Nov 21, 2022 · ResearchThe researchers demonstrated operations through a role that trusted AppSync in a second test account. AWS reported that no other customer accounts were affected.
  2. 2.
    Reported AWS AppSync IssueAWS · Nov 21, 2022 · AdvisoryAWS reviewed logs back to service launch and found only activity between accounts owned by the researcher.
  3. 3.
    Permissions boundaries for IAM entitiesAWS · undated · Vendor reportAn IAM permissions boundary caps identity-based grants. A resource policy granting directly to a role session has different evaluation rules.

The estate in the replay follows the researchers' description of their own test environment. Verdicts describe what a control does when it is in place before the run. They are not an assessment of any company's security program.

More cloud attack breakdowns

All breakdowns