TCP/IP passive OS fingerprint (p0f, JA4T)
The TCP handshake reveals the operating system through TTL, window size, MSS and option order.
In one line
Can guess your operating system from how your device opens a connection
The TCP handshake reveals the operating system through TTL, window size, MSS and option order.
p0f (Zalewski) and JA4T read SYN fields: initial TTL (64 or 128), window size, MSS, window scale and option order. Windows, Linux, iOS and macOS differ, and a mismatch with the User-Agent signals spoofing or a proxy.
What it can and can't do
What the user does: Nothing. It happens when your device first connects to the server
It can
- Guess whether you run Windows, Mac, Linux, Android or iPhone from connection details
- Catch visitors whose claimed system does not match their real one
- Filter attack traffic that has odd connection patterns
It cannot
- See your name, account or files
- Tell the exact version or device model
- Be hidden by clearing cookies or using private browsing
- Work well through a proxy or relay, since it only sees the last hop
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 1 | 2008-12-11 | None |
| Edge | Supported | 79 | 2020-01-15 | None |
| Firefox | Supported | 1 | 2004-11-09 | None |
| Safari | Supported | 1 | 2003-06-23 | None |
| Safari on iPhone | Supported | 1 | 2007-06-29 | None |
| Chrome on Android | Supported | 1 | Not listed | None |
| Samsung Internet | Supported | 5.0 | 2016-12-15 | None |
How a site asks for it
| API | SYN packet capture (p0f v3, JA4T, Zeek) |
| How access is granted | none |
| What the user sees | Not listed |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | Not listed |
| How to take it back | Not listed |
| Inside an iframe | Not listed |
Typical flow
- Capture the SYN
- Compute signature
- Compare OS guess to User-Agent
Data you get
What comes back: Signature such as 4:64:0:1460:mss*10,6:mss,sok,ts,nop,ws:df,id+:0
Shape: string
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
ttl | integer | None | 1 to 255 | initial TTL inferred |
Technical limits
- Altered by load balancers, VPNs and proxies
- Reveals the network stack, not the browser
The story
What it is
The very first network packets from your device reveal what kind of operating system it runs.
For you
You never see it. Every device opens a connection in a slightly different way. A server can read that pattern and guess if you are on Windows, Mac, Linux or a phone.
For makers
Makers use it to catch visitors who say one thing and are another, such as a bot claiming to be an iPhone while running on Linux. It needs no code in the browser and cannot be changed by a page.
Where you see it
| Type | Example | Apps |
|---|---|---|
| security | A ticket site sees a visitor claiming to be an iPhone, but the connection pattern looks like a Linux server. It blocks the request as a bot. | None named |
| ads | An ad fraud service compares the claimed device with the network pattern and drops mismatches from billing. | None named |
| games | A browser game blocks sign ups from servers pretending to be Windows players, which stops bot farms and cheat tools. | None named |
| banking | A bank compares the system seen at login with the customer's usual one and asks for more proof if it changes. | None named |
| analytics | A traffic report separates real phone visits from automated ones that spoof phone browsers. | None named |
| enterprise | A firewall flags an unexpected system type on a company login and steps up checks. | None named |
| shopping | A retailer ties repeated suspicious orders to the same network pattern, and slows them for review. | None named |
Risks
- Hard to see or avoid
- Misreads VPNs and routers
Good uses and abuse
Legitimate uses
- OS vs User-Agent mismatch detection, DDoS filtering
Known abuse
- Silent OS identification
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 4 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 3 | Rough identifying entropy, when known |
Related capabilities
Related
- JA4+ network fingerprint family. Can recognize your browser or app from several quiet network clues, even when shuffled
- VPN, proxy and Tor detection. Can guess whether you are hiding behind a VPN, proxy or Tor, but not always correctly
Sources
How well checked: Based on official documentation.