Checks/Aws/Test-S3BucketShadowResourceVulnerability.ps1
|
function Test-S3BucketShadowResourceVulnerability { <# .SYNOPSIS S3 bucket is not a known shadow resource owned by another account .DESCRIPTION **Amazon S3 buckets** using **predictable service naming** (e.g., `aws-glue-assets-<account>-<region>`, `sagemaker-<region>-<account>`) are identified and their **ownership** checked. Buckets tied to your account that match these patterns but are owned by another account-across regions-are surfaced as shadow-resource candidates. .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: s3_bucket_shadow_resource_vulnerability [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check s3_bucket_shadow_resource_vulnerability for reference.', 'N/A', 's3 Resources') } |