For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

Azure MariaDB database server not using latest TLS version misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC2_AZURE_37

Category - Subcategory

Public Exposure - Encryption And Protocols

Provider

AZURE

Severity

LOW

Framework

Terraform, Terraform Plan

Mapped CSPM/KSPM Rule

b131d726-d82a-4cbd-9f29-68e3ac2ed8a4

Impact

This rule is checking to ensure that the Azure MariaDB server is using the latest version of TLS (Transport Layer Security), which is version 1.2. This is important because using outdated versions can expose the server to known vulnerabilities and security threats. TLS is a protocol used for securing communication over a network by encrypting the data sent between two systems to prevent potential eavesdropping, tampering, or message forgery. If an older version of TLS is used, it could lead to compromised data and impact the privacy and integrity of data transmission. Therefore, it is vital to guarantee the usage of the most recent version.

How to Fix

Resource: azurerm_mariadb_server

  • Arguments: ssl_enforcement_enabled, ssl_minimal_tls_version_enforced

To fix this issue, you should ensure that the 'ssl_enforcement' option is set to "Enabled" and the 'ssl_minimal_tls_version_enforced' option is set to "TLS1_2" in the Azure MariaDB server block.

The above code is secure because it enforces SSL/TLS by making sure that all data flowing between the client and the server is encrypted. Furthermore, it enforces the server to use the latest and most secure version of TLS, the TLS 1.2. Using the latest version of TLS (1.2) or higher to encrypt data-in-transit is particularly crucial, because it offers enhanced security over older versions. [source,go]

resource "azurerm_mariadb_server" "example" { ... ssl_enforcement_enabled = true ssl_minimal_tls_version_enforced = "TLS1_2" }

Last updated

Was this helpful?