Skip to content

Azure Cognitive Services account configured with local authentication

Description

This policy checks whether local authentication is disabled in Azure Cognitive Services accounts. Local authentication, when enabled, allows any authenticated user to make changes, regardless of location. This can be risky because it doesn't enforce additional security measures beyond basic authentication, and can potentially lead to unauthorized access, data breaches, and other security issues. Disabling local authentication strengthens security by requiring users to utilize more secure methods.

Code Example

go
resource "azurerm_cognitive_account" "example" {
  ...
+  local_auth_enabled = false
}

Remediation

Terraform

  • Resource: azurerm_cognitive_account
  • Arguments: local_auth_enabled

Set the `local_auth_enabled` parameter to false for the cognitive services resource.

Rule Details

FieldValue
IDIAC-0743
SeverityLOW
IaC Typearm
FrameworksTerraform, TerraformPlan
Checkov IDCKV_AZURE_236

References