What is VMware NSX SpoofGuard
VMware NSX includes many great features that help to bolster an organizationโs security posture at a network level.ย It allows the abstracting of network and security functionality from the underlying physical network infrastructure.ย We often talk about microsegmentation with VMware NSX and the security benefits that it provides to tiers of applications.ย A lesser known feature of VMware NSX is SpoofGuard.ย In this post, we will take a look at What is VMware NSX SpoofGuard and the configuration of this feature in VMware NSX.
What is VMware NSX SpoofGuard?
A tool that attackers often use to penetrate networks is spoofing legitimate traffic on a network so that traffic appears to be coming from a trusted source on a network.ย This is often referred to as ARP spoofing.ย The attacker attempts to link a malicious ARP address to a legitimate IP address.
With VMware NSX SpoofGuard, VMware NSX keeps track of ARP addresses to IP addresses and if these change.ย This way, if there is an unexpected change of IP address to ARP address, the system can be blocked automatically.ย VMware NSX SpoofGuard allows for the creation of specific networks and gives administrators the ability to allow certain IP addresses.ย SpoofGuard monitors by means of a couple of mode settings:
- Automatically trust IP assignments on their first use (TOFU) โ This mode trusts the first IP address reported to the NSX Manager.
- Manually inspect and approve all IP assignment before use โ This presents the set of IP addresses discovered for approval by users. This mode blocks all traffic by default.
With DHCP environments the โtrust on first useโ is not recommended as IP addresses are dynamic and will be changing in a dynamic fashion.ย This does not lend itself to the TOFU, since it would only trust the first IP address used by the virtual machine.
Configuring VMware NSX SpoofGuard
The configuration of VMware NSX SpoofGuard is very simple and is only a few clicks worth of configuration to enable it.ย Under Networking & Securityย >> SpoofGuard we are able to see and configure the settings of SpoofGuard.ย By default, it is disabled.ย If we click theย Change button below, we are able to change the Global IP Detection Type.
In theย Change Global IP Detection Type dialog box, we selectย ARP Snooping.
Now, we see ARP listed in the detection type.ย Clickย Default Policy and then click the “Pencil” icon to edit SpoofGuard.
Here we enable SpoofGuard.ย To do that, you simply change the radio button toย Enabled and select theย Operation Mode.ย In DHCP environments, TOFU is generally not the recommended mechanism since IP addresses will change from time to time.ย The manual means of allowing IP addresses will most likely be automated in large dynamic environments.
Also, note the checkbox at the bottom to allow local addresses.ย Virtual machines will at first configure a link local IP address in the form ofย 169.254.0.0/16 or IPv6 address ofย fe80::/64.ย This setting allows these to be included in the allowed IP addresses.
Below, we see the default policy enabled and we already see our active IP addresses showing up in the table.ย They will come across as automatically approved.
Thoughts
If you are new to VMware NSX and wondering What is VMware NSX SpoofGuard, hopefully this high level overview will help with a general understanding of the purpose of this functionality in NSX as well as the quick and easy way to get it enabled and running.ย ARP spoofing is a tried and true method attackers often use to gain access to production systems while on a network.ย VMware NSX SpoofGuard creates a security mechanism to establish a trust between an ARP address and IP address based on chosen metrics and then applying policy when that relationship is broken.