> 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-virtual-machine-linux-does-not-authenticate-using-ssh-keys.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Virtual Machine (Linux) does not authenticate using SSH keys

### Synopsis

| Field               | Value                                                              |
| ------------------- | ------------------------------------------------------------------ |
| Rule Type           | Detection                                                          |
| Finding Type        | Azure Virtual Machine (Linux) does not authenticate using SSH keys |
| Finding ID          | 60000612                                                           |
| 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                                            |
| ATT\&CK Tactic      | TA0001 (TA0001)                                                    |
| ATT\&CK Technique   | T1133 (T1133)                                                      |

### Description

Azure Virtual Machines (Linux) lacking SSH key authentication are vulnerable to brute-force attacks. Basic authentication exposes these machines to unauthorized access attempts.

The service, Azure Virtual Machines, allows for both password-based and SSH key-based authentication. Disabling password authentication and relying solely on SSH keys significantly reduces the attack surface. Attackers can easily exploit weak or default passwords through brute-force attacks, gaining unauthorized access and potentially compromising sensitive data.

A successful brute-force attack can lead to data breaches, unauthorized modifications, and system compromise. Using SSH keys mandates stronger authentication, making brute-forcing significantly more difficult and enhancing overall security posture. This is a crucial best practice for securing Linux-based Virtual Machines.

To mitigate this misconfiguration, enforce SSH key-based authentication only on all Azure Virtual Machines. Disable password authentication completely. Regularly review and update SSH keys, and use strong, unique keys. Monitor for failed login attempts to detect potential brute-force attacks.

### Remediation

**Manual steps:**

Azure Virtual Machine - Manual remediation steps:

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, You may need to 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-virtual-machine-linux-does-not-authenticate-using-ssh-keys.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.
