Quarantining Desktops with Flow

Quarantine places a VM in a restricted policy, giving the admin an option to either block all network traffic or allow a limited subset of traffic. Strict quarantine blocks a VM from all communication, while forensic quarantine allows a pre-defined list of inbound and outbound traffic. This capability can be very helpful in a virtual desktop environment when a VM has been impacted by malware.

In this lab we will place a desktop VM into quarantine and observe the behavior of the VM. We will also inspect the configurable options inside the quarantine policy to simulate troubleshooting an infected VM.

Categorizing the SecOps VM

  1. In Prism Central, select > Virtual Infrastructure > Categories.

  2. Select the checkbox for AppType and click Actions > Update.

    ../../../_images/126.png
  3. Click the icon beside the last value to add an additional Category value.

  4. Specify Initials-SecOps as the value name.

    ../../../_images/135.png
  5. Click Save.

  6. In Prism Central, select > Virtual Infrastructure > VMs.

  7. Use the checkbox to select the InitialsWinToolsVM and navigate to Actions > Manage Categories.

    ../../../_images/145.png
  8. Specify AppType:Initials-SecOps in the search bar and click Save icon to assign the category to the tools VM.

    ../../../_images/156.png

Accessing and Quarantining the Desktops

  1. From your Initials-WinToolsVM, open http://ddc.ntnxlab.local/Citrix/NTNXLABWeb in a browser to access the Citrix StoreFront server.

  2. Specify the following credentials and click Log On:

    • Username - NTNXLAB\devuser01

    • Password - nutanix/4u

  3. Select the Desktops tab and click your Personal Win10 Desktop to launch the session.

  4. In addition, Open a Command Prompt on your InitialsWinToolsVM and run ping -t XYZ-PD-1-VM-IP to verify connectivity between the windows tools client and the persistent desktop.

  5. In Prism Central > Virtual Infrastructure > VMs, select your Initials-PD-1 and Initials-PD-2 VMs .

  6. Click Actions > Quarantine VMs.

    ../../../_images/118.png
  7. Select Forensic and click Quarantine.

    What happens with the continuous ping between the Windows Tools VM and the desktop?

Creating a Custom Quarantine Policy

  1. In Prism Central, select > Policies > Security Policies > Quarantine to view all Quarantined VMs.

  2. Click Update to edit the Quarantine policy.

    To illustrate the capabilities of this special Flow policy, you will add your Windows Tools VM as a “forensic tool”. In production, VMs allowed inbound access to quarantined VMs could be used to run security and forensic suites such as Kali Linux or SANS SIFT.

  3. Click Next to navigate to the policy edit screen.

  4. Under Inbound, click + Add Source.

  5. Fill out the following fields:

    • Add source by: - Select Category

    • Specify AppType:Initials-SecOps

    ../../../_images/166.png
  6. Click Add

    To what targets can this source be connected? What is the difference between the Forensic and Strict quarantine mode?

    Note that adding a VM to the Strict Quarantine policy disables all inbound and outbound communication to a VM. The Strict policy would apply to an VMs whose presence on the network poses a threat to the environment.

  7. Click the icon to the left of Quarantine: Forensic to create an Inbound Rule.

  8. Click Save to allow any protocol on any port between the SecOps VM and the Quarantine: Forensic category.

    ../../../_images/178.png
  9. Click Next and click Apply Now to save and apply the updated policy.

    What happens to the pings to the desktop after the source is added?

  10. You can remove the desktop VM from the Quarantine: Forensic category by selecting the VMs in Prism Central and clicking Actions > Unquarantine VMs.

Takeaways

  • In this exercise you utilized Flow to quarantine desktop VMs using the two modes of the quarantine policy, which are strict and forensic.

  • Quarantine policies are evaluated at a higher priority than application policies. A quarantine policy can block traffic that would otherwise be allowed by an application policy.

  • Forensic mode is key to allow limited access a quarantined VM while the VM is quarantined.