Anti OS Fingerprinting, Revisited: A Loadable Kernel Module for FreeBSD and What Twenty-Five Years Changed
Abstract
In 2001 we published a paper on an Anti OS Detection (AoD) system: a modified FreeBSD 4.3 kernel that makes a host answer the probes of an OS fingerprinting tool as if it ran another operating system. This report revisits that work on FreeBSD 15.1. We do not claim a new method. We report three things. First, the same goal is now reachable from a loadable module of about 800 lines that uses the packet filter hook interface and sets one kernel variable, without changing the kernel source. Second, the module covers both active and passive fingerprinting: Nmap 7.98 reports an exact match for Linux and for Windows 10/11, and p0f 3 reports the same systems from the connections the host opens. Third, an exact match in Nmap was not enough: a passive tool, plain FIN scans and a comparison with real hosts each exposed a mismatch that the previous step could not see. A real Windows 11 host and the final Windows personality get the same verdict from Nmap and the same signatures from p0f and JA4T; a real Linux 7.0 host is not an exact match in Nmap at all, while the personality built from Nmap's database is. We describe those mismatches, how we removed them, what the module costs, and what it still cannot hide.
- Comment
- 8 pages, 7 tables. Code and measurement scripts: https://github.com/daisu-mi/aod