---
title: Serial port connection for VM instances should be disabled
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > Serial port connection for VM instances
  should be disabled
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Serial port connection for VM instances should be disabled
 
## Description{% #description %}

Keep interactive serial console access disabled on Compute Engine instances. The serial console does not support IP-based access restrictions, so anyone who has a valid SSH key and knows the project, zone, and instance name can try to connect from any IP address. This rule fails when `serial-port-enable` is true in instance metadata, or when project metadata sets it to true and the instance does not set a valid value of its own. An instance value overrides the project value. Metadata values are read as Compute Engine booleans: `TRUE`, `Y`, `Yes`, or `1` for true and `FALSE`, `N`, `No`, or `0` for false, in any letter case. Zonal metadata and the `compute.disableSerialPortAccess` organization policy are not evaluated, so an instance can fail even when that policy blocks serial port access.

## Remediation{% #remediation %}

1. Set `serial-port-enable` to `FALSE` or remove it in the project metadata and in the metadata of the flagged instance.
1. Optionally, enforce the `compute.disableSerialPortAccess` organization policy to block serial port access for every instance.

For more information, see [Disabling interactive serial console access](https://docs.cloud.google.com/compute/docs/troubleshooting/troubleshooting-using-serial-console#disable_access).

## References{% #references %}

- [Troubleshooting using the serial console](https://docs.cloud.google.com/compute/docs/troubleshooting/troubleshooting-using-serial-console#disable_access)
- [Boolean values](https://docs.cloud.google.com/compute/docs/metadata/setting-custom-metadata#boolean)
- [CIS Google Cloud Platform Foundation Benchmark](https://www.cisecurity.org/benchmark/google_cloud_computing_platform)
