IAM role has trust policy containing cross-OU principal
Description
This control examines whether IAM roles have trust policies that allow access to principals from different AWS organizational units (OUs). The control will fail if the following conditions are true:
- The role’s trust policy contains an
Allow
statement - The statement references a principal from an AWS account that is onboarded to Datadog
- AWS Organizations data is available for both the role account and the principal account
- The role account and the principal account belong to different AWS organizational units (OU)
Note: The impact of Condition
elements of statements in the role trust policy is not assessed by this control.
Cross-OU access in trust policies may introduce security risks by allowing access across deliberately isolated organizational units. This type of access should be carefully controlled and limited to specific, well-documented business requirements.
Organizations should maintain strict OU boundaries and only allow cross-OU access when there is a legitimate business need and proper security controls are in place.
Review the IAM role’s trust policy to ensure that cross-OU principals are intentional and necessary.
For guidance on modifying IAM role trust policies, refer to the Update a role trust policy section of the AWS Identity and Access Management User Guide