# Slide attack

__: Form of cryptanalysis__

**Short description**The **slide attack** is a form of cryptanalysis designed to deal with the prevailing idea that even weak ciphers can become very strong by increasing the number of rounds, which can ward off a differential attack. The slide attack works in such a way as to make the number of rounds in a cipher irrelevant. Rather than looking at the data-randomizing aspects of the block cipher, the slide attack works by analyzing the key schedule and exploiting weaknesses in it to break the cipher. The most common one is the keys repeating in a cyclic manner.

The attack was first described by David Wagner and Alex Biryukov. Bruce Schneier first suggested the term *slide attack* to them, and they used it in their 1999 paper describing the attack.

The only requirements for a slide attack to work on a cipher is that it can be broken down into multiple rounds of an identical *F* function. This probably means that it has a cyclic key schedule. The *F* function must be vulnerable to a known-plaintext attack. The slide attack is closely related to the related-key attack.

The idea of the slide attack has roots in a paper published by Edna Grossman and Bryant Tuckerman in an IBM Technical Report in 1977.^{[1]} Grossman and Tuckerman demonstrated the attack on a weak block cipher named New Data Seal (NDS). The attack relied on the fact that the cipher has identical subkeys in each round, so the cipher had a cyclic key schedule with a cycle of only one key, which makes it an early version of the slide attack. A summary of the report, including a description of the NDS block cipher and the attack, is given in *Cipher Systems* (Beker & Piper, 1982).

## The actual attack

First, to introduce some notation. In this section assume the cipher takes *n* bit blocks and has a key-schedule using [math]\displaystyle{ K_1 \cdots K_m }[/math] as keys of any length.

The slide attack works by breaking the cipher up into identical permutation
functions, *F*. This *F* function may consist of more than one round
of the cipher; it is defined by the key-schedule. For example, if a cipher uses an alternating key schedule where it switches between a [math]\displaystyle{ K_1 }[/math] and [math]\displaystyle{ K_2 }[/math] for each round, the *F* function would consist of two rounds. Each of the [math]\displaystyle{ K_i }[/math] will
appear at least once in *F*.

The next step is to collect [math]\displaystyle{ 2^{n/2} }[/math] plaintext-ciphertext pairs. Depending on
the characteristics of the cipher fewer may suffice, but by the birthday problem no more than [math]\displaystyle{ 2^{n/2} }[/math] should be needed. These pairs, which denoted as [math]\displaystyle{ (P,C) }[/math] are then used to find a **slid pair** which is denoted [math]\displaystyle{ (P_0,C_0) (P_1,C_1) }[/math]. A slid pair has the property that [math]\displaystyle{ P_0 = F(P_1) }[/math] and that [math]\displaystyle{ C_0 = F(C_1) }[/math]. Once a slid pair is identified, the cipher is broken because of the vulnerability to known-plaintext attacks. The key can easily be extracted from this pairing.
The slid pair can be thought to be what happens to a message after one application of the function *F*. It is ’slid’ over one encryption round and this is where the attack gets its
name.

The process of finding a slid pair is somewhat different for each cipher
but follows the same basic scheme. One uses the fact that it is relatively
easy to extract the key from just one iteration of *F*. Choose any pair of
plaintext-ciphertext pairs, [math]\displaystyle{ (P_0,C_0) (P_1,C_1) }[/math] and check to see what the keys corresponding to [math]\displaystyle{ P_0 = F(P_1) }[/math] and [math]\displaystyle{ C_0 = F(C_1) }[/math] are. If these keys match, this is a slid pair; otherwise move on to the next pair.

With [math]\displaystyle{ 2^{n/2} }[/math] plaintext-ciphertext pairs one slid pair is expected, along with a small number of false-positives depending on the structure of the cipher. The false positives can be eliminated by using the keys on a different message-ciphertext pair to see if the encryption is correct. The probability that the wrong key will correctly encipher two or more messages is very low for a good cipher.

Sometimes the structure of the cipher greatly reduces the number of plaintext-ciphertext pairs needed, and thus also a large amount of the work. The clearest of these examples is the Feistel cipher using a cyclic key schedule. The reason for this is given a [math]\displaystyle{ P = (L_0,R_0) }[/math] the search is for a [math]\displaystyle{ P_0=(R_0, L_0 \bigoplus F(R_0,K)) }[/math]. This reduces the possible paired messages from [math]\displaystyle{ 2^n }[/math] down to [math]\displaystyle{ 2^{n/2} }[/math] (since half the message is fixed) and so at most [math]\displaystyle{ 2^{n/4} }[/math] plaintext-ciphertext pairs are needed in order to find a slid pair.

## References

- ↑ E. K. Grossman; B. Tuckerman (1977).
*Analysis of a Feistel-like cipher weakened by having no rotating key*(Technical report). IBM Thomas J. Watson Research Center. RC 6375.

- Henry Beker; Fred Piper (1982).
*Cipher Systems: The Protection of Communications*.*John Wiley & Sons*. pp. 263–267. ISBN 978-0-471-89192-5. (contains a summary of the paper by Grossman and Tuckerman) - Alex Biryukov and David Wagner (March 1999). "Slide Attacks" (PDF/PostScript). 6th International Workshop on Fast Software Encryption (FSE '99). Rome: Springer-Verlag. pp. 245–259. http://www.cs.berkeley.edu/~daw/papers/slide-fse99.ps. Retrieved 2007-09-03.
- Alex Biryukov; David Wagner (May 2000). "Advanced Slide Attacks" (PDF/PostScript). Advances in Cryptology, Proceedings of EUROCRYPT 2000. Bruges: Springer-Verlag. pp. 589–606. https://www.iacr.org/archive/eurocrypt2000/1807/18070595-new.pdf. Retrieved 2007-09-03.
- S. Furuya (December 2001). "Slide Attacks with a Known-Plaintext Cryptanalysis". 4th International Conference on Information Security and Cryptology (ICISC 2001). Seoul: Springer-Verlag. pp. 214–225. http://register.itfind.or.kr/Report01/200401/IITA/IITA-0763-017/IITA-0763-017.pdf. Retrieved 2007-09-03.
- Eli Biham (1994). "New Types of Cryptanalytic Attacks Using Related Keys" (PDF/PostScript).
*Journal of Cryptology***7**(4): 229–246. doi:10.1007/bf00203965. ISSN 0933-2790. http://citeseer.ist.psu.edu/biham94new.html. Retrieved 2007-09-03. - M. Ciet, G. Piret, J. Quisquater (2002) (PDF/PostScript).
*Related-Key and Slide Attacks: Analysis, Connections, and Improvements*. http://citeseer.ist.psu.edu/560898.html. Retrieved 2007-09-04.

Original source: https://en.wikipedia.org/wiki/Slide attack.
Read more |