Perimeter
2/3/2012
02:19 PM
John H. Sawyer
John H. Sawyer
Commentary
Connect Directly
RSS
E-Mail
50%
50%
Repost This

Passive Network Fingerprinting; p0f Gets Fresh Rewrite

Passive network analysis can reveal OS, service, and even vulnerabilities -- just by sniffing the network

In the network security world, nmap is the king for fingerprinting systems and services over the network. It can help identify the operating system (OS), type, and version of a network service, and vulnerabilities that might be present. The problem with nmap is that it generates a lot of "noise" when it performs those activities because it has to send out packets to the system in question to learn more about it. Nmap is an example of an active fingerprinting tool.

There are less noisy alternatives to nmap that fall into the passive fingerprinting category. Instead of actively sending packets to a host and service, they passively analyze network traffic to identify unique characteristics for particular operating systems, client applications, and network services. Their strength is based on the breadth of their signature database, which is not always great. To date, the majority of free and open-source passive fingerprinting tools have focused on OS fingerprinting

Passive fingerprinting can go way beyond just identifying the operating system. Web and mail servers often give up more information than necessary when communicating with clients, and in general, as long as that traffic is unique and can be sniffed, a fingerprint can be created to identify it. The same goes for Web browsers, email clients, and any other application that communicates over the network. Often their version numbers are passed as part of their communications with servers. Tie that version information with a vulnerability database and vulnerable systems can start being identified without ever interacting with the system.

To date, PRADS is the one of the few open-source tools I've found that currently includes fingerprinting additional things like services; however, Michal Zalewski announced on Jan. 10 the availability of p0f v3, which includes the ability to fingerprint TCP services. This is the first release in about six years and is a complete rewrite. This new version currently supports HTTP response and request signatures, but additional protocols are expected to be added in the future.

The obvious difficulty with passive fingerprinting is the need to sniff the traffic, but if you're just monitoring traffic between yourself and another system, that's not an issue. In larger environments, you'll want to leverage a mirror port on a network switch or a network tap in order to see as much traffic as possible. The cool thing about p0f is that it can help find NAT devices in large environments where you might have users plugging in wireless routers.

There's a lot of value and fun that can be had through passive fingerprinting. I'll be discussing it more in the future as I start working on a project specific to mobile devices and application fingerprinting. For a quick preview and review on passive fingerprinting, check out my FireTalk, "Passive Aggressive Pwnage," at ShmooCon 2012.

John Sawyer is a Senior Security Analyst with InGuardians. The views and opinions expressed in this blog are his own and do not represent the views and opinions of his employer. He can be reached at johnhsawyer@gmail.com and found on Twitter @johnhsawyer.

Comment  | 
Print  | 
More Insights
Register for Dark Reading Newsletters
White Papers
Flash Poll
Current Issue
Video
Slideshows
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2008-3277
Published: 2014-04-15
Untrusted search path vulnerability in a certain Red Hat build script for the ibmssh executable in ibutils packages before ibutils-1.5.7-2.el6 in Red Hat Enterprise Linux (RHEL) 6 and ibutils-1.2-11.2.el5 in Red Hat Enterprise Linux (RHEL) 5 allows local users to gain privileges via a Trojan Horse p...

CVE-2010-2236
Published: 2014-04-15
The monitoring probe display in spacewalk-java before 2.1.148-1 and Red Hat Network (RHN) Satellite 4.0.0 through 4.2.0 and 5.1.0 through 5.3.0, and Proxy 5.3.0, allows remote authenticated users with permissions to administer monitoring probes to execute arbitrary code via unspecified vectors, rela...

CVE-2011-3628
Published: 2014-04-15
Untrusted search path vulnerability in pam_motd (aka the MOTD module) in libpam-modules before 1.1.3-2ubuntu2.1 on Ubuntu 11.10, before 1.1.2-2ubuntu8.4 on Ubuntu 11.04, before 1.1.1-4ubuntu2.4 on Ubuntu 10.10, before 1.1.1-2ubuntu5.4 on Ubuntu 10.04 LTS, and before 0.99.7.1-5ubuntu6.5 on Ubuntu 8.0...

CVE-2012-0214
Published: 2014-04-15
The pkgAcqMetaClearSig::Failed method in apt-pkg/acquire-item.cc in Advanced Package Tool (APT) 0.8.11 through 0.8.15.10 and 0.8.16 before 0.8.16~exp13, when updating from repositories that use InRelease files, allows man-in-the-middle attackers to install arbitrary packages by preventing a user fro...

CVE-2013-4768
Published: 2014-04-15
The web services APIs in Eucalyptus 2.0 through 3.4.1 allow remote attackers to cause a denial of service via vectors related to the "network connection clean up code" and (1) Cloud Controller (CLC), (2) Walrus, (3) Storage Controller (SC), and (4) VMware Broker (VB).

Best of the Web