🛡️ Azure Managed Disk Public Network Access is not disabled🟢
- Contextual name: 🛡️ Managed Disk Public Network Access is not disabled🟢
- ID:
/ce/ca/azure/virtual-machine/disable-managed-disk-public-network-access - Tags:
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logic
Similar Policies
- Internal:
dec-x-b17c005c
Similar Internal Rules
| Rule | Policies | Flags |
|---|---|---|
| ✉️ dec-x-b17c005c | 1 |
Description
Description
Virtual Machine Disks and snapshots can be configured to allow access from different network resources.
Rationale
The setting
Enable public access from all networksis, in many cases, an overly permissive setting on Virtual Machine Disks that presents atypical attack, data infiltration, and data exfiltration vectors. If a disk to network connection is required, the preferred setting is toDisable public access and enable private access.Impact
The setting
Disable public access and enable private accesswill require configuring a private link (URL in references below).The setting
Disable public and private accessis most secure and preferred where disk network access is not needed.Audit
From Azure Portal
Part A. Select the Virtual Machine to Evaluate
- Using the search bar, search for and open the
Virtual Machinesservice.- Click on the name of the Virtual Machine to be audited.
Part B. Evaluate each Virtual Machine Disk individually
- From the selected Virtual Machine resource window, expand the
Settingsmenu item and clickDisks.... see more
Remediation
Remediation
From Azure Portal
Part A. Select the Virtual Machine to Remediate
- Using the search bar, search for and open the
Virtual Machinesservice.- Click on the name of the Virtual Machine to be remediated.
Part B. Remediate each Virtual Machine Disk individually
- From the selected Virtual Machine resource window, expand the
Settingsmenu item and clickDisks.- For each disk, click the name of the disk to open the disk resource window.
- From the selected Disk resource window, expand the
Settingsmenu item, and clickNetworking.Under Network access, select the radio button for either:
- Disable public access and enable private access
- Disable public and private access
Repeat Part B for each Disk attached to a VM.
Repeat Parts A and B to remediate all Disks in all VMs.
From Azure CLI
To configure a disk to allow private access only, run the following command making sure you have the
Disk Access IDfrom a private disk access end point:az disk update --name <managed disk name> --resource-group <resource group name> --network-access-policy AllowPrivate --disk-access <disk access ID>
... [see more](remediation.md)