Checks/Aws/Test-EventbridgeBusExposed.ps1
|
function Test-EventbridgeBusExposed { <# .SYNOPSIS AWS EventBridge event bus policy does not allow public access .DESCRIPTION EventBridge event bus resource policy is evaluated for **public access**, such as a `Principal: "*"` or overly broad conditions that allow any AWS account to publish events or manage rules on the bus. .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: eventbridge_bus_exposed [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check eventbridge_bus_exposed for reference.', 'N/A', 'eventbridge Resources') } |