Objective 3.7
Attacks on cryptography
What it is
Cryptanalytic attacks try to defeat cryptographic protections. Brute force tries every key. Ciphertext-only means the attacker has only scrambled messages. Known plaintext means they have some pairs of original and scrambled text. Chosen ciphertext means they can feed scrambled text into a system and watch the result. Frequency analysis guesses letters in weak classic ciphers by how often they appear. Implementation attacks ignore the math and break the software around it. Side channels watch timing, power, or sound. Fault injection disturbs the hardware so it makes a mistake that leaks a key. Pass-the-hash reuses a captured password hash without knowing the password. Ransomware is the attacker's use of encryption against you, to lock your files.
Why it matters
Strong algorithms rarely fail in the headline way movies suggest. Systems fail because keys are short, reused, or stolen, or because the code around the math is sloppy. Side channels matter when an attacker can measure the device. Pass-the-hash matters because stealing a hash can be as good as stealing a password if the system accepts the hash. Ransomware matters because encryption is a tool, not a moral force. Backups and least privilege limit it. Buying a “military” cipher does not fix a key taped to the server.
A simple example
Guessing a four-digit bike lock by trying 0000 through 9999 is brute force. Noticing that the letter E appears most often is frequency analysis on a simple puzzle cipher. Watching how long a safe takes to buzz on a wrong digit is a side channel. A burglar who shakes the safe until the bolt slips is closer to fault injection. None of these broke a mythical equation. They used the surroundings.
On the exam
If the math is respected and the key was stolen, say key management, not “AES is broken.” If the attacker never learned the password but replayed a hash, think pass-the-hash. If they measured power use, think side channel. Ransomware is not solved by paying as a strategy. It is limited by offline backups and by stopping the malware's spread. Do not recommend designing your own cipher.
Words worth keeping
- Brute force
- Trying keys until one works. Short keys make this realistic.
- Side channel
- An attack that measures behavior such as timing or power, rather than breaking the math directly.
- Pass-the-hash
- Replaying a stolen password hash to authenticate, without recovering the password.