Security Center Pricing Tier Is Not Standard

  • Query id: 819d50fd-1cdf-45c3-9936-be408aaad93e
  • Query name: Security Center Pricing Tier Is Not Standard
  • Platform: Terraform
  • Severity: Medium
  • Category: Insecure Configurations
  • CWE: 665
  • URL: Github

Description

Make sure that the 'Standard' pricing tiers were selected.
Documentation

Code samples

Code samples with security vulnerabilities

Positive test num. 1 - tf file
resource "azurerm_security_center_subscription_pricing" "positive1" {
   tier = "Free"
}

Code samples without security vulnerabilities

Negative test num. 1 - tf file
resource "azurerm_security_center_subscription_pricing" "negative1" {
   tier = "Standard"
}