covert timing channel

term

securitynetworking

Kept in this browser · My desk

A covert channel in which the sender changes when events happen, such as the gaps between packets, and the receiver decodes the information by measuring them.

The Orange Book defined it as one process modulating its own use of system resources so that another sees a change in response time. On networks the simplest version sends a packet in an interval for 1 and stays silent for 0; JitterBug (2006) added tiny keystroke delays so that an interactive session's packet gaps carried the bits without compromising the computer.

What it is exactly. The Trusted Computer System Evaluation Criteria (TCSEC) of 1985 say that covert timing channels include all vehicles that would allow one process to signal information to another by modulating its own use of system resources so that the change in response time observed by the second process provides information. The glossary of the National Institute of Standards and Technology (NIST) keeps that wording, adapted from the Committee on National Security Systems Instruction (CNSSI) 4009-2022 and Request for Comments (RFC) 4949. The receiver needs no shared storage at all, only a clock and something it can observe: how long its own operation takes, when packets arrive, how fast a flow runs. That is why timing channels outlive the fixes that close storage channels, and why the Orange Book left them to its higher classes: B2 searched for storage channels only, B3 required the analysis of both kinds, and the text on systems beyond A1 expected covert timing channels to be more fully addressed in the future.

Its oldest forms. Butler Lampson's sixth leak of 1973 varied the ratio of computing to input and output, or the paging rate, so that another process saw the system slow down; he observed that coding lets information through even such a noisy effect, at a rate that may be very low. On networks, C. G. Girling proposed in 1987 that a sender transmit or stay silent in each time interval, and suggested lengthening the interval to fight noise at the cost of capacity. Serdar Cabuk, Carla Brodley and Clay Shields built a working Internet Protocol (IP) timing channel on that on/off principle and presented it at the Association for Computing Machinery's Conference on Computer and Communications Security (ACM CCS) in October 2004; Cabuk's 2006 Purdue thesis added time-replay channels, which record the inter-packet delays of legitimate traffic and replay them as symbols. In the 2015 survey by Steffen Wendzel, Sebastian Zander, Bernhard Fechner and Christian Herdin the timing family has four patterns: inter-arrival time, rate, protocol data unit (PDU) order and retransmission.

A worked example. JitterBug, by Gaurav Shah, Andres Molina and Matt Blaze of the University of Pennsylvania (USENIX Security Symposium, 2006), sits in a keyboard cable and needs no compromise of the computer. It encodes one bit per keystroke in the gap δ between key events, modulo a timing window w: a 0 when δ mod w is 0, a 1 when it is w/2. With w = 20 milliseconds, to send 0, 1, 0, 1, 1 over natural gaps of 123, 145, 333, 813 and 140 milliseconds it holds keys back so that the gaps become 140, 150, 340, 830 and 150, which read 0, 10, 0, 10 and 10 modulo 20. Interactive programs such as the Secure Shell (SSH) send each keystroke at once, so the bits ride on the timing of the encrypted session's packets and a passive receiver anywhere on the path decodes them. Across the PlanetLab research network the raw bit error rate with a 20-millisecond window was about 4.5% to a node in Singapore 236 milliseconds and 18 hops away, and the authors found 20 milliseconds of added lag unnoticeable to the typist.

Detection. Steven Gianvecchio and Haining Wang (ACM CCS 2007) sort detectors into shape tests, which compare the distribution of delays with a reference (the Kolmogorov-Smirnov test measures the largest distance between the two), and regularity tests, which notice that covert flows vary less over time than human traffic: Cabuk's test takes the standard deviation of the delays in successive windows and then the spread of their pairwise relative differences, and his ε-similarity counts delays that cluster at multiples of the interval. Their own entropy measures catch abnormal shape with the entropy of the delay distribution and abnormal regularity with corrected conditional entropy, an estimate of entropy rate designed for small samples. The limits are on record: Cabuk's regularity measures failed once noise exceeded about 10%, replayed delays defeat distribution analysis under certain assumptions, and JitterBug's authors rotated the window by a shared pseudo-random sequence precisely so that the inter-arrival times stop clustering.

Countermeasures. One family takes away the receiver's clock. Wei-Ming Hu's fuzzy time of 1991 randomized the relation between real and virtual time at a cost of about 5 to 6% of performance on a VAX; after Spectre, whose attacks carry data out of speculative execution through cache-timing covert channels such as Flush+Reload, major browsers degraded the resolution of the JavaScript timer and disabled SharedArrayBuffers, which can serve as a timer, although the Spectre authors call the protection unclear because noise only reduces the rate. The other family takes away the sender's modulation: pad links to fixed rates or insert dummy packets, which Sebastian Zander, Grenville Armitage and Philip Branch's 2007 survey calls costly and imperfect. NIST's control SC-31 asks for covert channel analysis, lets an organization reduce the maximum bandwidth of timing channels to values it defines, and notes that eliminating them completely is usually not possible without significant performance impact.

Neighbours. Its partner is the covert storage channel; beaconing, the regular call home of malware, is a timing pattern defenders hunt rather than a channel; a timing side channel, such as a cache-timing attack on cryptographic code, leaks without a willing sender; jitter is the noise every network timing channel has to survive.

Also known as: timing channel, covert timing channels, canal encoberto de temporização, canal de temporização

Sources

← Back to C Back to the glossary