More Info:

Ensure that your Microsoft Azure virtual machine scale sets are configured to receive instance termination notifications through the Azure Metadata service and have a predefined delay timeout configured for the “Terminate” operation (event). The termination notifications are delivered through Scheduled Events, an Azure Metadata feature which sends termination notifications, and can also be used to delay impactful operations such as reboots and redeployments. The delay associated with the “Terminate” event will depend on the delay limit specified in the VM scale set model configuration.

Risk Level

High

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To remediate the misconfiguration of not having Just-In-Time (JIT) access enabled for virtual machines in Azure, you can follow the below steps using Azure Portal:

  1. Log in to the Azure Portal (https://portal.azure.com/).
  2. Navigate to the virtual machine for which you want to enable JIT access.
  3. From the left-hand side menu, select “Security + networking”.
  4. Under the “Security” section, select “Just-in-time VM access”.
  5. On the Just-in-time VM access page, click on “Enable JIT on VM”.
  6. In the “Basic settings” section, select the “On” radio button to enable JIT access.
  7. In the “Advanced settings” section, configure the following settings:
    • Maximum JIT access time: Set the maximum time for which the JIT access request will be valid.
    • Ports: Select the ports that you want to open for JIT access.
    • IP address: Select the IP address range from which you want to allow JIT access.
  8. Click on the “Review + create” button to review the JIT access settings.
  9. Once you have reviewed the settings, click on the “Create” button to enable JIT access for the virtual machine.

Once JIT access is enabled, users can request access to the virtual machine by clicking on the “Request access” button on the Just-in-time VM access page. The request will be reviewed and approved by an authorized user before access is granted.