Not having IP filtering configured could make IoT Hub more prone to attacks.
In Azure Console -
In Terraform -
References:https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/iot_security_solution#ip_filter_permissive_rule