pf.os revision 1.1
11.1Syamt# $OpenBSD: pf.os,v 1.17 2004/04/28 01:01:27 deraadt Exp $ 21.1Syamt# passive OS fingerprinting 31.1Syamt# ------------------------- 41.1Syamt# 51.1Syamt# SYN signatures. Those signatures work for SYN packets only (duh!). 61.1Syamt# 71.1Syamt# (C) Copyright 2000-2003 by Michal Zalewski <lcamtuf@coredump.cx> 81.1Syamt# (C) Copyright 2003 by Mike Frantzen <frantzen@w4g.org> 91.1Syamt# 101.1Syamt# Permission to use, copy, modify, and distribute this software for any 111.1Syamt# purpose with or without fee is hereby granted, provided that the above 121.1Syamt# copyright notice and this permission notice appear in all copies. 131.1Syamt# 141.1Syamt# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 151.1Syamt# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 161.1Syamt# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 171.1Syamt# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 181.1Syamt# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 191.1Syamt# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 201.1Syamt# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 211.1Syamt# 221.1Syamt# 231.1Syamt# This fingerprint database is adapted from Michal Zalewski's p0f passive 241.1Syamt# operating system package. The last database sync was from a Nov 3 2003 251.1Syamt# p0f.fp. 261.1Syamt# 271.1Syamt# 281.1Syamt# Each line in this file specifies a single fingerprint. Please read the 291.1Syamt# information below carefully before attempting to append any signatures 301.1Syamt# reported as UNKNOWN to this file to avoid mistakes. 311.1Syamt# 321.1Syamt# We use the following set metrics for fingerprinting: 331.1Syamt# 341.1Syamt# - Window size (WSS) - a highly OS dependent setting used for TCP/IP 351.1Syamt# performance control (max. amount of data to be sent without ACK). 361.1Syamt# Some systems use a fixed value for initial packets. On other 371.1Syamt# systems, it is a multiple of MSS or MTU (MSS+40). In some rare 381.1Syamt# cases, the value is just arbitrary. 391.1Syamt# 401.1Syamt# NEW SIGNATURE: if p0f reported a special value of 'Snn', the number 411.1Syamt# appears to be a multiple of MSS (MSS*nn); a special value of 'Tnn' 421.1Syamt# means it is a multiple of MTU ((MSS+40)*nn). Unless you notice the 431.1Syamt# value of nn is not fixed (unlikely), just copy the Snn or Tnn token 441.1Syamt# literally. If you know this device has a simple stack and a fixed 451.1Syamt# MTU, you can however multiply S value by MSS, or T value by MSS+40, 461.1Syamt# and put it instead of Snn or Tnn. 471.1Syamt# 481.1Syamt# If WSS otherwise looks like a fixed value (for example a multiple 491.1Syamt# of two), or if you can confirm the value is fixed, please quote 501.1Syamt# it literally. If there's no apparent pattern in WSS chosen, you 511.1Syamt# should consider wildcarding this value. 521.1Syamt# 531.1Syamt# - Overall packet size - a function of all IP and TCP options and bugs. 541.1Syamt# 551.1Syamt# NEW SIGNATURE: Copy this value literally. 561.1Syamt# 571.1Syamt# - Initial TTL - We check the actual TTL of a received packet. It can't 581.1Syamt# be higher than the initial TTL, and also shouldn't be dramatically 591.1Syamt# lower (maximum distance is defined as 40 hops). 601.1Syamt# 611.1Syamt# NEW SIGNATURE: *Never* copy TTL from a p0f-reported signature literally. 621.1Syamt# You need to determine the initial TTL. The best way to do it is to 631.1Syamt# check the documentation for a remote system, or check its settings. 641.1Syamt# A fairly good method is to simply round the observed TTL up to 651.1Syamt# 32, 64, 128, or 255, but it should be noted that some obscure devices 661.1Syamt# might not use round TTLs (in particular, some shoddy appliances use 671.1Syamt# "original" initial TTL settings). If not sure, you can see how many 681.1Syamt# hops you're away from the remote party with traceroute or mtr. 691.1Syamt# 701.1Syamt# - Don't fragment flag (DF) - some modern OSes set this to implement PMTU 711.1Syamt# discovery. Others do not bother. 721.1Syamt# 731.1Syamt# NEW SIGNATURE: Copy this value literally. 741.1Syamt# 751.1Syamt# - Maximum segment size (MSS) - this setting is usually link-dependent. P0f 761.1Syamt# uses it to determine link type of the remote host. 771.1Syamt# 781.1Syamt# NEW SIGNATURE: Always wildcard this value, except for rare cases when 791.1Syamt# you have an appliance with a fixed value, know the system supports only 801.1Syamt# a very limited number of network interface types, or know the system 811.1Syamt# is using a value it pulled out of nowhere. Specific unique MSS 821.1Syamt# can be used to tell Google crawlbots from the rest of the population. 831.1Syamt# 841.1Syamt# - Window scaling (WSCALE) - this feature is used to scale WSS. 851.1Syamt# It extends the size of a TCP/IP window to 32 bits. Some modern 861.1Syamt# systems implement this feature. 871.1Syamt# 881.1Syamt# NEW SIGNATURE: Observe several signatures. Initial WSCALE is often set 891.1Syamt# to zero or other low value. There's usually no need to wildcard this 901.1Syamt# parameter. 911.1Syamt# 921.1Syamt# - Timestamp - some systems that implement timestamps set them to 931.1Syamt# zero in the initial SYN. This case is detected and handled appropriately. 941.1Syamt# 951.1Syamt# - Selective ACK permitted - a flag set by systems that implement 961.1Syamt# selective ACK functionality. 971.1Syamt# 981.1Syamt# - The sequence of TCP all options (MSS, window scaling, selective ACK 991.1Syamt# permitted, timestamp, NOP). Other than the options previously 1001.1Syamt# discussed, p0f also checks for timestamp option (a silly 1011.1Syamt# extension to broadcast your uptime ;-), NOP options (used for 1021.1Syamt# header padding) and sackOK option (selective ACK feature). 1031.1Syamt# 1041.1Syamt# NEW SIGNATURE: Copy the sequence literally. 1051.1Syamt# 1061.1Syamt# To wildcard any value (except for initial TTL or TCP options), replace 1071.1Syamt# it with '*'. You can also use a modulo operator to match any values 1081.1Syamt# that divide by nnn - '%nnn'. 1091.1Syamt# 1101.1Syamt# Fingerprint entry format: 1111.1Syamt# 1121.1Syamt# wwww:ttt:D:ss:OOO...:OS:Version:Subtype:Details 1131.1Syamt# 1141.1Syamt# wwww - window size (can be *, %nnn, Snn or Tnn). The special values 1151.1Syamt# "S" and "T" which are a multiple of MSS or a multiple of MTU 1161.1Syamt# respectively. 1171.1Syamt# ttt - initial TTL 1181.1Syamt# D - don't fragment bit (0 - not set, 1 - set) 1191.1Syamt# ss - overall SYN packet size 1201.1Syamt# OOO - option value and order specification (see below) 1211.1Syamt# OS - OS genre (Linux, Solaris, Windows) 1221.1Syamt# Version - OS Version (2.0.27 on x86, etc) 1231.1Syamt# Subtype - OS subtype or patchlevel (SP3, lo0) 1241.1Syamt# details - Generic OS details 1251.1Syamt# 1261.1Syamt# If OS genre starts with '*', p0f will not show distance, link type 1271.1Syamt# and timestamp data. It is useful for userland TCP/IP stacks of 1281.1Syamt# network scanners and so on, where many settings are randomized or 1291.1Syamt# bogus. 1301.1Syamt# 1311.1Syamt# If OS genre starts with @, it denotes an approximate hit for a group 1321.1Syamt# of operating systems (signature reporting still enabled in this case). 1331.1Syamt# Use this feature at the end of this file to catch cases for which 1341.1Syamt# you don't have a precise match, but can tell it's Windows or FreeBSD 1351.1Syamt# or whatnot by looking at, say, flag layout alone. 1361.1Syamt# 1371.1Syamt# Option block description is a list of comma or space separated 1381.1Syamt# options in the order they appear in the packet: 1391.1Syamt# 1401.1Syamt# N - NOP option 1411.1Syamt# Wnnn - window scaling option, value nnn (or * or %nnn) 1421.1Syamt# Mnnn - maximum segment size option, value nnn (or * or %nnn) 1431.1Syamt# S - selective ACK OK 1441.1Syamt# T - timestamp 1451.1Syamt# T0 - timestamp with a zero value 1461.1Syamt# 1471.1Syamt# To denote no TCP options, use a single '.'. 1481.1Syamt# 1491.1Syamt# Please report any additions to this file, or any inaccuracies or 1501.1Syamt# problems spotted, to the maintainers: lcamtuf@coredump.cx, 1511.1Syamt# frantzen@openbsd.org and bugs@openbsd.org with a tcpdump packet 1521.1Syamt# capture of the relevant SYN packet(s) 1531.1Syamt# 1541.1Syamt# A test and submission page is available at 1551.1Syamt# http://lcamtuf.coredump.cx/p0f-help/ 1561.1Syamt# 1571.1Syamt# 1581.1Syamt# WARNING WARNING WARNING 1591.1Syamt# ----------------------- 1601.1Syamt# 1611.1Syamt# Do not add a system X as OS Y just because NMAP says so. It is often 1621.1Syamt# the case that X is a NAT firewall. While nmap is talking to the 1631.1Syamt# device itself, p0f is fingerprinting the guy behind the firewall 1641.1Syamt# instead. 1651.1Syamt# 1661.1Syamt# When in doubt, use common sense, don't add something that looks like 1671.1Syamt# a completely different system as Linux or FreeBSD or LinkSys router. 1681.1Syamt# Check DNS name, establish a connection to the remote host and look 1691.1Syamt# at SYN+ACK - does it look similar? 1701.1Syamt# 1711.1Syamt# Some users tweak their TCP/IP settings - enable or disable RFC1323 1721.1Syamt# functionality, enable or disable timestamps or selective ACK, 1731.1Syamt# disable PMTU discovery, change MTU and so on. Always compare a new rule 1741.1Syamt# to other fingerprints for this system, and verify the system isn't 1751.1Syamt# "customized" before adding it. It is OK to add signature variants 1761.1Syamt# caused by a commonly used software (personal firewalls, security 1771.1Syamt# packages, etc), but it makes no sense to try to add every single 1781.1Syamt# possible /proc/sys/net/ipv4 tweak on Linux or so. 1791.1Syamt# 1801.1Syamt# KEEP IN MIND: Some packet firewalls configured to normalize outgoing 1811.1Syamt# traffic (OpenBSD pf with "scrub" enabled, for example) will, well, 1821.1Syamt# normalize packets. Signatures will not correspond to the originating 1831.1Syamt# system (and probably not quite to the firewall either). 1841.1Syamt# 1851.1Syamt# NOTE: Try to keep this file in some reasonable order, from most to 1861.1Syamt# least likely systems. This will speed up operation. Also keep most 1871.1Syamt# generic and broad rules near the end. 1881.1Syamt# 1891.1Syamt 1901.1Syamt########################## 1911.1Syamt# Standard OS signatures # 1921.1Syamt########################## 1931.1Syamt 1941.1Syamt# ----------------- AIX --------------------- 1951.1Syamt 1961.1Syamt# AIX is first because its signatures are close to NetBSD, MacOS X and 1971.1Syamt# Linux 2.0, but it uses a fairly rare MSSes, at least sometimes... 1981.1Syamt# This is a shoddy hack, though. 1991.1Syamt 2001.1Syamt45046:64:0:44:M*: AIX:4.3::AIX 4.3 2011.1Syamt16384:64:0:44:M512: AIX:4.3:2-3:AIX 4.3.2 and earlier 2021.1Syamt 2031.1Syamt16384:64:0:60:M512,N,W%2,N,N,T: AIX:4.3:3:AIX 4.3.3-5.2 2041.1Syamt16384:64:0:60:M512,N,W%2,N,N,T: AIX:5.1-5.2::AIX 4.3.3-5.2 2051.1Syamt32768:64:0:60:M512,N,W%2,N,N,T: AIX:4.3:3:AIX 4.3.3-5.2 2061.1Syamt32768:64:0:60:M512,N,W%2,N,N,T: AIX:5.1-5.2::AIX 4.3.3-5.2 2071.1Syamt65535:64:0:60:M512,N,W%2,N,N,T: AIX:4.3:3:AIX 4.3.3-5.2 2081.1Syamt65535:64:0:60:M512,N,W%2,N,N,T: AIX:5.1-5.2::AIX 4.3.3-5.2 2091.1Syamt65535:64:0:64:M*,N,W1,N,N,T,N,N,S: AIX:5.3:ML1:AIX 5.3 ML1 2101.1Syamt 2111.1Syamt# ----------------- Linux ------------------- 2121.1Syamt 2131.1Syamt# S1:64:0:44:M*:A: Linux:1.2::Linux 1.2.x (XXX quirks support) 2141.1Syamt512:64:0:44:M*: Linux:2.0:3x:Linux 2.0.3x 2151.1Syamt16384:64:0:44:M*: Linux:2.0:3x:Linux 2.0.3x 2161.1Syamt 2171.1Syamt# Endian snafu! Nelson says "ha-ha": 2181.1Syamt2:64:0:44:M*: Linux:2.0:3x:Linux 2.0.3x (MkLinux) on Mac 2191.1Syamt64:64:0:44:M*: Linux:2.0:3x:Linux 2.0.3x (MkLinux) on Mac 2201.1Syamt 2211.1Syamt 2221.1SyamtS4:64:1:60:M1360,S,T,N,W0: Linux:google::Linux (Google crawlbot) 2231.1Syamt 2241.1SyamtS2:64:1:60:M*,S,T,N,W0: Linux:2.4::Linux 2.4 (big boy) 2251.1SyamtS3:64:1:60:M*,S,T,N,W0: Linux:2.4:18-21:Linux 2.4.18 and newer 2261.1SyamtS4:64:1:60:M*,S,T,N,W0: Linux:2.4::Linux 2.4/2.6 2271.1SyamtS4:64:1:60:M*,S,T,N,W0: Linux:2.6::Linux 2.4/2.6 2281.1Syamt 2291.1SyamtS3:64:1:60:M*,S,T,N,W1: Linux:2.5::Linux 2.5 (sometimes 2.4) 2301.1SyamtS4:64:1:60:M*,S,T,N,W1: Linux:2.5-2.6::Linux 2.5/2.6 2311.1SyamtS3:64:1:60:M*,S,T,N,W2: Linux:2.5::Linux 2.5 (sometimes 2.4) 2321.1SyamtS4:64:1:60:M*,S,T,N,W2: Linux:2.5::Linux 2.5 (sometimes 2.4) 2331.1Syamt 2341.1SyamtS20:64:1:60:M*,S,T,N,W0: Linux:2.2:20-25:Linux 2.2.20 and newer 2351.1SyamtS22:64:1:60:M*,S,T,N,W0: Linux:2.2::Linux 2.2 2361.1SyamtS11:64:1:60:M*,S,T,N,W0: Linux:2.2::Linux 2.2 2371.1Syamt 2381.1Syamt# Popular cluster config scripts disable timestamps and 2391.1Syamt# selective ACK: 2401.1SyamtS4:64:1:48:M1460,N,W0: Linux:2.4:cluster:Linux 2.4 in cluster 2411.1Syamt 2421.1Syamt# This needs to be investigated. On some systems, WSS 2431.1Syamt# is selected as a multiple of MTU instead of MSS. I got 2441.1Syamt# many submissions for this for many late versions of 2.4: 2451.1SyamtT4:64:1:60:M1412,S,T,N,W0: Linux:2.4::Linux 2.4 (late, uncommon) 2461.1Syamt 2471.1Syamt# This happens only over loopback, but let's make folks happy: 2481.1Syamt32767:64:1:60:M16396,S,T,N,W0: Linux:2.4:lo0:Linux 2.4 (local) 2491.1SyamtS8:64:1:60:M3884,S,T,N,W0: Linux:2.2:lo0:Linux 2.2 (local) 2501.1Syamt 2511.1Syamt# Opera visitors: 2521.1Syamt16384:64:1:60:M*,S,T,N,W0: Linux:2.2:Opera:Linux 2.2 (Opera?) 2531.1Syamt32767:64:1:60:M*,S,T,N,W0: Linux:2.4:Opera:Linux 2.4 (Opera?) 2541.1Syamt 2551.1Syamt# Some fairly common mods: 2561.1SyamtS4:64:1:52:M*,N,N,S,N,W0: Linux:2.4:ts:Linux 2.4 w/o timestamps 2571.1SyamtS22:64:1:52:M*,N,N,S,N,W0: Linux:2.2:ts:Linux 2.2 w/o timestamps 2581.1Syamt 2591.1Syamt 2601.1Syamt# ----------------- FreeBSD ----------------- 2611.1Syamt 2621.1Syamt16384:64:1:44:M*: FreeBSD:2.0-2.2::FreeBSD 2.0-4.1 2631.1Syamt16384:64:1:44:M*: FreeBSD:3.0-3.5::FreeBSD 2.0-4.1 2641.1Syamt16384:64:1:44:M*: FreeBSD:4.0-4.1::FreeBSD 2.0-4.1 2651.1Syamt16384:64:1:60:M*,N,W0,N,N,T: FreeBSD:4.4::FreeBSD 4.4 2661.1Syamt 2671.1Syamt1024:64:1:60:M*,N,W0,N,N,T: FreeBSD:4.4::FreeBSD 4.4 2681.1Syamt 2691.1Syamt57344:64:1:44:M*: FreeBSD:4.6-4.8:noRFC1323:FreeBSD 4.6-4.8 (no RFC1323) 2701.1Syamt57344:64:1:60:M*,N,W0,N,N,T: FreeBSD:4.6-4.8::FreeBSD 4.6-4.8 2711.1Syamt 2721.1Syamt32768:64:1:60:M*,N,W0,N,N,T: FreeBSD:4.8-4.9::FreeBSD 4.8-5.1 (or MacOS X) 2731.1Syamt32768:64:1:60:M*,N,W0,N,N,T: FreeBSD:5.0-5.1::FreeBSD 4.8-5.1 (or MacOS X) 2741.1Syamt65535:64:1:60:M*,N,W0,N,N,T: FreeBSD:4.8-4.9::FreeBSD 4.8-5.1 (or MacOS X) 2751.1Syamt65535:64:1:60:M*,N,W0,N,N,T: FreeBSD:5.0-5.1::FreeBSD 4.8-5.1 (or MacOS X) 2761.1Syamt65535:64:1:60:M*,N,W1,N,N,T: FreeBSD:4.7-4.9::FreeBSD 4.7-5.1 2771.1Syamt65535:64:1:60:M*,N,W1,N,N,T: FreeBSD:5.0-5.1::FreeBSD 4.7-5.1 2781.1Syamt 2791.1Syamt# XXX need quirks support 2801.1Syamt# 65535:64:1:60:M*,N,W0,N,N,T:Z:FreeBSD:5.1-current (1) 2811.1Syamt# 65535:64:1:60:M*,N,W1,N,N,T:Z:FreeBSD:5.1-current (2) 2821.1Syamt# 65535:64:1:60:M*,N,W2,N,N,T:Z:FreeBSD:5.1-current (3) 2831.1Syamt 2841.1Syamt# 16384:64:1:60:M*,N,N,N,N,N,N,T:FreeBSD:4.4:noTS:FreeBSD 4.4 (w/o timestamps) 2851.1Syamt 2861.1Syamt# ----------------- NetBSD ------------------ 2871.1Syamt 2881.1Syamt16384:64:0:60:M*,N,W0,N,N,T: NetBSD:1.3::NetBSD 1.3 2891.1Syamt65535:64:0:60:M*,N,W0,N,N,T0: NetBSD:1.6:opera:NetBSD 1.6 (Opera) 2901.1Syamt16384:64:0:60:M*,N,W0,N,N,T0: NetBSD:1.6::NetBSD 1.6 2911.1Syamt16384:64:1:60:M*,N,W0,N,N,T0: NetBSD:1.6:df:NetBSD 1.6 (DF) 2921.1Syamt65535:64:1:60:M*,N,W1,N,N,T0: NetBSD:1.6::NetBSD 1.6W-current (DF) 2931.1Syamt65535:64:1:60:M*,N,W0,N,N,T0: NetBSD:1.6::NetBSD 1.6X (DF) 2941.1Syamt32768:64:1:60:M*,N,W0,N,N,T0: NetBSD:1.6:randomization:NetBSD 1.6ZH-current (w/ ip_id randomization) 2951.1Syamt 2961.1Syamt# ----------------- OpenBSD ----------------- 2971.1Syamt 2981.1Syamt16384:64:0:60:M*,N,W0,N,N,T: OpenBSD:2.6::NetBSD 1.3 (or OpenBSD 2.6) 2991.1Syamt16384:64:1:64:M*,N,N,S,N,W0,N,N,T: OpenBSD:3.0-3.5::OpenBSD 3.0-3.5 3001.1Syamt16384:64:0:64:M*,N,N,S,N,W0,N,N,T: OpenBSD:3.0-3.5:no-df:OpenBSD 3.0-3.5 (scrub no-df) 3011.1Syamt57344:64:1:64:M*,N,N,S,N,W0,N,N,T: OpenBSD:3.3-3.5::OpenBSD 3.3-3.5 3021.1Syamt57344:64:0:64:M*,N,N,S,N,W0,N,N,T: OpenBSD:3.3-3.5:no-df:OpenBSD 3.3-3.5 (scrub no-df) 3031.1Syamt 3041.1Syamt65535:64:1:64:M*,N,N,S,N,W0,N,N,T: OpenBSD:3.0-3.5:opera:OpenBSD 3.0-3.5 (Opera) 3051.1Syamt 3061.1Syamt# ----------------- Solaris ----------------- 3071.1Syamt 3081.1SyamtS17:64:1:64:N,W3,N,N,T0,N,N,S,M*: Solaris:8:RFC1323:Solaris 8 RFC1323 3091.1SyamtS17:64:1:48:N,N,S,M*: Solaris:8::Solaris 8 3101.1SyamtS17:255:1:44:M*: Solaris:2.5-2.7::Solaris 2.5 to 7 3111.1Syamt 3121.1SyamtS6:255:1:44:M*: Solaris:2.6-2.7::Solaris 2.6 to 7 3131.1SyamtS23:255:1:44:M*: Solaris:2.5:1:Solaris 2.5.1 3141.1SyamtS34:64:1:48:M*,N,N,S: Solaris:2.9::Solaris 9 3151.1SyamtS44:255:1:44:M*: Solaris:2.7::Solaris 7 3161.1Syamt 3171.1Syamt4096:64:0:44:M1460: SunOS:4.1::SunOS 4.1.x 3181.1Syamt 3191.1SyamtS34:64:1:52:M*,N,W0,N,N,S: Solaris:10::Solaris 10 (beta) 3201.1Syamt 3211.1Syamt# ----------------- IRIX -------------------- 3221.1Syamt 3231.1Syamt49152:64:0:44:M*: IRIX:6.4::IRIX 6.4 3241.1Syamt61440:64:0:44:M*: IRIX:6.2-6.5::IRIX 6.2-6.5 3251.1Syamt49152:64:0:52:M*,N,W2,N,N,S: IRIX:6.5:RFC1323:IRIX 6.5 (RFC1323) 3261.1Syamt49152:64:0:52:M*,N,W3,N,N,S: IRIX:6.5:RFC1323:IRIX 6.5 (RFC1323) 3271.1Syamt 3281.1Syamt61440:64:0:48:M*,N,N,S: IRIX:6.5:12-21:IRIX 6.5.12 - 6.5.21 3291.1Syamt49152:64:0:48:M*,N,N,S: IRIX:6.5:15-21:IRIX 6.5.15 - 6.5.21 3301.1Syamt 3311.1Syamt# ----------------- Tru64 ------------------- 3321.1Syamt 3331.1Syamt32768:64:1:48:M*,N,W0: Tru64:4.0::Tru64 4.0 (or OS/2 Warp 4) 3341.1Syamt32768:64:0:48:M*,N,W0: Tru64:5.0::Tru64 5.0 3351.1Syamt8192:64:0:44:M1460: Tru64:5.1:noRFC1323:Tru64 6.1 (no RFC1323) (or QNX 6) 3361.1Syamt61440:64:0:48:M*,N,W0: Tru64:5.1a:JP4:Tru64 v5.1a JP4 (or OpenVMS 7.x on Compaq 5.x stack) 3371.1Syamt 3381.1Syamt# ----------------- OpenVMS ----------------- 3391.1Syamt 3401.1Syamt6144:64:1:60:M*,N,W0,N,N,T: OpenVMS:7.2::OpenVMS 7.2 (Multinet 4.4 stack) 3411.1Syamt 3421.1Syamt# ----------------- MacOS ------------------- 3431.1Syamt 3441.1Syamt# XXX Need EOL tcp opt support 3451.1Syamt# S2:255:1:48:M*,W0,E:.:MacOS:8.6 classic 3461.1Syamt 3471.1Syamt# XXX some of these use EOL too 3481.1Syamt16616:255:1:48:M*,W0: MacOS:7.3-7.6:OTTCP:MacOS 7.3-8.6 (OTTCP) 3491.1Syamt16616:255:1:48:M*,W0: MacOS:8.0-8.6:OTTCP:MacOS 7.3-8.6 (OTTCP) 3501.1Syamt16616:255:1:48:M*,N,N,N: MacOS:8.1-8.6:OTTCP:MacOS 8.1-8.6 (OTTCP) 3511.1Syamt32768:255:1:48:M*,W0,N: MacOS:9.0-9.2::MacOS 9.0-9.2 3521.1Syamt65535:255:1:48:M*,N,N,N,N: MacOS:9.1::MacOS 9.1 (OT 2.7.4) 3531.1Syamt 3541.1Syamt 3551.1Syamt# ----------------- Windows ----------------- 3561.1Syamt 3571.1Syamt# Windows TCP/IP stack is a mess. For most recent XP, 2000 and 3581.1Syamt# even 98, the pathlevel, not the actual OS version, is more 3591.1Syamt# relevant to the signature. They share the same code, so it would 3601.1Syamt# seem. Luckily for us, almost all Windows 9x boxes have an 3611.1Syamt# awkward MSS of 536, which I use to tell one from another 3621.1Syamt# in most difficult cases. 3631.1Syamt 3641.1Syamt8192:32:1:44:M*: Windows:3.11::Windows 3.11 (Tucows) 3651.1SyamtS44:64:1:64:M*,N,W0,N,N,T0,N,N,S: Windows:95::Windows 95 3661.1Syamt8192:128:1:64:M*,N,W0,N,N,T0,N,N,S: Windows:95:b:Windows 95b 3671.1Syamt 3681.1Syamt# There were so many tweaking tools and so many stack versions for 3691.1Syamt# Windows 98 it is no longer possible to tell them from each other 3701.1Syamt# without some very serious research. Until then, there's an insane 3711.1Syamt# number of signatures, for your amusement: 3721.1Syamt 3731.1SyamtS44:32:1:48:M*,N,N,S: Windows:98:lowTTL:Windows 98 (low TTL) 3741.1Syamt8192:32:1:48:M*,N,N,S: Windows:98:lowTTL:Windows 98 (low TTL) 3751.1Syamt%8192:64:1:48:M536,N,N,S: Windows:98::Windows 98 3761.1Syamt%8192:128:1:48:M536,N,N,S: Windows:98::Windows 98 3771.1SyamtS4:64:1:48:M*,N,N,S: Windows:98::Windows 98 3781.1SyamtS6:64:1:48:M*,N,N,S: Windows:98::Windows 98 3791.1SyamtS12:64:1:48:M*,N,N,S: Windows:98::Windows 98 3801.1SyamtT30:64:1:64:M1460,N,W0,N,N,T0,N,N,S: Windows:98::Windows 98 3811.1Syamt32767:64:1:48:M*,N,N,S: Windows:98::Windows 98 3821.1Syamt37300:64:1:48:M*,N,N,S: Windows:98::Windows 98 3831.1Syamt46080:64:1:52:M*,N,W3,N,N,S: Windows:98:RFC1323:Windows 98 (RFC1323) 3841.1Syamt65535:64:1:44:M*: Windows:98:noSack:Windows 98 (no sack) 3851.1SyamtS16:128:1:48:M*,N,N,S: Windows:98::Windows 98 3861.1SyamtS16:128:1:64:M*,N,W0,N,N,T0,N,N,S: Windows:98::Windows 98 3871.1SyamtS26:128:1:48:M*,N,N,S: Windows:98::Windows 98 3881.1SyamtT30:128:1:48:M*,N,N,S: Windows:98::Windows 98 3891.1Syamt32767:128:1:52:M*,N,W0,N,N,S: Windows:98::Windows 98 3901.1Syamt60352:128:1:48:M*,N,N,S: Windows:98::Windows 98 3911.1Syamt60352:128:1:64:M*,N,W2,N,N,T0,N,N,S: Windows:98::Windows 98 3921.1Syamt 3931.1Syamt# What's with 1414 on NT? 3941.1SyamtT31:128:1:44:M1414: Windows:NT:4.0:Windows NT 4.0 SP6a 3951.1Syamt64512:128:1:44:M1414: Windows:NT:4.0:Windows NT 4.0 SP6a 3961.1Syamt8192:128:1:44:M*: Windows:NT:4.0:Windows NT 4.0 (older) 3971.1Syamt 3981.1Syamt# Windows XP and 2000. Most of the signatures that were 3991.1Syamt# either dubious or non-specific (no service pack data) 4001.1Syamt# were deleted and replaced with generics at the end. 4011.1Syamt 4021.1Syamt65535:128:1:48:M*,N,N,S: Windows:2000:SP4:Windows 2000 SP4, XP SP1 4031.1Syamt65535:128:1:48:M*,N,N,S: Windows:XP:SP1:Windows 2000 SP4, XP SP1 4041.1Syamt%8192:128:1:48:M*,N,N,S: Windows:2000:SP2+:Windows 2000 SP2, XP SP1 (seldom 98 4.10.2222) 4051.1Syamt%8192:128:1:48:M*,N,N,S: Windows:XP:SP1:Windows 2000 SP2, XP SP1 (seldom 98 4.10.2222) 4061.1SyamtS20:128:1:48:M*,N,N,S: Windows:2000::Windows 2000/XP SP3 4071.1SyamtS20:128:1:48:M*,N,N,S: Windows:XP:SP3:Windows 2000/XP SP3 4081.1SyamtS45:128:1:48:M*,N,N,S: Windows:2000:SP4:Windows 2000 SP4, XP SP 1 4091.1SyamtS45:128:1:48:M*,N,N,S: Windows:XP:SP1:Windows 2000 SP4, XP SP 1 4101.1Syamt40320:128:1:48:M*,N,N,S: Windows:2000:SP4:Windows 2000 SP4 4111.1Syamt 4121.1SyamtS6:128:1:48:M*,N,N,S: Windows:2000:SP2:Windows XP, 2000 SP2+ 4131.1SyamtS6:128:1:48:M*,N,N,S: Windows:XP::Windows XP, 2000 SP2+ 4141.1SyamtS12:128:1:48:M*,N,N,S: Windows:XP:SP1:Windows XP SP1 4151.1SyamtS44:128:1:48:M*,N,N,S: Windows:2000:SP3:Windows Pro SP1, 2000 SP3 4161.1SyamtS44:128:1:48:M*,N,N,S: Windows:XP:SP1:Windows Pro SP1, 2000 SP3 4171.1Syamt64512:128:1:48:M*,N,N,S: Windows:2000:SP3:Windows SP1, 2000 SP3 4181.1Syamt64512:128:1:48:M*,N,N,S: Windows:XP:SP1:Windows SP1, 2000 SP3 4191.1Syamt32767:128:1:48:M*,N,N,S: Windows:2000:SP4:Windows SP1, 2000 SP4 4201.1Syamt32767:128:1:48:M*,N,N,S: Windows:XP:SP1:Windows SP1, 2000 SP4 4211.1Syamt 4221.1Syamt# Odds, ends, mods: 4231.1Syamt 4241.1SyamtS52:128:1:48:M1260,N,N,S: Windows:2000:cisco:Windows XP/2000 via Cisco 4251.1SyamtS52:128:1:48:M1260,N,N,S: Windows:XP:cisco:Windows XP/2000 via Cisco 4261.1Syamt65520:128:1:48:M*,N,N,S: Windows:XP::Windows XP bare-bone 4271.1Syamt16384:128:1:52:M536,N,W0,N,N,S: Windows:2000:ZoneAlarm:Windows 2000 w/ZoneAlarm? 4281.1Syamt2048:255:0:40:.: Windows:.NET::Windows .NET Enterprise Server 4291.1Syamt 4301.1Syamt# No need to be more specific, it passes: 4311.1Syamt# *:128:1:48:M*,N,N,S:U:-Windows:XP/2000 while downloading (leak!) XXX quirk 4321.1Syamt# there is an equiv similar generic sig w/o the quirk 4331.1Syamt 4341.1Syamt# ----------------- HP/UX ------------------- 4351.1Syamt 4361.1Syamt32768:64:1:44:M*: HP-UX:B.10.20::HP-UX B.10.20 4371.1Syamt32768:64:0:48:M*,W0,N: HP-UX:11.0::HP-UX 11.0 4381.1Syamt32768:64:1:48:M*,W0,N: HP-UX:11.10::HP-UX 11.0 or 11.11 4391.1Syamt32768:64:1:48:M*,W0,N: HP-UX:11.11::HP-UX 11.0 or 11.11 4401.1Syamt 4411.1Syamt# Whoa. Hardcore WSS. 4421.1Syamt0:64:0:48:M*,W0,N: HP-UX:B.11.00:A:HP-UX B.11.00 A (RFC1323) 4431.1Syamt 4441.1Syamt 4451.1Syamt# ----------------- RiscOS ------------------ 4461.1Syamt 4471.1Syamt# We don't yet support the ?12 TCP option 4481.1Syamt#16384:64:1:68:M1460,N,W0,N,N,T,N,N,?12: RISCOS:3.70-4.36::RISC OS 3.70-4.36 4491.1Syamt12288:32:0:44:M536: RISC OS:3.70:4.10:RISC OS 3.70 inet 4.10 4501.1Syamt 4511.1Syamt# XXX quirk 4521.1Syamt# 4096:64:1:56:M1460,N,N,T:T: RISC OS:3.70:freenet:RISC OS 3.70 freenet 2.00 4531.1Syamt 4541.1Syamt 4551.1Syamt# ----------------- BSD/OS ------------------ 4561.1Syamt 4571.1Syamt# Once again, power of two WSS is also shared by MacOS X with DF set 4581.1Syamt8192:64:1:60:M1460,N,W0,N,N,T: BSD/OS:3.1::BSD/OS 3.1-4.3 (or MacOS X 10.2 w/DF) 4591.1Syamt8192:64:1:60:M1460,N,W0,N,N,T: BSD/OS:4.0-4.3::BSD/OS 3.1-4.3 (or MacOS X 10.2) 4601.1Syamt 4611.1Syamt 4621.1Syamt# ---------------- NewtonOS ----------------- 4631.1Syamt 4641.1Syamt4096:64:0:44:M1420: NewtonOS:2.1::NewtonOS 2.1 4651.1Syamt 4661.1Syamt# ---------------- NeXTSTEP ----------------- 4671.1Syamt 4681.1SyamtS8:64:0:44:M512: NeXTSTEP:3.3::NeXTSTEP 3.3 4691.1Syamt 4701.1Syamt# ------------------ BeOS ------------------- 4711.1Syamt 4721.1Syamt1024:255:0:48:M*,N,W0: BeOS:5.0-5.1::BeOS 5.0-5.1 4731.1Syamt12288:255:0:44:M1402: BeOS:5.0::BeOS 5.0.x 4741.1Syamt 4751.1Syamt# ------------------ OS/400 ----------------- 4761.1Syamt 4771.1Syamt8192:64:1:60:M1440,N,W0,N,N,T: OS/400:VR4::OS/400 VR4/R5 4781.1Syamt8192:64:1:60:M1440,N,W0,N,N,T: OS/400:VR5::OS/400 VR4/R5 4791.1Syamt4096:64:1:60:M1440,N,W0,N,N,T: OS/400:V4R5:CF67032:OS/400 V4R5 + CF67032 4801.1Syamt 4811.1Syamt# XXX quirk 4821.1Syamt# 28672:64:0:44:M1460:A:OS/390:? 4831.1Syamt 4841.1Syamt# ------------------ ULTRIX ----------------- 4851.1Syamt 4861.1Syamt16384:64:0:40:.: ULTRIX:4.5::ULTRIX 4.5 4871.1Syamt 4881.1Syamt# ------------------- QNX ------------------- 4891.1Syamt 4901.1SyamtS16:64:0:44:M512: QNX:::QNX demodisk 4911.1Syamt 4921.1Syamt# ------------------ Novell ----------------- 4931.1Syamt 4941.1Syamt16384:128:1:44:M1460: Novell:NetWare:5.0:Novel Netware 5.0 4951.1Syamt6144:128:1:44:M1460: Novell:IntranetWare:4.11:Novell IntranetWare 4.11 4961.1Syamt6144:128:1:44:M1368: Novell:BorderManager::Novell BorderManager ? 4971.1Syamt 4981.1Syamt6144:128:1:52:M*,W0,N,S,N,N: Novell:Netware:6:Novell Netware 6 SP3 4991.1Syamt 5001.1Syamt 5011.1Syamt# ----------------- SCO ------------------ 5021.1SyamtS3:64:1:60:M1460,N,W0,N,N,T: SCO:UnixWare:7.1:SCO UnixWare 7.1 5031.1SyamtS23:64:1:44:M1380: SCO:OpenServer:5.0:SCO OpenServer 5.0 5041.1Syamt 5051.1Syamt# ------------------- DOS ------------------- 5061.1Syamt 5071.1Syamt2048:255:0:44:M536: DOS:WATTCP:1.05:DOS Arachne via WATTCP/1.05 5081.1Syamt 5091.1Syamt# ------------------ OS/2 ------------------- 5101.1Syamt 5111.1SyamtS56:64:0:44:M512: OS/2:4::OS/2 4 5121.1Syamt 5131.1Syamt# ----------------- TOPS-20 ----------------- 5141.1Syamt 5151.1Syamt# Another hardcore MSS, one of the ACK leakers hunted down. 5161.1Syamt# XXX QUIRK 0:64:0:44:M1460:A:TOPS-20:version 7 5171.1Syamt0:64:0:44:M1460: TOPS-20:7::TOPS-20 version 7 5181.1Syamt 5191.1Syamt# ------------------ AMIGA ------------------ 5201.1Syamt 5211.1Syamt# XXX TCP option 12 5221.1Syamt# S32:64:1:56:M*,N,N,S,N,N,?12:.:AMIGA:3.9 BB2 with Miami stack 5231.1Syamt 5241.1Syamt# ------------------ Plan9 ------------------ 5251.1Syamt 5261.1Syamt65535:255:0:48:M1460,W0,N: Plan9:4::Plan9 edition 4 5271.1Syamt 5281.1Syamt# ----------------- AMIGAOS ----------------- 5291.1Syamt 5301.1Syamt16384:64:1:48:M1560,N,N,S: AMIGAOS:3.9::AMIGAOS 3.9 BB2 MiamiDX 5311.1Syamt 5321.1Syamt########################################### 5331.1Syamt# Appliance / embedded / other signatures # 5341.1Syamt########################################### 5351.1Syamt 5361.1Syamt# ---------- Firewalls / routers ------------ 5371.1Syamt 5381.1SyamtS12:64:1:44:M1460: @Checkpoint:::Checkpoint (unknown 1) 5391.1SyamtS12:64:1:48:N,N,S,M1460: @Checkpoint:::Checkpoint (unknown 2) 5401.1Syamt4096:32:0:44:M1460: ExtremeWare:4.x::ExtremeWare 4.x 5411.1Syamt60352:64:0:52:M1460,N,W2,N,N,S: Clavister:7::Clavister firewall 7.x 5421.1Syamt 5431.1Syamt# XXX TCP option 12 5441.1Syamt# S32:64:0:68:M512,N,W0,N,N,T,N,N,?12:.:Nokia:IPSO w/Checkpoint NG FP3 5451.1Syamt# S16:64:0:68:M1024,N,W0,N,N,T,N,N,?12:.:Nokia:IPSO 3.7 build 026 5461.1Syamt 5471.1SyamtS4:64:1:60:W0,N,S,T,M1460: FortiNet:FortiGate:50:FortiNet FortiGate 50 5481.1Syamt 5491.1Syamt8192:64:1:44:M1460: Eagle:::Eagle Secure Gateway 5501.1Syamt 5511.1Syamt 5521.1Syamt# ------- Switches and other stuff ---------- 5531.1Syamt 5541.1Syamt4128:255:0:44:M*: Cisco:::Cisco Catalyst 3500, 7500 etc 5551.1SyamtS8:255:0:44:M*: Cisco:12008::Cisco 12008 5561.1Syamt60352:128:1:64:M1460,N,W2,N,N,T,N,N,S: Alteon:ACEswitch::Alteon ACEswitch 5571.1Syamt64512:128:1:44:M1370: Nortel:Contivity Client::Nortel Conectivity Client 5581.1Syamt 5591.1Syamt 5601.1Syamt# ---------- Caches and whatnots ------------ 5611.1Syamt 5621.1SyamtS4:64:1:52:M1460,N,N,S,N,W0: AOL:web cache::AOL web cache 5631.1Syamt 5641.1Syamt32850:64:1:64:N,W1,N,N,T,N,N,S,M*: NetApp:5.x::NetApp Data OnTap 5.x 5651.1Syamt16384:64:1:64:M1460,N,N,S,N,W0,N: NetApp:5.3:1:NetApp 5.3.1 5661.1Syamt65535:64:0:64:M1460,N,N,S,N,W*,N,N,T: NetApp:5.3-5.5::NetApp 5.3-5.5 5671.1Syamt65535:64:0:60:M1460,N,W0,N,N,T: NetApp:CacheFlow::NetApp CacheFlow 5681.1Syamt8192:64:1:64:M1460,N,N,S,N,W0,N,N,T: NetApp:5.2:1:NetApp NetCache 5.2.1 5691.1Syamt20480:64:1:64:M1460,N,N,S,N,W0,N,N,T: NetApp:4.1::NetApp NetCache4.1 5701.1Syamt 5711.1Syamt65535:64:0:60:M1460,N,W0,N,N,T: CacheFlow:4.1::CacheFlow CacheOS 4.1 5721.1Syamt8192:64:0:60:M1380,N,N,N,N,N,N,T: CacheFlow:1.1::CacheFlow CacheOS 1.1 5731.1Syamt 5741.1SyamtS4:64:0:48:M1460,N,N,S: Cisco:Content Engine::Cisco Content Engine 5751.1Syamt 5761.1Syamt27085:128:0:40:.: Dell:PowerApp cache::Dell PowerApp (Linux-based) 5771.1Syamt 5781.1Syamt65535:255:1:48:N,W1,M1460: Inktomi:crawler::Inktomi crawler 5791.1SyamtS1:255:1:60:M1460,S,T,N,W0: LookSmart:ZyBorg::LookSmart ZyBorg 5801.1Syamt 5811.1Syamt16384:255:0:40:.: Proxyblocker:::Proxyblocker (what's this?) 5821.1Syamt 5831.1Syamt# ----------- Embedded systems -------------- 5841.1Syamt 5851.1SyamtS9:255:0:44:M536: PalmOS:Tungsten:C:PalmOS Tungsten C 5861.1SyamtS5:255:0:44:M536: PalmOS:3::PalmOS 3/4 5871.1SyamtS5:255:0:44:M536: PalmOS:4::PalmOS 3/4 5881.1SyamtS4:255:0:44:M536: PalmOS:3:5:PalmOS 3.5 5891.1Syamt2948:255:0:44:M536: PalmOS:3:5:PalmOS 3.5.3 (Handera) 5901.1SyamtS29:255:0:44:M536: PalmOS:5::PalmOS 5.0 5911.1Syamt 5921.1SyamtS23:64:1:64:N,W1,N,N,T,N,N,S,M1460: SymbianOS:7::SymbianOS 7 5931.1Syamt8192:255:0:44:M1460: SymbianOS:6048::SymbianOS 6048 (on Nokia 7650?) 5941.1Syamt8192:255:0:44:M536: SymbianOS:::SymbianOS (on Nokia 9210?) 5951.1Syamt 5961.1Syamt 5971.1Syamt# Perhaps S4? 5981.1Syamt5840:64:1:60:M1452,S,T,N,W1: Zaurus:3.10::Zaurus 3.10 5991.1Syamt 6001.1Syamt32768:128:1:64:M1460,N,W0,N,N,T0,N,N,S: PocketPC:2002::PocketPC 2002 6011.1Syamt 6021.1SyamtS1:255:0:44:M346: Contiki:1.1:rc0:Contiki 1.1-rc0 6031.1Syamt 6041.1Syamt4096:128:0:44:M1460: Sega:Dreamcast:3.0:Sega Dreamcast Dreamkey 3.0 6051.1SyamtT5:64:0:44:M536: Sega:Dreamcast:HKT-3020:Sega Dreamcast HKT-3020 (browser disc 51027) 6061.1SyamtS22:64:1:44:M1460: Sony:PS2::Sony Playstation 2 (SOCOM?) 6071.1Syamt 6081.1SyamtS12:64:0:44:M1452: AXIS:5600:v5.64:AXIS Printer Server 5600 v5.64 6091.1Syamt 6101.1Syamt 6111.1Syamt 6121.1Syamt#################### 6131.1Syamt# Fancy signatures # 6141.1Syamt#################### 6151.1Syamt 6161.1Syamt1024:64:0:40:.: *NMAP:syn scan:1:NMAP syn scan (1) 6171.1Syamt2048:64:0:40:.: *NMAP:syn scan:2:NMAP syn scan (2) 6181.1Syamt3072:64:0:40:.: *NMAP:syn scan:3:NMAP syn scan (3) 6191.1Syamt4096:64:0:40:.: *NMAP:syn scan:4:NMAP syn scan (4) 6201.1Syamt 6211.1Syamt1024:64:0:60:W10,N,M265,T: *NMAP:OS:1:NMAP OS detection probe (1) 6221.1Syamt2048:64:0:60:W10,N,M265,T: *NMAP:OS:2:NMAP OS detection probe (2) 6231.1Syamt3072:64:0:60:W10,N,M265,T: *NMAP:OS:3:NMAP OS detection probe (3) 6241.1Syamt4096:64:0:60:W10,N,M265,T: *NMAP:OS:4:NMAP OS detection probe (4) 6251.1Syamt 6261.1Syamt##################################### 6271.1Syamt# Generic signatures - just in case # 6281.1Syamt##################################### 6291.1Syamt 6301.1Syamt#*:64:1:60:M*,N,W*,N,N,T: @FreeBSD:4.0-4.9::FreeBSD 4.x/5.x 6311.1Syamt#*:64:1:60:M*,N,W*,N,N,T: @FreeBSD:5.0-5.1::FreeBSD 4.x/5.x 6321.1Syamt 6331.1Syamt*:128:1:52:M*,N,W0,N,N,S: @Windows:XP:RFC1323:Windows XP/2000 (RFC1323 no tstamp) 6341.1Syamt*:128:1:52:M*,N,W0,N,N,S: @Windows:2000:RFC1323:Windows XP/2000 (RFC1323 no tstamp) 6351.1Syamt*:128:1:64:M*,N,W0,N,N,T0,N,N,S: @Windows:XP:RFC1323:Windows XP/2000 (RFC1323) 6361.1Syamt*:128:1:64:M*,N,W0,N,N,T0,N,N,S: @Windows:2000:RFC1323:Windows XP/2000 (RFC1323) 6371.1Syamt*:128:1:64:M*,N,W*,N,N,T0,N,N,S: @Windows:XP:RFC1323:Windows XP (RFC1323, w+) 6381.1Syamt*:128:1:48:M536,N,N,S: @Windows:98::Windows 98 6391.1Syamt*:128:1:48:M*,N,N,S: @Windows:XP::Windows XP/2000 6401.1Syamt*:128:1:48:M*,N,N,S: @Windows:2000::Windows XP/2000 6411.1Syamt 6421.1Syamt 643