---
title: Publicly assumable IAM role can access sensitive data
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > Publicly assumable IAM role can access
  sensitive data
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Publicly assumable IAM role can access sensitive data

## Description{% #description %}

A publicly assumable IAM role has direct access to sensitive data. This configuration allows any AWS principal, including those from external AWS accounts, to assume the role and directly access sensitive resources such as S3 buckets, RDS databases, or DynamoDB tables. An attacker with any valid AWS credentials can exploit this misconfigured trust policy to gain unauthorized access to protected data.

## Remediation{% #remediation %}

1. [Review and manage IAM roles](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_manage.html) to restrict the trust policy and limit which principals can assume the role.
1. [Apply IAM security best practices](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html) to remove unnecessary access to sensitive data.
