Checks/Aws/Test-SnsTopicsNotPubliclyAccessible.ps1
|
function Test-SnsTopicsNotPubliclyAccessible { <# .SYNOPSIS SNS topic is not publicly accessible .DESCRIPTION **SNS topic policies** are analyzed for **public principals** (e.g., `*`). Topics that grant access without restrictive conditions such as `aws:SourceArn`, `aws:SourceAccount`, `aws:PrincipalOrgID`, or `sns:Endpoint` scoping are treated as publicly accessible. .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: sns_topics_not_publicly_accessible [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check sns_topics_not_publicly_accessible for reference.', 'N/A', 'sns Resources') } |