Using shared authentication credentials expose IoT Hub to device impersonation by malicious actors.
In Azure Console -
In Terraform -
References:https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/iot_security_solution#shared_credentials