Brute-force attack

Trying every possible key or password until one is confirmed correct. Its cost is set by the size of the space actually searched, which can be far smaller than the key length suggests.

A brute-force attack, or exhaustive search, tries candidate keys or passwords in turn until one can be checked as correct. It needs no flaw in the algorithm, only a way to test each guess. The ISC2 exam outline lists brute force among the methods of cryptanalytic attack in objective 3.7, and it can be applied from any attacker position.

Its cost is set by the size of the space searched. Each added key bit doubles the work, which is why 56-bit DES fell to purpose-built hardware while a 128-bit AES key is far out of reach for classical computers. The trap is that the space searched is not always the cipher’s key space. When a key is derived from a short passphrase, or generated with too little randomness, the attacker searches the passphrases instead, and a strong cipher does not help. Defences include adequate key length, sound key generation, key stretching and salting for passwords, and lockout where guesses are made online. A dictionary attack is a narrower form that tries likely values first.

Exam relevance: a scenario asking why an encrypted file fell despite a strong algorithm is likely to turn on the effective search space. Candidates are expected to connect key length with work factor and to spot a weak passphrase as the real weakness.