Azure IoT Hub enables public network access misconfiguration detected in code
Rule Details
Cortex AppSec Rule ID
APPSEC_AZURE_108
Category - Subcategory
Public Exposure - APIs
Provider
AZURE
Severity
MEDIUM
Framework
Terraform, Terraform Plan
Impact
By ensuring that your IoT Hub is not public, you can help protect your data from unauthorized access or tampering. Public IoT Hubs are accessible over the internet, which can make them vulnerable to external threats such as hackers or malware. By making it private, you can help ensure that only authorized users can access the data.
How to Fix
Resource: azurerm_iothub
Arguments: public_network_access_enabled [source,go]
resource "azurerm_iothub" "example" { ...
public_network_access_enabled = false route { name = "export" source = "DeviceMessages" condition = "true" endpoint_names = ["export"] enabled = true } ... }
Last updated
Was this helpful?
