Azure AI Search service limits its data-plane endpoint by disabling public network access. This evaluation checks whether the service only permits connections via private endpoints or narrowly scoped, explicitly allowed sources.
Risk
Internet-reachable search endpoints impact CIA:
- Confidentiality: unauthorized queries reveal indexed data/metadata
- Integrity: stolen admin/query keys allow index changes or deletions
- Availability: abuse and scanning drive throttling and outages
prowler azure --checks aisearch_service_not_publicly_accessible
Recommendation
Set Public network access: Disabled. Prefer Private Link and restrict any residual exposure to specific sources only. Use least privilege with Microsoft Entra ID RBAC instead of keys. Apply defense in depth with IP rules/trusted services, enable logs, and review access lists regularly.
Remediation
az search service update --name <service_name> --resource-group <resource_group_name> --public-access disabled
- In the Azure portal, open your AI Search service
- Go to Settings > Networking
- Under Public network access, select Disabled
- Click Save
- Wait a few minutes and re-run the check
Source Code
Resource Type
microsoft.search/searchservices
References
- https://learn.microsoft.com/en-us/security/benchmark/azure/baselines/azure-cognitive-search-security-baseline
- https://www.azadvertizer.net/azpolicyadvertizer/9cee519f-d9c1-4fd9-9f79-24ec3449ed30.html
- https://learn.microsoft.com/en-us/azure/search/service-configure-firewall#configure-network-access-in-azure-portal