Azure Bastion shareable links should not be permitted

This page is not yet available in Spanish. We are working on its translation.
If you have any questions or feedback about our current translation project, feel free to reach out to us!

Description

Azure Bastion public links can allow remote access to Azure VMs from untrusted networks. An attacker with a Contributor role or similar level of access on an Azure Bastion could generate a public link to establish persistent connections to Azure VMs.

Rationale

This detection identifies Azure Bastion hosts with enable_shareable_link set to true.

Remediation

  1. Evaluate the need for public links for your Bastion. Allowing public links is not required for general Azure Bastion usage.
  2. If not required, disable the “Shareable link” setting by unchecking the box under the Bastion’s configuration settings.