> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-sql-on-virtual-machine-linux-with-basic-authentication.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure SQL on Virtual Machine (Linux) with basic authentication

### Synopsis

| Field               | Value                                                          |
| ------------------- | -------------------------------------------------------------- |
| Rule Type           | Detection                                                      |
| Finding Type        | Azure SQL on Virtual Machine (Linux) with basic authentication |
| Finding ID          | 60000798                                                       |
| Generates a Finding | This detection rule also generates a finding                   |
| Severity            | Medium                                                         |
| Category            | CONFIGURATION                                                  |
| Cloud Providers     | AZURE                                                          |
| Platform Module     | CSPM                                                           |
| Asset Types         | AZURE\_VIRTUAL\_MACHINE                                        |

### Description

Azure SQL databases hosted on Linux Virtual Machines using basic authentication are susceptible to brute-force attacks. Attackers can exploit this misconfiguration to gain unauthorized access to sensitive data.

The service involves SQL Server running on an Azure Virtual Machine using the basic authentication method. This method lacks strong security controls, making it vulnerable to credential stuffing and brute-force attacks. Successful attacks could lead to data breaches, unauthorized database modifications, and complete server compromise.

A successful attack could result in data exfiltration, data modification, or complete control of the database and potentially the Virtual Machine. Implementing strong authentication mechanisms like SSH keys significantly reduces the attack surface by eliminating the possibility of easily guessed or brute-forced credentials.

To mitigate this risk, enforce SSH key-based authentication for all Azure Virtual Machines hosting SQL Server. Regularly review and update access controls, disabling basic authentication entirely. Implement robust logging and monitoring to detect suspicious login attempts promptly.

### Remediation

To configure existing Azure Virtual machine with SSH key authentication, Follow below URL: <https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/vmaccess#update-ssh-key>

If changes are not reflecting you may need to take backup, Create new virtual machine with SSH key based authentication and delete the reported virtual machine.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-sql-on-virtual-machine-linux-with-basic-authentication.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
