Sign in
Menu
Sign up
Docs
Azure compliance controlsAzure Virtual Network

Network security groups should limit inbound TCP port 23 access from the internet

Uses Trivy check `AZU-0047` to evaluate network security group rules. The check flags any rule that allows unrestricted ingress from any IP address, so that traffic is not accepted from every source on the internet.

Opening up ports to allow connections from the public internet is generally to be avoided. You should restrict access to IP addresses or ranges that are explicitly required where possible.

What this control checks

Trivy AZU-0047 says a security group rule should not allow unrestricted ingress from any IP address. Its Terraform example sets a restrictive address prefix, sets an Inbound rule, and sets access to Allow.

Audit evidence

Evidence that deployed resources meet this control: PowerPipe control azure_compliance.control.network_security_group_restrict_inbound_tcp_port_23.

Scans of the Terraform code that flag the same setting before deployment: Trivy check AZU-0047.

Tool mappings

Use these identifiers to cross-reference this control across tools, reports, and evidence.

  • Compliance.tf Control: network_security_group_restrict_inbound_tcp_port_23
  • Powerpipe Control: azure_compliance.control.network_security_group_restrict_inbound_tcp_port_23
  • Trivy Check: AZU-0047

Last reviewed: 2026-10-13

View all Azure controls →

On this page

Ask AI about this

Help improve this page