IAM 비밀번호 최소 길이 부족

충분히 길고 고유한 IAM 콘솔 비밀번호를 사용하세요.

설명

LoginProfile.Password는 한 IAM 사용자의 콘솔 비밀번호입니다. 계정 전체의 최소 길이는 IAM 비밀번호 정책에서 정합니다.

잠재적 영향

공개되었거나 다른 곳에서 사용한 비밀번호는 길어도 계정에 접근하는 데 악용될 수 있습니다.

해결 방법

조직 기준이 최소 14자라면 계정 정책에 14자 이상을 요구하세요. 사용자마다 고유한 비밀번호를 비밀 관리 도구 등 안전한 경로로 전달하고 MFA를 적용하세요.

예시

두 예시는 비밀번호 길이를 10자와 16자로 비교합니다. 표시된 값은 운영에 사용하지 마세요. 참조하는 myqueue와 mytopic은 생략했습니다.

변경 전

yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: 비밀번호 길이 비교 예시
Resources:
  myuser:
    Type: AWS::IAM::User
    Properties:
      Path: "/"
      LoginProfile:
        Password: myP@ssW0rd
      Policies:
      - PolicyName: giveaccesstoqueueonly
        PolicyDocument:
          Version: '2012-10-17'
          Statement:
          - Effect: Allow
            Action:
            - sqs:*
            Resource:
            - !GetAtt myqueue.Arn
          - Effect: Deny
            Action:
            - sqs:*
            NotResource:
            - !GetAtt myqueue.Arn
      - PolicyName: giveaccesstotopiconly
        PolicyDocument:
          Version: '2012-10-17'
          Statement:
          - Effect: Allow
            Action:
            - sns:*
            Resource:
            - !Ref mytopic
          - Effect: Deny
            Action:
            - sns:*
            NotResource:
            - !Ref mytopic

변경 후

yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: 비밀번호 길이 비교 예시
Resources:
  myuser:
    Type: AWS::IAM::User
    Properties:
      Path: "/"
      LoginProfile:
        Password: myP@ssW0rd123asw
      Policies:
      - PolicyName: giveaccesstoqueueonly
        PolicyDocument:
          Version: '2012-10-17'
          Statement:
          - Effect: Allow
            Action:
            - sqs:*
            Resource:
            - !GetAtt myqueue.Arn
          - Effect: Deny
            Action:
            - sqs:*
            NotResource:
            - !GetAtt myqueue.Arn
      - PolicyName: giveaccesstotopiconly
        PolicyDocument:
          Version: '2012-10-17'
          Statement:
          - Effect: Allow
            Action:
            - sns:*
            Resource:
            - !Ref mytopic
          - Effect: Deny
            Action:
            - sns:*
            NotResource:
            - !Ref mytopic

참조