Checks/Aws/Test-CloudtrailBucketRequiresMfaDelete.ps1
|
function Test-CloudtrailBucketRequiresMfaDelete { <# .SYNOPSIS CloudTrail trail S3 bucket has MFA delete enabled .DESCRIPTION **CloudTrail log buckets** for actively logging trails are evaluated for **MFA Delete** on the associated S3 bucket. The assessment determines whether `MFA Delete` is configured on the in-account log bucket; *if the bucket resides in another account, its configuration should be verified separately*. .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: cloudtrail_bucket_requires_mfa_delete [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check cloudtrail_bucket_requires_mfa_delete for reference.', 'N/A', 'cloudtrail Resources') } |