2.4
In progress
Cryptographic Attacks
Summary
Cryptographic attacks target weaknesses in how encryption and hashing are chosen or used, rather than breaking strong algorithms directly. Downgrade attacks force weaker options, collision and birthday attacks exploit hash weaknesses, and some Kerberos configurations expose tickets to offline cracking.
Detailed explanation
-
Downgrade attack: Forcing a connection to use an older protocol version or weaker cipher that the attacker can defeat.
- Defense: Disable old protocols and weak ciphers on clients and servers.
-
Kerberoasting: Requesting Kerberos service tickets for accounts with service principal names and attempting to crack them offline to recover the service account password.
- Indicators: Unusually many service ticket requests, especially for weak RC4 encryption.
- Defenses: Long random service account passwords, group managed service accounts and AES-only Kerberos encryption.
- Collision attack: Finding two different inputs with the same hash, which can allow forged signatures or certificates with weak hashes such as MD5 or SHA-1.
-
Birthday attack: A collision attack based on the birthday paradox, which shows collisions are found far sooner than expected, after about the square root of the number of possible outputs.
- Defense: Hashes with longer outputs, such as SHA-256 or better.
Important terms
taken from the text above- Downgrade attack
- Forcing a connection to use an older protocol version or weaker cipher that the attacker can defeat.
- Defense
- Disable old protocols and weak ciphers on clients and servers.
- Kerberoasting
- Requesting Kerberos service tickets for accounts with service principal names and attempting to crack them offline to recover the service account password.
- Collision attack
- Finding two different inputs with the same hash, which can allow forged signatures or certificates with weak hashes such as MD5 or SHA-1.
- Birthday attack
- A collision attack based on the birthday paradox, which shows collisions are found far sooner than expected, after about the square root of the number of possible outputs.
What I should remember
- Downgrade attack: Forces weaker protocols or ciphers.
- Kerberoasting: Offline cracking of service tickets.
- Collision: Two inputs with the same hash.
- Birthday attack: Finds collisions faster than brute force.