TMA-AWS-2.18
Ensure that IAM External Access Analyzer is enabled for all regions
설명
Enable IAM External Access Analyzer for all resources in each active AWS region. IAM Access Analyzer is a service that analyzes resource policies to identify resources that can be accessed from outside the account. After the analyzer is enabled, scan results are displayed in the console showing accessible resources. These results help determine whether unintended access is permitted, making it easier for administrators to monitor least privilege access. Access Analyzer analyzes only policies applied to resources within the same AWS region. IAM External Access Analyzer helps identify resources in your account or organization that are shared with external entities. This allows detection of unintended access to resources and data. It continuously monitors policies for services such as S3 buckets, IAM roles, KMS keys, Lambda functions, and SQS queues.
점검 방법
감사 방식: 수동 검토
이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.
From Console: 1. Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam 2. Under Access analyzer choose Analyzer Settings 3. On the Analyzer Settings page, review the list of analyzers 4. Identify analyzers where the Finding type is External Access 5. Repeat these steps for each active region, as analyzers are region-specific From Command Line: 1. Run the following command: aws accessanalyzer list-analyzers --type <ACCOUNT|ORGANIZATION> --region <region_name> | grep status 2. Ensure that at least one Analyzer's status is set to ACTIVE 3. To check all regions: for r in $(aws ec2 describe-regions --query "Regions[].RegionName" --output text); do echo "=== $r ===" aws accessanalyzer list-analyzers --region "$r" --type ACCOUNT --query "analyzers[].status" --output text done 4. Ensure each region returns at least one ACTIVE analyzer
조치 방법
조치 방식: 가이드 또는 인프라 패치
From Console: Perform the following to enable IAM Access Analyzer for IAM policies: 1. Open the IAM console at https://console.aws.amazon.com/iam/ 2. Choose Access analyzer 3. Select Create analyzer 4. Select External access analyzer 5. Confirm the region 6. Optionally provide a name and tags 7. Select Create analyzer 8. Repeat for each active region From Command Line: 1. Create an analyzer in a region: aws accessanalyzer list-analyzers --type <ACCOUNT|ORGANIZATION> --region <region_name> | grep status 2. Repeat for each region as required
속성
- 운영 체제
- 모두
- 태그
- access-controlawscloudiam
- 참고 자료
- CIS Amazon Web Services Foundations Benchmark v7.0.0 - 2.18 Ensure that IAM External Access Analyzer is enabled for all regions