# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 --- description: | ### Document Name - ASR-PCI_3.2.1_PCI.IAM.8 ## What does this document do? This document establishes a default password policy. ## Security Standards and Controls * CIS 1.5 - 1.11 * AFSBP IAM.7 * PCI IAM.8 ## Input Parameters * Finding: (Required) Security Hub finding details JSON * AutomationAssumeRole: (Required) The ARN of the role that allows Automation to perform the actions on your behalf. ## Output Parameters * Remediation.Output ## Documentation Links * [PCI IAM.8](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-pci-controls.html#pcidss-iam-8) schemaVersion: '0.3' assumeRole: '{{ AutomationAssumeRole }}' outputs: - ParseInput.AffectedObject - Remediation.Output parameters: Finding: type: StringMap description: The input from the Orchestrator Step function for the PCI.IAM.8 finding AutomationAssumeRole: type: String description: (Required) The ARN of the role that allows Automation to perform the actions on your behalf. allowedPattern: '^arn:(?:aws|aws-us-gov|aws-cn):iam::\d{12}:role/[\w+=,.@-]+$' mainSteps: - name: ParseInput action: 'aws:executeScript' outputs: - Name: FindingId Selector: $.Payload.finding_id Type: String - Name: ProductArn Selector: $.Payload.product_arn Type: String - Name: AffectedObject Selector: $.Payload.object Type: StringMap inputs: InputPayload: Finding: '{{Finding}}' parse_id_pattern: '' expected_control_id: [ 'PCI.IAM.8' ] Runtime: python3.8 Handler: parse_event Script: |- %%SCRIPT=common/parse_input.py%% isEnd: false - name: Remediation action: 'aws:executeAutomation' isEnd: false inputs: DocumentName: ASR-SetIAMPasswordPolicy RuntimeParameters: AllowUsersToChangePassword: True HardExpiry: True MaxPasswordAge: 90 MinimumPasswordLength: 14 RequireSymbols: True RequireNumbers: True RequireUppercaseCharacters: True RequireLowercaseCharacters: True PasswordReusePrevention: 24 AutomationAssumeRole: 'arn:{{global:AWS_PARTITION}}:iam::{{global:ACCOUNT_ID}}:role/SO0111-SetIAMPasswordPolicy' - name: UpdateFinding action: 'aws:executeAwsApi' inputs: Service: securityhub Api: BatchUpdateFindings FindingIdentifiers: - Id: '{{ParseInput.FindingId}}' ProductArn: '{{ParseInput.ProductArn}}' Note: Text: 'Established a baseline password policy using the AWSConfigRemediation-SetIAMPasswordPolicy runbook.' UpdatedBy: 'ASR-PCI_3.2.1_IAM.8' Workflow: Status: RESOLVED description: Update finding isEnd: true