Loadable kernel module lets FreeBSD masquerade as Linux or Windows to OS fingerprinting tools
An 800-line FreeBSD loadable module can make the host appear as Linux or Windows to active and passive fingerprinting, though some mismatches remain
Security & privacy arXiv 21 Nov 2026 Method Prototype evidence
Published as “Anti OS Fingerprinting, Revisited: A Loadable Kernel Module for FreeBSD and What Twenty-Five Years Changed”
Why it matters
The module demonstrates that OS fingerprint deception can be achieved with minimal kernel changes and low overhead, but it remains detectable and incomplete, limiting its practical use for robust cyber-resilience.
Summary
The paper shows that a ~800-line loadable kernel module for FreeBSD 15.1 can make the host appear as Windows 11 or Linux 7.0 to active (Nmap 7.98) and passive (p0f 3.09b, JA4T) fingerprinting tools, but additional scans and tools reveal mismatches, and the module’s effect on performance is negligible.
What they found 6
- Nmap 7.98 reports an exact match for both Linux and Windows 10/11 when the module is active.
“Nmap 7.98 reports an exact match for Linux and for Windows 10/11”
- p0f reveals that a Linux SYN carries a nonzero IP ID while FreeBSD sends zero with DF set, a mismatch invisible to Nmap.
“A Linux SYN carries a nonzero IP ID while FreeBSD sends zero with DF set”
- p0f does not recognize the Windows personality because its SYN includes TCP timestamps, which real Windows SYNs lack.
“p0f did not recognize our Windows personality, because its SYN offered TCP timestamps and a Windows SYN does not”
- FIN and Xmas scans still exhibit FreeBSD behavior even when Nmap reports an exact Windows match.
“With the Windows personality, Nmap’s OS detection reported an exact match while FIN and Xmas scans of the open port still showed FreeBSD behaviour (no reply)”
- Nmap’s database does not include Ubuntu 26.04.1, causing a mismatch between the real Linux host and the database personality.
“Nmap does not recognize Ubuntu 26.04.1. Its database ends at Linux 6.0, and the 7.0 kernel differs from the database personality in two places: a window scale of 8 instead of 7, and a timestamp clock that Nmap classifies as TS=20 to 22 instead of TS=A”
- Performance impact of the module is within measurement noise; differences between conditions are smaller than the spread within a condition.
“Differences between conditions are smaller than the spread within a condition (for sending without the module, 15.4317.05 Gbit/s over the five rounds)”
Caveats 7
- p0f showed two mismatches that Nmap cannot see. A Linux SYN carries a nonzero IP ID while FreeBSD sends zero with DF set; p0f also failed to recognize the Windows personality because of TCP timestamps.
- FIN and Xmas scans of the open port still showed FreeBSD behaviour despite the Windows personality achieving an exact Nmap match.
- The Linux real host is not an exact Nmap match because the Nmap database is outdated, highlighting a mismatch between tool databases and actual systems.
- TTL and IP ID are set on every packet; everything else is shaped only on the first segments of a connection.
- Initial sequence numbers are untouched (Section 5).
- IP IDs come from one counter. A real Linux host numbers each connection separately, which shows after the handshake: across three connections the first data segments carried consecutive IDs from the personality and unrelated ones from the Ubuntu host. None of the three tools reports on it.
- IPv4 only. The window scale can be lowered but not raised.
What’s new here 4
- Implemented the anti-OS-fingerprinting technique as a loadable kernel module without any kernel source changes.
- Demonstrates coverage of both active (Nmap) and passive (p0f, JA4T) fingerprinting tools.
- Provides a detailed cost measurement of the module in a virtualized environment.
- Documents mismatches uncovered by multiple tools and real hosts that were hidden when using a single tool.