Cortex CloudApplication Security
Network interfaces use public IPs misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC_AZURE_119
Category - Subcategory
Public Exposure - VPC VCN VNet
Provider
AZURE
Severity
LOW
Framework
Terraform, Terraform Plan
Impact
A public IP address is an IPv4 address that is reachable from the Internet. You can use public addresses for communication between your instances and the Internet. We recommend you control whether your network interfaces are required to use a public IP address.
How to Fix
Resource: azurerm_network_interface
Arguments: ip_configuration.public_ip_address_id (not exists) [source,go]
resource "azurerm_network_interface" "example" { name = "example-nic" location = azurerm_resource_group.example.location resource_group_name = azurerm_resource_group.example.name
ip_configuration { name = "internal" subnet_id = azurerm_subnet.example.id private_ip_address_allocation = "Dynamic" } ip_configuration { name = "internal2" subnet_id = azurerm_subnet.example.id2 private_ip_address_allocation = "Dynamic" } enable_ip_forwarding = false }
PreviousAzure Virtual machine NIC has IP forwarding enabled misconfiguration detected in code
NextAzure cognitive search does not disable public network access misconfiguration detected in code
Last updated
Was this helpful?
