Benchmark: CORS Policy Public Access
This benchmark answers the following questions:
- Are there Cosmos DB accounts with CORS policies that allow public access?
- Are there Web Apps with CORS policies that allow public access?
- Are there Function Apps with CORS policies that allow public access?
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-azure-perimeter
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select CORS Policy Public Access.
Run this benchmark in your terminal:
powerpipe benchmark run azure_perimeter.benchmark.cors_policy_public_access
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run azure_perimeter.benchmark.cors_policy_public_access --share
Controls
- App Service Function App CORS policies should prohibit public access
- App Service Web App CORS policies should prohibit public access
- Cosmos DB account CORS policies should prohibit public access