> 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-configured-with-public-ip-and-serial-console-access.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Virtual machine configured with public IP and serial console access

### Synopsis

| Field               | Value                                                                     |
| ------------------- | ------------------------------------------------------------------------- |
| Rule Type           | Detection                                                                 |
| Finding Type        | Azure Virtual machine configured with public IP and serial console access |
| Finding ID          | 60000829                                                                  |
| 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 Virtual Machines with public IPs and enabled serial console access pose a significant security risk. Serial console access, when combined with a public IP address, allows unauthorized remote access to the Virtual Machine, bypassing typical network security controls.

The serial console provides a direct connection to the Virtual Machine's serial port, offering a path for attackers to execute arbitrary code and gain elevated privileges. An attacker exploiting this misconfiguration could achieve complete control of the Virtual Machine, potentially leading to data breaches, lateral movement within the network, or denial-of-service attacks.

The impact of this misconfiguration is substantial, ranging from unauthorized access and data exfiltration to complete system compromise. Restricting serial console access to trusted IPs mitigates this risk significantly. By limiting access, even with a public IP, only authorized personnel can utilize this feature.

To remediate, disable serial console access for all Virtual Machines that do not require it. For those Virtual Machines that need serial console, restrict access to trusted IP addresses only. Regularly review and audit these configurations to maintain a secure environment and prevent unauthorized access.

### Remediation

To disable/restrict serial console access on the reported VM instance, follow bellow URL: <https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/serial-console-enable-disable>


---

# 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-configured-with-public-ip-and-serial-console-access.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.
