Dark Reading is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them.Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Vulnerabilities / Threats

Tech Insight: Retooling Vulnerability Scanning, Penetration Testing For IPv6

Traditional host discovery via network scanning won't work with IPv6, but alternative methods are available

IPv6 brings some welcome security and other features, but there are some 'gotchas' for IP professionals that may not be immediately apparent.

The next generation IPv6 protocol has been "coming soon" for the last decade and is finally nearing the point of necessity as IPv4 addresses get closer to exhaustion. Many hail it as the next great thing for security because of nifty features like native IPSec support.

But it will also bring challenges for security pros, namely in vulnerability scanning and penetration testing. With the addition of all of this new IP space afforded by IPv6, scanning each IP to determine which hosts are up, and then performing a vulnerability scan, would take years. Host discovery through traditional means of network scanning -- host by host and subnet by subnet -- will go away. Instead, new host discovery methods will need to be put in place to make vulnerability scanning more targeted.

Fortunately, there are several techniques that can be used based on existing hardware and software tools. With little to no extra cost, it's possible to determine which IPs are in use on the network without scanning. You can then feed the discovered IPs into the vulnerability scanner so the scanner can spend more time on vulnerability scanning, and not on host discovery.

When looking for other hosts on the local network segment, IPv4's ARP was the usual method, but it's going away with IPv6. ARP's functionality is being replaced by IPv6's new Neighbor Discovery Protocol (NDP) within ICMPv6. There are several different functions in NDP, but in relation to host discovery, it can be used to discover other IPv6 hosts on the local network segment.

The limitation with NDP is it only finds hosts on the local network segment, which is great if you have a flat network. But in large, geographically diverse enterprises, it doesn't work across routers. To work around the problem segmented networks pose, you can issue those commands through a host on each network segment, or from a router with access to each segment.

From a penetration testing perspective, NDP can be used once access is gained into the network through physical access or compromise of an internal host. Attackers can leverage NDP to start finding other juicy targets to compromise that could provide deeper penetration into the network.

Network flow data is a commonly overlooked source of valuable information in a network. It provides a record of all network traffic on the network without recording the content. Most business-class and practically all enterprise-class routers and layer 3 switches support exporting network flow data. Using network flow records, it is easy to identify all hosts that have been communicating on the network during any given time period.

Armed with the hosts enumerated through network flow data, vulnerability scanning can commence and target only those hosts that are communicating during the last hour.

Some commercial vulnerability scanning and vulnerability management solutions such as Tenable's Security Center already have features to scan known hosts and new hosts as they are seen for the first time. Similarly, most network behavioral analysis products use network flow data and can initiate a vulnerability scan of hosts seen for the first time or acting outside of their normal baseline of behavior.

IPv6 IP addresses also are going to cause the Domain Name System (DNS) to become increasingly important, as IP addresses become nearly impossible to remember. In Microsoft Active Directory domains, DNS records are updating dynamically, so hostnames can be provided to a scanner instead of a list of IPs.

Interrogating DNS services using tools like Fierce will also become essential for penetration testers outside the network who don't have access to NDP and network flow data.

The Dynamic Host Configuration Protocol (DHCP) will also serve as a good source of host information for those networks using DHCPv6 to allocate site-local IP addresses to their internal hosts. DHCP server logs can be queried to see which IPs have been allocated, and to limit scans to only those IPs.

Systems and network administrators who are holding off as long as possible to deploy IPv6 are sticking their heads in the sand and ignoring the reality that IPv6 is already on their network. The inclusion of a fully functional IPv6 network stack in all modern operating systems including Windows, Mac OS X, and Linux means that even though IPv6 may not be routed across the network and Internet gateway, it can still be used for attacks on local network segments.

Penetration testers have realized this for several years, and tools like the Metasploit Framework have supported IPv6 since 2008. Once a host is compromised, IPv6 can be used to connect and exploit other systems on the local network segment. The root causes: host-based firewalls may not support IPv6, or the systems administrators didn't realize services often will listen on IPv4 and IPv6 and they only bothered to lock down the IPv4 side.

Intrusion detection and prevention systems (IDS/IPS) may also be leaving security teams blind to internal attacks carried over IPv6. Commercial and open source IDS and IPS solutions are adding support for IPv6 but it doesn’t exist across the board yet. Snort, for example, is an open source IDS on which many commercial products are based and it includes support for IPv6. But support is not enabled by default, and many of the available reporting tools do not support IPv6.

Whether you think you're running IPv6 or not, it's time to prepare for the impact it will have on your security efforts now and in the near future. Vulnerability management efforts will need to adapt, and hardening of hosts will require ensuring that both IPv4 and IPv6 are both locked down.

Have a comment on this story? Please click "Discuss" below. If you'd like to contact Dark Reading's editors directly, send us a message.


Recommended Reading:

Comment  | 
Print  | 
More Insights
Newest First  |  Oldest First  |  Threaded View
COVID-19: Latest Security News & Commentary
Dark Reading Staff 7/6/2020
Ripple20 Threatens Increasingly Connected Medical Devices
Kelly Sheridan, Staff Editor, Dark Reading,  6/30/2020
DDoS Attacks Jump 542% from Q4 2019 to Q1 2020
Dark Reading Staff 6/30/2020
Register for Dark Reading Newsletters
White Papers
Current Issue
How Cybersecurity Incident Response Programs Work (and Why Some Don't)
This Tech Digest takes a look at the vital role cybersecurity incident response (IR) plays in managing cyber-risk within organizations. Download the Tech Digest today to find out how well-planned IR programs can detect intrusions, contain breaches, and help an organization restore normal operations.
Flash Poll
The Threat from the Internetand What Your Organization Can Do About It
The Threat from the Internetand What Your Organization Can Do About It
This report describes some of the latest attacks and threats emanating from the Internet, as well as advice and tips on how your organization can mitigate those threats before they affect your business. Download it today!
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
PUBLISHED: 2020-07-07
MobileIron Core and Connector before, 10.4.x before, 10.5.x before, 10.5.2.x before, and 10.6.x before, and Sentry before 9.7.3 and 9.8.x before 9.8.1, allow remote attackers to execute arbitrary code via unspecified vectors.
PUBLISHED: 2020-07-07
MobileIron Core and Connector before, 10.4.x before, 10.5.x before, 10.5.2.x before, and 10.6.x before allow remote attackers to bypass authentication mechanisms via unspecified vectors.
PUBLISHED: 2020-07-07
MobileIron Core and Connector before, 10.4.x before, 10.5.x before, 10.5.2.x before, and 10.6.x before allow remote attackers to read files on the system via unspecified vectors.
PUBLISHED: 2020-07-07
In Electron before versions 6.1.1, 7.2.4, 8.2.4, and 9.0.0-beta21, there is a context isolation bypass, meaning that code running in the main world context in the renderer can reach into the isolated Electron context and perform privileged actions. Apps using "contextIsolation" are affecte...
PUBLISHED: 2020-07-07
In Electron before versions 7.2.4, 8.2.4, and 9.0.0-beta21, arbitrary local file read is possible by defining unsafe window options on a child window opened via window.open. As a workaround, ensure you are calling `event.preventDefault()` on all new-window events where the `url` or `options` is not ...