- Brute force attack
In

cryptanalysis , a**brute force attack**is a method of defeating acryptographic scheme by trying a large number of possibilities; for example, possible keys in order to decrypt a message. In most schemes, the theoretical possibility of a brute force attack is recognized, but it is set up in such a way that it would be computationally infeasible to carry out. Accordingly, one definition of "breaking" a cryptographic scheme is to find a method faster than a brute force attack.The selection of an appropriate

key length depends on the practical feasibility of performing a brute force attack. By obfuscating the data to be encoded, brute force attacks are made less effective as it is more difficult to determine when one has succeeded in breaking the code.The brute force attack could be combined with a

dictionary attack .**ymmetric ciphers**For symmetric-key ciphers, a brute force attack typically means a

brute-force search of thekey space ; that is, testing all possible keys in order to recover theplaintext used to produce a particularciphertext .In a brute force attack, the expected number of trials before the correct key is found is equal to half the size of the key space. For example, if there are 2

^{64}possible keys, a brute force attack would, on average, be expected to find a key after 2^{63}trials. [*cite book | author = Bruce Schneier | title = Applied Cryptography, Second Edition | publisher = John Wiley & Sons | date = 1996 | pages = p. 151 | isbn = 0-471-11709-9*]For each trial of a candidate key the attacker needs to be able to recognize when he has found the correct key. The most straightforward way is to obtain a few corresponding plaintext and ciphertext pairs, that is, a

known-plaintext attack . Alternatively, aciphertext-only attack is possible by decrypting ciphertext using each candidate key, and testing the result for similarity to plaintext language—for example, English encoded inASCII .In general, a

symmetric key cipher is considered secure if there is no method less expensive (in time, memory requirements, etc) than brute force; Claude Shannon used the term "work factor" for this.Symmetric ciphers with keys of length up to 64 bits have been broken by brute force attacks. DES, a widely-used

block cipher which uses 56-bit keys, was broken by custom hardware in 1998 (seeEFF DES cracker ), and a message encrypted withRC5 using a 64-bit key was broken more recently byDistributed.net . More recently, the [*http://www.copacobana.org COPACOBANA (Cost-Optimized Parallel COde Breaker)*] was built, which is a reconfigurable code breaker that is suited for key searching of many different algorithms, including DES. In addition, it is commonly speculated that government intelligence agencies (such as the U.S.NSA ) can successfully attack a symmetric key cipher with long key lengths, such as a 64-bit key, using brute force. For applications requiring long term security, 128 bits is, as of 2004, currently thought a sufficient key length for new systems using symmetric key algorithms.NIST has recommended that 80-bit designs be phased out by 2015.If keys are generated in a weak way, for example, derived from a guessable-

password , it is possible to exhaustively search over a much smaller set, for example, keys generated from passwords in a dictionary. Seepassword cracking andpassphrase for more information.Ciphers with proven perfect secrecy, such as the

one-time pad , cannot be broken by a brute force attack.**Theoretical limits**The resources required for a brute force attack scale exponentially with increasing

key size , not linearly. As a result, doubling the key size for an algorithm does not simply double the required number of operations, but rather squares them. Although algorithms which use 56 bit keys (e.g. the obsolete DES) are now vulnerable to brute force attack, this is not true of more modern encryption algorithms such as AES,Twofish and Serpent which use 128, 192 or 256 bit keys as standard.There is a physical argument that a 128 bit symmetric key is secure against brute force attack. The so-called Von Neumann-Landauer Limit implied by the laws of physics sets a lower limit on the energy required to perform a computation of $ln(2)\; kT$ per bit erased in a computation, where T is the temperature of the computing device in

kelvin , k is theBoltzmann constant , and thenatural logarithm of 2 is about 0.693. No irreversible computing device can use less energy than this, even in principle. [*Rolf Landauer, " [*]*http://domino.research.ibm.com/tchjr/journalindex.nsf/c469af92ea9eceac85256bd50048567c/8a9d4b4e96887b8385256bfa0067fba2?OpenDocument Irreversibility and heat generation in the computing process*] ," IBM Journal of Research and Development, vol. 5, pp. 183-191, 1961.Thus, in order to simply flip through the possible values for a 128-bit symmetric key (ignoring doing the actual computing to check it) would require $2^\{128\}\; -1$ bit flips. If we assume that the calculation occurs near room temperature (~300 K) we can apply the Von Neumann-Landauer Limit to estimate the energy required as $~10^\{18\}$ Joules, which is equivalent to consuming 30 gigawatts of power for one year ($30\; imes\; 10^9\; W\; imes\; 365\; imes\; 24\; imes\; 3600\; s\; =\; 9.46\; imes\; 10^\{17\}\; J$). The full actual computation—checking each key to see if you have found a solution—would consume many times this amount.

However, this argument assumes that the register values are changed using conventional set and clear operations which inevitably generate entropy. It has been shown that computational hardware can be designed not to encounter this theoretical obstruction: see

reversible computing . It should be pointed out that no known such computers have been constructed.The amount of time required to break a 128 bit key is also daunting. Each of the $2^\{128\}$ possibilities must be checked. This is an enormous number,

**340,282,366,920,938,463,463,374,607,431,768,211,456**in decimal. A device that could check a billion billion keys ($10^\{18\}$) per second would still require about $10^\{13\}$ years to exhaust the key space. This is longer than theage of the universe , which is about 13,000,000,000 ($1.3\; imes\; 10^\{10\}$) years.AES permits the use of 256 bit keys. Breaking a symmetric 256 bit key by brute force requires $2^\{128\}$ times more computational power than a 128 bit key. A device that could check a billion billion ($10^\{18\}$) AES keys per second would require about $3\; imes\; 10^\{51\}$ years to exhaust the 256 bit key space.

Hence, 128 bit symmetric keys are impractical to attack by brute force methods using current technology and resources, and 256 bit keys are not likely to be broken by brute force methods using any obvious future technology. The underlying assumption is that the complete keyspace is used to generate keys, something that relies on an effective random number generator.

**Unbreakable codes**Certain types of encryption, by their mathematical properties, cannot be defeated by brute force. An example of this is

one-time pad cryptography, where everycleartext bit has a corresponding key bit. One-time pads rely on the ability to generate a truly random sequence of key bits. A brute force attack would eventually reveal the correct decoding, but also every other possible combination of bits, and would have no way of distinguishing one from the other. A small 100 byte one-time pad encoded string subjected to a brute force attack would eventually reveal every 100 byte string possible, including the correct answer, but mostly nonsense. Of all the answers given, there is no way of knowing which is the correct one. Nevertheless, the system can be defeated if not implemented correctly, for example ifone-time pad s are re-used. [*cite book|url=http://books.google.com/books?id=3nTmBW0ONEEC&pg=PA86|title=Secret Code Breaker II: A Cryptanalyst's Handbook|author=Robert Reynard|isbn=1889668060|date=1997|acccessdate=2008-09-21|pages=p86*]**Controversy**A number of systems that were originally thought to be impossible to crack by brute force have nevertheless controversially been cracked in this manner. For example,

Netscape 's implementation ofSecure Sockets Layer (SSL) was cracked byIan Goldberg andDavid Wagner in 1995, after they discovered that thekey space was in practice smaller than anticipated due to a bug in the random number generator of the software. A similar bug was found in 2008 in theOpenSSL library used by theDebian andUbuntu operating systems. [*cite web|url=http://www.us-cert.gov/cas/techalerts/TA08-137A.html|title=Technical Cyber Security Alert TA08-137A: Debian/Ubuntu OpenSSL Random Number Generator Vulnerability|date=2008-05-16|accessdate=2008-08-10|publisher=*]United States Computer Emergency Readiness Team The weakness of DES algorithm, primarily due to its relatively small

key space , was publically illustrated by theDES Challenges , resulting ultimately in the adoption of AES in 2002.**ee also***

Side-channel attack

*Cryptographic key length for a fuller discussion of recommended key sizes for symmetric and asymmetric algorithms.

*TWINKLE andTWIRL

*40-bit encryption

*Distributed.net

*MD5CRK

*Unicity distance

*RSA Factoring Challenge

*Custom hardware attack

*Dictionary attack **References*** Leonard M. Adleman, Paul W. K. Rothemund, Sam Roweis and Erik Winfree, On Applying Molecular Computation To The Data Encryption Standard, in Proceedings of the Second Annual Meeting on DNA Based Computers, Princeton University, June 10–12, 1996.

* "Cracking DES — Secrets of Encryption Research, Wiretap Politics & Chip Design" by the Electronic Frontier Foundation (ISBN 1-56592-520-3).

* W. Diffie and M.E. Hellman, Exhaustive cryptanalysis of the NBS Data Encryption Standard, Computer 10 (1977), pp74–84.

* Michael J. Wiener, "Efficient DES Key Search", presented at the rump session of Crypto 93; reprinted in Practical Cryptography for Data Internetworks, W. Stallings, editor, IEEE Computer Society Press, pp31–79 (1996).**External links*** [

*http://www.cl.cam.ac.uk/users/rnc1/brute.html Brute force attacks on cryptographic keys*] — a survey by Richard Clayton

* [*http://www.distributed.net/des/ DES cracking contest*]

* [*http://www.keylength.com/ www.keylength.com: An online keylength calculator*]

* [*http://www.copacobana.org The COPACOBANA (Cost-Optimized Parallel COde Breaker) reconfigurable code breaker*]

* [*http://www.digitalgenesis.com/software/phrel/ phrel: A Linux utility to help prevent brute force attacks on FTP, DNS and other protocols.*]

* [*http://www.webappsec.org/projects/threat/classes/brute_force.shtml WASC Threat Classification - Brute Force*]**Notes**

*Wikimedia Foundation.
2010.*

### Look at other dictionaries:

**Brute-force attack**— The EFF s US$250,000 DES cracking machine contained over 1,800 custom chips and could brute force a DES key in a matter of days. The photograph shows a DES Cracker circuit board fitted with 32 Deep Crack chips and some control chips. In… … Wikipedia**Brute-Force-Attack**— Die Brute Force Methode (engl. für „Methode der rohen Gewalt“), auch Exhaustionsmethode (von lat. exhaurire = ausschöpfen), ist eine Lösungsmethode für Probleme aus den Bereichen Informatik, Kryptologie und Spieltheorie, die auf dem Ausprobieren… … Deutsch Wikipedia**Brute force attack**— Die Brute Force Methode (engl. für „Methode der rohen Gewalt“), auch Exhaustionsmethode (von lat. exhaurire = ausschöpfen), ist eine Lösungsmethode für Probleme aus den Bereichen Informatik, Kryptologie und Spieltheorie, die auf dem Ausprobieren… … Deutsch Wikipedia**brute-force attack**— A technique employed by intruders that checks every password in a password file against every possible password generated sequentially. A brute force attack is very clumsy, is usually considered the last resort in an attack, takes a long… … Dictionary of networking**brute\ force\ attack**— Angriff mit roher Gewalt , Bezeichnung für plumpe Versuche, verschlüsselte Nachrichten oder Passwörter zu knacken. Dies soll durch systematisches Ausprobieren von Wörtern gelingen. Der Aufwand dafür steigt exponentiell mit der Länge des… … Online-Wörterbuch Deutsch-Lexikon**Brute force**— may refer to: * Brute force search, a trivial computer problem solving technique * Brute force attack, a method of defeating a cryptographic scheme by trying a large number of possibilities * Proof by exhaustion or brute force method, a method of … Wikipedia**Brute-force search**— In computer science, brute force search or exhaustive search, also known as generate and test, is a trivial but very general problem solving technique that consists of systematically enumerating all possible candidates for the solution and… … Wikipedia**Brute-Force-Methode**— Die Brute Force Methode (von engl. brute force = rohe Gewalt) bzw. Methode der rohen Gewalt, auch Exhaustionsmethode (von lat. exhaurire = ausschöpfen), ist eine Lösungsmethode für Probleme aus den Bereichen Informatik, Kryptologie und… … Deutsch Wikipedia**Brute-Force**— Die Brute Force Methode (engl. für „Methode der rohen Gewalt“), auch Exhaustionsmethode (von lat. exhaurire = ausschöpfen), ist eine Lösungsmethode für Probleme aus den Bereichen Informatik, Kryptologie und Spieltheorie, die auf dem Ausprobieren… … Deutsch Wikipedia**Brute-Force-Angriff**— Die Brute Force Methode (engl. für „Methode der rohen Gewalt“), auch Exhaustionsmethode (von lat. exhaurire = ausschöpfen), ist eine Lösungsmethode für Probleme aus den Bereichen Informatik, Kryptologie und Spieltheorie, die auf dem Ausprobieren… … Deutsch Wikipedia