Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Brute-force attack

From Wikipedia, the free encyclopedia
Cryptanalytic method for unauthorized users to access data

This article is about the cryptanalytic method. For similarly named methods in other disciplines, seeBrute force (disambiguation).

Incryptography, abrute-force attack orexhaustive key search is acryptanalytic attack that consists of an attacker submitting many possiblekeys orpasswords with the hope of eventually guessing correctly. This strategy can theoretically be used to break any form of encryption that is notinformation-theoretically secure.[1] However, in a properly designed cryptosystem the chance of successfully guessing the key is negligible.

Whencracking passwords, this method is very fast when used to check all short passwords, but for longer passwords other methods such as thedictionary attack are used because a brute-force search takes too long. Longer passwords, passphrases and keys have more possible values, making them exponentially more difficult to crack than shorter ones due to diversity of characters.[2]

Brute-force attacks can be made less effective byobfuscating the data to be encoded making it more difficult for an attacker to recognize when the code has been cracked or by making the attacker do more work to test each guess. One of the measures of the strength of an encryption system is how long it would theoretically take an attacker to mount a successful brute-force attack against it.[3]

Brute-force attacks are an application of brute-force search, the general problem-solving technique of enumerating all candidates and checking each one. The word 'hammering' is sometimes used to describe a brute-force attack,[4] with 'anti-hammering' for countermeasures.[5]

Basic concept

[edit]

Brute-force attacks work by calculating every possible combination that could make up a password and testing it to see if it is the correct password. As the password's length increases, the amount of time, on average, to find the correct password increases exponentially.[6]

Theoretical limits

[edit]
The 1998Electronic Frontier Foundation's US$250,000DEScracking 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 64 Deep Crack chips using both sides.

The resources required for a brute-force attack growexponentially with increasingkey size, not linearly. Although U.S. export regulations historically restricted key lengths to 56-bitsymmetric keys (e.g.Data Encryption Standard), these restrictions are no longer in place, so modern symmetric algorithms typically use computationally stronger 128- to 256-bit keys.

There is a physical argument that a 128-bit symmetric key is computationally secure against brute-force attack. TheLandauer limit implied by the laws of physics sets a lower limit on the energy required to perform a computation ofkT  · ln 2 per bit erased in a computation, whereT is the temperature of the computing device inkelvins,k is theBoltzmann constant, and thenatural logarithm of 2 is about 0.693 (0.6931471805599453). No irreversible computing device can use less energy than this, even in principle.[7] 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, theoretically, require 2128 − 1 bit flips on a conventional processor. If it is assumed that the calculation occurs near room temperature (≈300 K), the Von Neumann-Landauer Limit can be applied to estimate the energy required as ≈1018joules, which is equivalent to consuming 30gigawatts of power for one year. This is equal to 30×109 W×365×24×3600 s = 9.46×1017 J or 262.7 TWh (about 0.1% of theyearly world energy production). The full actual computation – checking each key to see if a solution has been found – would consume many times this amount. Furthermore, this is simply the energy requirement for cycling through the key space; the actual time it takes to flip each bit is not considered, which is certainly greater than 0 (seeBremermann's limit).[citation needed]

However, this argument assumes that the register values are changed using conventional set and clear operations, which inevitably generateentropy. It has been shown that computational hardware can be designed not to encounter this theoretical obstruction (seereversible computing), though no such computers are known to have been constructed.[citation needed]

ModernGPUs are well-suited to the repetitive tasks associated with hardware-based password cracking.

As commercial successors of governmentalASIC solutions have become available, also known ascustom hardware attacks, two emerging technologies have proven their capability in the brute-force attack of certain ciphers. One is moderngraphics processing unit (GPU) technology,[8][page needed] the other is thefield-programmable gate array (FPGA) technology. GPUs benefit from their wide availability and price-performance benefit, FPGAs from theirenergy efficiency per cryptographic operation. Both technologies try to transport the benefits of parallel processing to brute-force attacks. In case of GPUs some hundreds, in the case of FPGA some thousand processing units making them much better suited to cracking passwords than conventional processors. For instance in 2022, 8 Nvidia RTX 4090 GPU were linked together to test password strength by using the softwareHashcat with results that showed 200 billion eight-characterNTLM password combinations could be cycled through in 48 minutes.[9][10]

Various publications in the fields of cryptographic analysis have proved the energy efficiency of today's FPGA technology, for example, the COPACOBANA FPGA Cluster computer consumes the same energy as a single PC (600 W), but performs like 2,500 PCs for certain algorithms. A number of firms provide hardware-based FPGA cryptographic analysis solutions from a single FPGAPCI Express card up to dedicated FPGA computers.[citation needed]WPA andWPA2 encryption have successfully been brute-force attacked by reducing the workload by a factor of 50 in comparison to conventional CPUs[11][12] and some hundred in case of FPGAs.

A single COPACOBANA board boasting 6 Xilinx Spartans – a cluster is made up of 20 of these.

Advanced Encryption Standard (AES) permits the use of 256-bit keys. Breaking a symmetric 256-bit key by brute-force requires 2128 times more computational power than a 128-bit key. One of the fastest supercomputers in 2019 has a speed of 100petaFLOPS which could theoretically check 100 trillion (1014) AES keys per second (assuming 1000 operations per check), but would still require 3.67×1055 years to exhaust the 256-bit key space.[13]

An underlying assumption of a brute-force attack is that the complete key space was used to generate keys, something that relies on an effectiverandom number generator, and that there are no defects in the algorithm or its implementation. For example, a number of systems that were originally thought to be impossible to crack by brute-force have nevertheless beencracked because thekey space to search through was found to be much smaller than originally thought, because of a lack of entropy in theirpseudorandom number generators. These includeNetscape's implementation ofSecure Sockets Layer (SSL) (cracked byIan Goldberg andDavid Wagner in 1995) and aDebian/Ubuntu edition ofOpenSSL discovered in 2008 to be flawed.[14][15] A similar lack of implemented entropy led to the breaking ofEnigma's code.[16][17]

Credential recycling

[edit]

Credential recycling is thehacking practice of re-using username and password combinations gathered in previous brute-force attacks. A special form of credential recycling ispass the hash, whereunsalted hashed credentials are stolen and re-used without first being brute-forced.[18]

Unbreakable codes

[edit]

Certain types of encryption, by their mathematical properties, cannot be defeated by brute-force. An example of this isone-time pad cryptography, where everycleartext bit has a corresponding key from a truly random sequence of key bits. A 140 character one-time-pad-encoded string subjected to a brute-force attack would eventually reveal every 140 character string possible, including the correct answer – but of all the answers given, there would be no way of knowing which was the correct one. Defeating such a system, as was done by theVenona project, generally relies not on pure cryptography, but upon mistakes in its implementation, such as the key pads not being truly random, intercepted keypads, or operators making mistakes.[19]

Countermeasures

[edit]

In case of anoffline attack where the attacker has gained access to the encrypted material, one can try key combinations without the risk of discovery or interference. In case ofonline attacks, database and directory administrators can deploy countermeasures such as limiting the number of attempts that a password can be tried, introducing time delays between successive attempts, increasing the answer's complexity (e.g., requiring aCAPTCHA answer or employingmulti-factor authentication), and/or locking accounts out after unsuccessful login attempts.[20][page needed] Website administrators may prevent a particular IP address from trying more than a predetermined number of password attempts against any account on the site.[21] Additionally, the MITRE D3FEND framework provides structured recommendations for defending against brute-force attacks by implementing strategies such as network traffic filtering, deploying decoy credentials, and invalidating authentication caches.[22]

Reverse brute-force attack

[edit]

In a reverse brute-force attack (also called password spraying), a single (usually common) password is tested against multiple usernames or encrypted files.[23] The process may be repeated for a select few passwords. In such a strategy, the attacker is not targeting a specific user.

See also

[edit]

Notes

[edit]
  1. ^Paar, Pelzl & Preneel 2010, p. 7.
  2. ^Urbina, Ian (2014)."The Secret Life of Passwords. The New Times".The New York Times.
  3. ^Schrittwieser, Sebastian; Katzenbeisser, Stefan (2011),"Code Obfuscation against Static and Dynamic Reverse Engineering",Information Hiding, Lecture Notes in Computer Science, vol. 6958, Berlin, Heidelberg: Springer Berlin Heidelberg, pp. 270–284,doi:10.1007/978-3-642-24178-9_19,ISBN 978-3-642-24177-2, retrievedSeptember 5, 2021{{citation}}: CS1 maint: work parameter with ISBN (link)
  4. ^"Secure your site from Brute force attacks using Sebsoft's Anti Hammering Authentication Plugin #MoodlePlugins #MoodleSecurity".elearnmagazine.com. e Learn Magazine. January 16, 2016. RetrievedOctober 27, 2022.
  5. ^"Configure Serv-U to protect against brute force attacks".solarwinds.com. Solar Winds. RetrievedOctober 27, 2022.
  6. ^"Brute Force Attack: Definition and Examples".www.kaspersky.com. October 20, 2020. RetrievedNovember 8, 2020.
  7. ^Landauer 1961, p. 183-191.
  8. ^Graham 2011.
  9. ^Rudisail, B. (November 17, 2022)."Password-cracking With High-Performance GPUs: Is There a Way to Prevent It?". Spiceworks. RetrievedDecember 24, 2023.
  10. ^Pires, F. (October 18, 2022)."Eight RTX 4090s Can Break Passwords in Under an Hour". Future Publishing. RetrievedDecember 25, 2023.
  11. ^Kingsley-Hughes 2008.
  12. ^Kamerling 2007.
  13. ^"November 2019 | TOP500 Supercomputer Sites".www.top500.org. Archived fromthe original on November 19, 2019. RetrievedMay 15, 2020.
  14. ^Viega, Messier & Chandra 2002, p. 18.
  15. ^CERT-2008.
  16. ^Ellis 2005.
  17. ^NSA-2009.
  18. ^"What is a Pass-the-Hash Attack (PtH)?".BeyondTrust. August 4, 2023.Archived from the original on May 15, 2024. RetrievedJune 23, 2024.
  19. ^Reynard 1997, p. 86.
  20. ^Burnett & Foster 2004.
  21. ^Ristic 2010, p. 136.
  22. ^"Implementing MITRE D3FEND for ATT&CK Technique T1110: Brute Force".D3 Security. August 25, 2023. RetrievedJune 19, 2024.
  23. ^"InfoSecPro.com - Computer, network, application and physical security consultants".www.infosecpro.com.Archived from the original on April 4, 2017. RetrievedMay 8, 2018.

References

[edit]

External links

[edit]
Common
algorithms
Less common
algorithms
Other
algorithms
Design
Attack
(cryptanalysis)
Standardization
Utilization
Common functions
SHA-3 finalists
Other functions
Password hashing/
key stretching functions
General purpose
key derivation functions
MAC functions
Authenticated
encryption
modes
Attacks
Design
Standardization
Utilization
General
Mathematics
Retrieved from "https://en.wikipedia.org/w/index.php?title=Brute-force_attack&oldid=1323935452"
Category:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp