In the digital world, there are ways to analyze fingerprints as well—but in this sense we’re talking about OS, network and service fingerprints.
IOS 12 and below has a quirk that does not exist in Mac OS. The quirk is that the volume property of an Audio element cannot be successfully set to any value other than 1. This is because Apple does not allow volume changes on the Audio element for iOS devices, but does for Mac OS. That quirk can be used as the final fallback method for.
In this article we’ll explore what a fingerprint is in cyber security, different types of fingerprint techniques, and some of the most popular fingerprinting tools in use.
Fingerprints in the digital world are similar to what human fingerprints are in the real world. Simply put, a fingerprint is a group of information that can be used to detect software, network protocols, operating systems or hardware devices.
Fingerprinting (also known as footprinting) is the art of using that information to correlate data sets in order to identify—with high probability—network services, operating system number and version, software applications, databases, configurations and more.
Once the penetration tester has enough information, this fingerprinting data can be used as part of an exploit strategy against the target.
In order to detect OS, networks, services and application names and numbers, attackers will launch custom packets to the target. These packets will receive a response from the victim in the form of a digital signature. This signature is one of the keys to identify what software, protocols and OS is running the target device.
Once the attackers have the right information, they know your scenario, and can create a full infrastructure map of all your services and possible network topology to fine-tune their digital assault.
Just as there are many human fingerprinting techniques used to extract information from certain scenarios, in the digital world there are many ways to analyze digital fingerprints from hosts.
Most digital fingerprinting techniques are based on detecting certain patterns and differences in network packets generated by operating systems.
Fingerprint techniques often analyze different types of packets and information such as TCP Window size, TCP Options in TCP SYN and SYN+ACK packets, ICMP requests, HTTP packets, DHCP requests, IP TTL values as well as IP ID values, etc.
Active fingerprinting is the most popular type of fingerprinting in use. It consists of sending packets to a victim and waiting for the victim’s reply to analyze the results.
This is often the easiest way to detect remote OS, network and services. It’s also the most risky as it can be easily detected by intrusion detection systems (IDS) and packet filtering firewalls.
A popular platform used to launch active fingerprint tests is Nmap. This handy tool can help you detect specific operating systems and network service applications when you launch TCP, UDP or ICMP packets against any given target.
By using internal scripting rules, Nmap analyzes the results from the victim replies, then prints out the results—which are 99% of the time accurate.
Port scanning is one of the most traditional forms of fingerprinting. We’ve recognized Nmap as one of the best port scanners around, as seen in our previous article Top 15 Nmap Commands to Scan Remote Hosts.
Passive fingerprinting is an alternative approach to avoid detection while performing your reconnaissance activities.
The main difference between active and passive fingerprinting is that passive fingerprinting does not actively send packets to the target system. Instead, it acts as a network scanner in the form of a sniffer, merely watching the traffic data on a network without performing network alteration.
Once the attacker has sniffed enough information, it can be analyzed to extract patterns that will be useful for detecting operating systems and applications.
While this type of technique may bypass common network intrusion detection techniques, it’s not guaranteed to hide your network presence while sniffing traffic.
When it comes to cybersecurity fingerprinting, one of the most popular methods involves OS name and version detection.
This is part of the usual data intelligence process when running your OSINT research. While many tools may fit into this particular category, a few stand out from the rest.
Let’s look at some active and passive OS fingerprinting tools.
It’s impossible for us to avoid mentioning one of the best port scanners in the world in this list. Nmap includes many features as a port scanner, but also as an OS detection software.
How can I detect a remote operating system with Nmap?
The -O
option will make this happen. By using Nmap fingerprinting features, you enable OS detection in your scans. There are two sub-options that can be used as well:
--osscan-limit
: Limit OS detection to promising targets. When using this option, Nmap OS detection is way more effective when Nmap finds at least one open and one closed TCP port. It’s the fastest option available for performing reconnaissance tasks.
--osscan-guess
: This guess OS detection results when Nmap is unable to detect the exact OS the remote system is running. While this may not show you the exact remote OS, Nmap will let you know the exact the accuracy/confidence level (percentage) for each OS guess.
Let’s see how to perform a basic OS detection with Nmap:
nmap -O X.X.X.X
The result may look similar to this:
As you can see in this example, Nmap was able to detect running services in open ports, as well as apply an aggressive guessing of the remote operating system.
In case there is a firewall blocking your request, you can add the -Pn
option, as shown below:
nmap -O X.X.X.X -Pn
A more aggressive approach can be taken by using -A
option, but this will likely result in firewall detection from the remote host:
nmap -A X.X.X.X
P0f is a great alternative to Nmap, a passive fingerprinting tool used to analyze network traffic and identify patterns behind TCP/IP based communications that are often blocked for Nmap active fingerprinting techniques.
It includes powerful network-level fingerprinting features, as well as one that analyzes application-level payloads such as HTTP. It’s also useful for detecting NAT, proxy and load balancing setups.
P0f installation is very easy. It only requires you to download the compressed file and then run ./build.sh
, as seen here:
Our tests revealed significant and sensitive information about the outgoing TCP connections to remote servers, as well as port numbers of local services and operating system version:
You can also read offline pcap data from a given file by using:
./p0f -r some_capture.cap
This passive fingerprinting tool includes more options that can be explored by running ./p0f --help
Ettercap is another great network sniffing tool that supports many different protocols including Telnet, FTP, Imap, Smb, MySQL, LDAP, NFS and encrypted ones like SSH and HTTPS.
While it’s often used to launch man-in-the-middle attacks, it’s also useful as a fingerprinting tool that can help identify local and remote operating systems along with running services, open ports, IP, mac address and network adapter vendor.
Ettercap can be easily installed on most Unix/Linux platforms. In order to perform OS and service detection, it will sniff your entire network (e.g. visited websites), and save the results in profiles. From there you can begin exploring information from all the intercepted hosts, as you can see in the following screenshots:
We checked a few hosts. In the following example, fedoraproject.org was analyzed, revealing a few interesting details such as IP address, hostname, type of host, operating system (in this case it wasn’t detected), operating system guess, open ports, and running services.
When it comes to cybersecurity fingerprinting we can do more than detect remote OS names and versions—we can also focus on specific network services.
Some tools like Fpdns can be used to identify based on queries DNS the software that is used as the DNS server, even if we disable printing the version of BIND for example.
How can I remotely determine the DNS server version of any website?
To do so you can run the following command:
fpdns -D site.com
Output example:
As seen from the previous image, there are times when you won’t not get the DNS server name and version for some websites, while on others it’s easily detectable.
You can also play a little bit more and test if DNS recursion is enabled by simply running:
fpdns dns.server.com
Replace dns.server.com with a real Name Server.
The output should be something like:
Now let’s jump into some new fingerprinting standards, not just tools.
Hassh is a new SSH Fingerprinting standard used to accurately detect and identify specific Client and Server SSH deployments. These fingerprints uses MD5 as a default storage method, for later analysis, usage and comparison when needed.
While SSH is a fairly secure protocol, it has a few drawbacks when it comes to analyzing interaction between client and server. In this case, using Hassh can help in situations that include:
This works by using the MD5 “hassh” and “hasshServer” (created from a specific set of algorithms by SSH clients and SSH server software) from the final SSH encrypted channel. This generates a unique identification string that can be used to fingerprint client and server applications.
The final MD5 can be easily translated into examples such as these:
Hassh is a brand new project, online since their Github repo a few months ago.id It looks like a solid solution, one that can shed light on the typical SSH client-server connection problems seen for decades. Thanks to this new fingerprint standart, debugging SSH connections will be easier.
Check out the original Salesforce engineering announcement for more information.
JA3, as their creators said, is an SSL/TLS fingerprint method. This helps to create fingerprints that can be produced by any platform for later threat intelligence analysis.
In the same case as the previous technology (HASSH), using JA3 + JA3S as a fingerprinting technique for the TLS negotiation between both ends (client and server) can produce a more accurate identification of the encrypted communications.
This helps identify clients and servers with high probability in almost all cases, as you see below with Tor client and Tor server:
Standard Tor Client:
This provides researchers a higher level of trust that this activity is indeed Tor traffic, and nothing else.
More information can be found at Github repo.
If you are on a red team, network and service fingerprinting is one of the most useful things to consider when trying to generate data intelligence about your target.
For blue teams, fingerprinting can generate helpful information that may be used to harden your OS and network stack, in order to avoid future cybersecurity threats.
The fingerprint techniques and tools we mentioned here can be excellent OSINT sources in your data gathering process, but there is much more to explore. Domain names, DNS services, as well as IP addresses and SSL certificates can often leave unseen trails—exposing vulnerable parts of your attack surface.
Book your SurfaceBrowser™ demo with our sales team to discover our powerful all-in-one passive reconnaissance toolkit.
Esteban is a seasoned security researcher and cybersecurity specialist with over 15 years of experience. Since joining SecurityTrails in 2017 he’s been our go-to for technical server security and source intelligence info.
Available Categories Select a category to browse . | ||
Administrative | Connection Type | Content type |
Operating System | Platform | Products |
|