14 of 50 in All Controls
aws

Ensure Only Approved Cross-Account IAM Role Trusts

IDAWS-IAM-002
Severity
high
Automation
Auto
Category
iam
Enforcementrecommended
Complexity / Impact
medium(disruptive impact)
Risk Profile
high likelihood(medium residual)
Cloud Scopeaws:ou
Environments
productionnon-production
Target Resources
iam-role
Services
iamaccess-analyzerorganizations
Tags
iamcross-accounttrust-relationshipsaccess-controlleast-privilegelanding-zonescpaccess-analyzer
Frameworks
CIS AWSNIST 800-53ISO 27001
Depends On
Governance
Cloud Security Team (quarterly)
Created
2026-05-03
Last Updated
2026-05-17

Specification & Description

Identify and review IAM roles in central accounts that allow external AWS accounts to assume them. This control uses IAM Access Analyzer to detect cross-account access and applies preventive Service Control Policies (SCPs) to restrict trust policy modifications to approved organization boundaries.

Technical Specifications

In a Landing Zone environment, central accounts (e.g., Security, Log Archive, Shared Services) often require cross-account roles for operational tasks. However, these roles must only trust verified member accounts within the AWS Organization. This control leverages IAM Access Analyzer to provide continuous monitoring and alerting for any IAM role that allows access from outside a defined zone of trust (typically the AWS Organization). Additionally, an SCP is used to prevent the creation or update of roles with trust policies that don't include the aws:PrincipalOrgID condition, ensuring near-universal organization-level restriction.

Security Rationale

Uncontrolled cross-account trust relationships are a significant security risk, allowing potential lateral movement from compromised external accounts into the heart of the landing zone. IAM Access Analyzer provides a cost-effective, native way to identify these risks without the high overhead of AWS Config rules. Combining this with SCPs creates a "belt and suspenders" approach: SCPs prevent blatant misconfigurations, while Access Analyzer detects subtle or authorized but unrecorded external access.

Business & Security Impact

A misconfigured trust in a management or security account can expose the entire organization to external threats. The impact of unmanaged external trust is organization-wide data exfiltration or resource destruction. Enforcement via SCP may break existing undocumented integrations; discovery via Access Analyzer is required before moving to a Deny effect.

Policy Exceptions (2)

Trusted third-party integrations (e.g., security tooling vendors) may require cross-account access. These must be explicitly approved and documented.

Temporary cross-account access for incident response may be allowed if time-bound and monitored.

Operational & Implementation Notes

IAM Access Analyzer is the preferred tool for cross-account visibility in landing zones due to its native integration with AWS Organizations and zero additional cost for standard findings. Unlike AWS Config, which charges per-evaluation, Access Analyzer monitors policies continuously without extra per-rule fees.

Compliance Framework Mappings (3)

Regulatory baselines and industry standards mapped to this control specification.

Beta
Framework / StandardMapped Requirements & ControlsControls
CIS AWS Foundations Benchmark v3.0CIS AWS
1.16
1
NIST 800-53 Rev 5NIST 800-53
AC-3AC-6
2
ISO 27001:2022ISO 27001
A.9.4.1
1

* Compliance framework mappings are provided for informational architectural reference. Always verify control alignment against your organization's formal audit requirements.

Automated Detection & Rule Logic

Detection Engine: aws-api • Automated: Yes

IAM Access Analyzer continuously monitors resource-based policies (including IAM Role trust policies). It generates a finding whenever a policy allows access to a principal outside of the 'Zone of Trust' (configured as the AWS Organization). The detection is continuous and event-driven, triggered by policy changes.

Check for active findings related to IAM Role cross-account accessbash
aws accessanalyzer list-findings \
  --analyzer-arn <ANALYZER_ARN> \
  --filter '{"resourceType": {"eq": ["AWS::IAM::Role"]}, "isPublic": {"eq": ["false"]}, "status": {"eq": ["ACTIVE"]}}' \
  --query 'findings[?principal.AWS != null]'

Preventative Enforcement Policies

Restrict cross-account accessjson
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "DenyUnapprovedCrossAccountTrust",
      "Effect": "Deny",
      "Action": [
        "iam:CreateRole",
        "iam:UpdateAssumeRolePolicy"
      ],
      "Resource": "*",
      "Condition": {
        "StringNotEqualsIfExists": {
          "aws:PrincipalOrgID": "<ORG_ID>"
        },
        "Bool": {
          "aws:PrincipalIsAWSService": "false"
        }
      }
    }
  ]
}

Remediation Guide & Automation

Review IAM Access Analyzer findings to identify and validate cross-account access. Remove unapproved trust principals from IAM role trust policies or coordinate approval via security exceptions.

Step-by-Step Instructions

  1. Enable IAM Access Analyzer at the AWS Organizations level (Delegated Administrator).
  2. Navigate to the Access Analyzer console and filter for findings of type 'External access'.
  3. Filter results to focus on IAM Roles in central/management accounts.
  4. For each finding, identify the 'Trusted entity' (external account ID or ARN).
  5. Compare the trusted entity against the approved organization boundary or allowlist.
  6. If the entity is unapproved, update the role's trust policy to remove the entity.
  7. For legitimate external access (e.g., third-party SaaS), document the approval and archive the finding.
List active findings for IAM Rolesbash
aws accessanalyzer list-findings \
  --analyzer-arn <ANALYZER_ARN> \
--filter '{"resourceType": {"eq": ["AWS::IAM::Role"]}, "status": {"eq": ["ACTIVE"]}}'

# Inspect a specific role's trust policy
aws iam get-role --role-name <ROLE_NAME> \
  --query 'Role.AssumeRolePolicyDocument'

# Update trust policy (replace with compliant policy document)
aws iam update-assume-role-policy \
  --role-name <ROLE_NAME> \
  --policy-document file://trust-policy.json

Supported Vendor Solutions (1)

Commercial CNAPP vendors and software integrations providing automated enforcement for this control, organized by solution category.

Palo Alto Networks Prisma Cloud
Palo Alto Networks Prisma CloudPalo Alto Networks Prisma Cloud is an enterprise-grade Cloud-Native Application Protection Platform (CNAPP) assembled through strategic technology integrations (including RedLock, Twistlock, Bridgecrew, Cider Security, and Dig Security). It delivers broad, full-lifecycle security spanning CSPM, KSPM, CWPP, CIEM, DSPM, and ASPM across multi-cloud and hybrid environments. While offering extensive depth across public clouds (AWS, Azure, GCP, OCI, Alibaba, IBM Cloud) and active in-line runtime protection via Defender agents, managing its broad multi-module feature set and RQL-based governance often requires significant administrative investment and specialized operational expertise.
Native
Upwind Security
Upwind SecurityUpwind Security is a runtime-powered Cloud-Native Application Protection Platform (CNAPP) built on lightweight eBPF (Extended Berkeley Packet Filter) architecture and agentless cloud scanning. By capturing continuous, kernel-level telemetry across processes, system calls, and Layer 3–7 network paths, Upwind correlates runtime context with cloud infrastructure posture (CSPM/KSPM), identity governance (CIEM), data security (DSPM), and application supply chain risks (ASPM). This cuts through alert noise by prioritizing risks based on actual in-memory runtime reachability and provides real-time active threat protection.
Native
Wiz
WizWiz is the industry-leading Cloud Native Application Protection Platform (CNAPP) that empowers organizations to secure everything they build and run in the cloud. By utilizing a proprietary 'Security Graph' engine, Wiz correlates data across CSPM, CWPP, CIEM, DSPM, and ASPM modules to eliminate the noise of siloed security tools. The platform provides a unified, contextual view of cloud risk, allowing security teams to prioritize and remediate the most critical toxic combinations such as vulnerabilities, excessive privileges, and exposed sensitive data across multi-cloud and containerized environments.
Native
Orca Security
Orca SecurityOrca Security is an enterprise-grade Cloud Native Application Protection Platform (CNAPP) that utilizes its patented SideScanning™ technology to provide deep, context-aware visibility into cloud environments across workloads, configurations, and identities without requiring operational agents.
Native

We value your privacy

We use analytics cookies to understand how visitors interact with our site and to improve the user experience. You can choose to accept or decline these cookies.