Checks/Aws/Test-IamNoRootAccessKey.ps1
|
function Test-IamNoRootAccessKey { <# .SYNOPSIS Root account has no active access keys .DESCRIPTION **AWS root user** is evaluated for **active access keys**. It identifies whether the root identity has one or two programmatic credentials and notes when organization-level root credential management is present. .PARAMETER Check CIEMCheck object containing check metadata. #> [CmdletBinding()] [OutputType([PSCustomObject[]])] param( [Parameter(Mandatory)] [CIEMCheck]$Check ) $ErrorActionPreference = 'Stop' # TODO: Implement check logic based on Prowler check: iam_no_root_access_key [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check iam_no_root_access_key for reference.', 'N/A', 'iam Resources') } |