For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/default_rules/def-000-937.md. A documentation index is available at /llms.txt.

Security Group should restrict HTTP(S) access from the internet

Description

Azure network security groups should restrict HTTP and HTTPS access from the internet. Exposing these ports without an explicit need increases the risk of unauthorized access to Azure resources.

A network security group fails when an inbound Allow rule opens port 80 or 443 to the internet and no higher-priority Deny rule blocks it. This rule treats *, 0.0.0.0/0, ::/0, Internet, and Any as internet sources. It counts port ranges that include these ports, and security rules with the TCP, UDP, or Any protocol. It does not evaluate security rules that list multiple source address prefixes, or just-in-time (JIT) access rules created by Microsoft Defender for Cloud.

Remediation

Delete each inbound Allow rule that opens port 80 or 443 to the internet, or change its source to specific IP addresses. See Create, change, or delete Azure network security groups.

References