covert storage channel

term

securitynetworking

Kept in this browser · My desk

A covert channel in which one process writes a value or a state and another reads it, through a place that was not meant for communication.

Lampson's example was a file lock: whether a file can be opened acts as a shared bit. On networks the classic is the IP identification field, which Craig Rowland's covert_tcp of 1996 and 1997 filled with characters multiplied by 256. The NCSC's 1993 guide found such channels systematically with a shared resource matrix of operations against the attributes they read and modify.

What it is exactly. The Trusted Computer System Evaluation Criteria (TCSEC), the United States Department of Defense's Orange Book of 1985, say that covert storage channels include all vehicles that would allow the direct or indirect writing of a storage location by one process and its direct or indirect reading by another. The glossary of the National Institute of Standards and Technology (NIST) keeps the idea in the wording of Request for Comments (RFC) 4949 and the Committee on National Security Systems Instruction (CNSSI) 4009-2022: a system feature that lets one entity signal to another by writing a storage location that the second later reads. The storage location need not be a variable: it can be the existence of a file, the state of a lock, a counter, the next value an allocator hands out or a field in a packet header. What makes it storage rather than timing is that the receiver reads a value, not a clock.

Origin. Butler Lampson's note on the confinement problem of October 1973 already holds the classic: a file open for writing cannot be opened for reading, so its lock state acts as a shared bit; he credited the example to A. G. Fraser of Bell Laboratories. The Orange Book made the search a requirement: at class B2 the developer had to conduct a thorough search for covert storage channels and determine the maximum bandwidth of each, by actual measurement or engineering estimation, and the trusted computing base (TCB) had to be able to audit the events that may be used to exploit them.

Finding them. The National Computer Security Center's guide NCSC-TG-030 (November 1993) teaches Richard Kemmerer's shared resource matrix of 1983. Rows are the TCB's primitive operations, columns the attributes of shared resources; a cell gets R where the operation reads the attribute and M where it modifies it; the matrix is closed transitively to catch indirect reads; and every column where one process can modify what another, at a level that does not dominate the first, can read is a candidate, unless it turns out to be legal (L), to convey nothing useful (N) or to have the same process at both ends (S). Applied to Lampson's lock, open(F) reads and modifies the lock state and close(F) modifies it; High can modify, Low can read, and the matrix finds the channel without knowing anyone's intent. The same guide's cautionary example is the process identifier: allocated from an incrementing counter, it tells a receiver whether a sender created a process in between, a channel of 10 to 500 bits per second, and pseudo-random, non-monotonic allocation reduces it to negligible values at negligible cost.

On the network. In the 2015 survey by Steffen Wendzel, Sebastian Zander, Bernhard Fechner and Christian Herdin, patterns P1 to P7 of the 11 they define are storage channels: size modulation, sequence, added redundancy, protocol data unit (PDU) corruption or loss, random values, value modulation and reserved or unused fields. The best-known case is Craig Rowland's covert_tcp (First Monday, 1997). The Internet Protocol (IP) identification field is a 16-bit value that RFC 791 has the sender assign "to aid in assembling the fragments of a datagram"; Rowland put a character code multiplied by 256 in it, so H (72) travelled as 18,432, 0x4800, and the receiver divided by 256. The same trick in the Transmission Control Protocol (TCP) initial sequence number (ISN) multiplied the character by 16,777,216, so H became 1,207,959,552; a third method bounced a forged SYN (synchronize) segment off an innocent server, whose reply delivered the sequence number plus one, as its acknowledgement number, to the real receiver. At one packet per second each method moved 8 bits per second.

Why they are found. Real operating systems give random-looking fields structure, and Steven Murdoch and Stephen Lewis of the University of Cambridge showed in 2005 that a warden who knows the structure can test for it. Linux 2.4 and later use per-destination identification counters for packets that may be fragmented; OpenBSD rekeys its identification generator every 3 minutes or 30,000 identifiers; OpenBSD ISNs always have bit 15 cleared; Linux 2.2 and early 2.4 put a time-derived value in the top byte of the ISN. Values that do not match the claimed system betray the channel, and Rowland's fail at once: the low byte of every identifier is zero, and the two Ls of HELLO share an identification that an incrementing counter would never repeat. Murdoch and Lewis then showed how to map encrypted data onto ISNs indistinguishable from those of Linux and OpenBSD, so a careful channel imitates one operating system exactly or is caught.

Why they are destroyed. A field the protocol ignores can be rewritten in transit. RFC 6864 (February 2013) observed that the old uniqueness rule for IPv4 identifiers would limit a connection to 6.4 megabits per second at typical datagram sizes, defined the field only for datagrams that may be fragmented, let sources put any value in atomic datagrams (Don't Fragment set, no more fragments, offset zero) and told receivers to ignore it there. Its security considerations draw the consequence: the unconstrained field can more easily be used as a covert channel, and rewriting it may be desirable, prohibited only where the IP Security (IPsec) Authentication Header protects it. Rewriting is the process-identifier cure of 1993 applied to packets. What it cannot reach is storage in content the protocol must deliver, such as the names asked of the Domain Name System (DNS), which is why DNS tunnels survive any header normalization.

Neighbours. The covert timing channel is the other kind; steganography in an image is a storage channel in content; DNS and Internet Control Message Protocol (ICMP) tunnelling are storage channels scaled up to whole protocols; traffic normalization is the network's tool for eliminating them.

Also known as: storage channel, covert storage channels, canal encoberto de armazenamento, canal de armazenamento

Sources

← Back to C Back to the glossary