traffic normalization

term

securitynetworking

Kept in this browser · My desk

Rewriting traffic in transit so that every receiver interprets it the same way, removing the ambiguities used to evade inspection and much of the room used by covert channels.

Handley, Paxson and Kreibich proposed the normalizer in 2001 to protect intrusion detection; their norm processed about 100,000 packets per second. Firewalls offer the same moves as switches: OpenBSD's packet filter replaces IPv4 identifiers with random values, keeps TTLs from being lowered, modulates TCP timestamps and randomizes sequence numbers.

What it does. A traffic normalizer sits in the forwarding path and rewrites packets so that every receiver, a monitor included, interprets them the same way. Mark Handley and Vern Paxson of the International Computer Science Institute in Berkeley and Christian Kreibich of the Technical University of Munich proposed it at the 10th USENIX Security Symposium in August 2001 to stop attackers evading a network intrusion detection system (NIDS). The ambiguities they listed come from incomplete analysis (of the four commercial systems T. H. Ptacek and T. N. Newsham tested in 1998, none reassembled fragments correctly), from end systems that resolve overlapping fragments or inconsistent retransmissions differently, and from the monitor's ignorance of the path, such as whether a packet with a low time to live (TTL) will reach its target. Their user-level implementation, norm, processed about 100,000 packets per second in memory-to-memory tests, enough in their judgement for a bidirectional 100 megabit per second link.

The trade-off. Every normalization erodes end-to-end semantics. Raising a low TTL to a large value removes the monitor's doubt but breaks traceroute; zeroing padding costs almost nothing. The authors treated each move as a site's policy decision, depending on its users, performance needs and threat model, and named two practical problems: cold start, when the normalizer restarts and has lost its state, and attacks on the normalizer itself. Covert channels were not their target, they wrote, yet they zeroed padding on the principle of normalizing even without a known attack, and proposed scrambling Internet Protocol (IP) identifiers in a cryptographically secure but reversible way so that internal hosts could not be used as unwitting relays for stealth port scans that read them.

The active warden. Gina Fisk, Mike Fisk, Christos Papadopoulos and Joshua Neil (Information Hiding 2002) took the idea to covert channels. Active wardens had been postulated for nearly two decades without a published implementation that stops steganography in transit, and adding noise would break structured carriers such as the headers of the Transmission Control Protocol (TCP) and IP, so they defined minimal requisite fidelity (MRF): the degree of fidelity that end users accept and covert communication does not survive, worked out from the protocol specification. Sebastian Zander, Grenville Armitage and Philip Branch's 2007 survey lists the moves: set reserved bits and padding to zero and remove unknown extensions, always possible; zero the urgent pointer when the URG (urgent) flag is clear and the fragment offset when Don't Fragment is set; rewrite the IP identification if the normalizer sees all fragments; rewrite the TCP initial sequence number, source address and port if it keeps a mapping and rewrites the replies; rewrite TTLs and timestamps or randomize their low bits near the source; and delay, pad or insert dummy packets against timing channels, at high cost and imperfectly. Craig Rowland's own advice in 1997 was an application proxy, which rebuilds every header.

In products. OpenBSD's packet filter documents most of these as switches in pf.conf: scrub random-id replaces the IPv4 identification with random values to compensate for the predictable values many hosts generate; reassemble tcp stops either side from lowering the TTL and modulates TCP timestamps with a random number; modulate state gives each connection a high-quality random sequence number. Every one of Rowland's three header methods dies there. Cisco's Secure Firewall documentation describes an inline normalization preprocessor that clears the IPv4 reserved flag bit, the Differentiated Services byte (formerly Type of Service), the TCP reserved bits and option padding, the urgent pointer when URG is not set and the 8-bit code of ICMP (Internet Control Message Protocol) echo messages; removes data from SYN (synchronize) and RST (reset) segments; trims data to the receive window or the maximum segment size (MSS); and turns every TCP option other than MSS, window scale, timestamp and the ones explicitly allowed into No Operation. On Firewall Threat Defense routed and transparent interfaces the TTL of a connection can fall but never rise, which blocks TTL evasion. Request for Comments (RFC) 6864 (February 2013) gave the standard's blessing for IPv4: the identification of atomic datagrams may be rewritten to avoid its use as a covert channel, except under the IP Security (IPsec) Authentication Header.

The limits. Normalization removes channels only in fields whose content the protocol does not need. It cannot remove channels in content the protocol must deliver, such as the names in Domain Name System (DNS) queries, the words of a Hypertext Transfer Protocol (HTTP) request or the choice of which legitimate packet to send next, so tunnels survive it; timing can be blurred but not abolished; and Handley's paper notes that little can be done if both ends of a connection are compromised. It also costs something: what it strips, a timestamp, an option, a high TTL, may be what a diagnostic or a performance feature needed, which is why products expose each normalization as a separate setting.

Neighbours. Deep packet inspection reads traffic, normalization rewrites it; a stateful firewall holds the state a normalizer needs; covert storage channels are its main prey and covert timing channels its hardest; and the process-identifier cure of the National Computer Security Center's guide NCSC-TG-030 in 1993, replacing a counter an outsider can read with pseudo-random values nobody controls, is the same idea inside one computer.

Also known as: traffic normalisation, traffic normalizer, protocol scrubbing, normalização de tráfego

Sources

← Back to T Back to the glossary