CS 519 Cryptography Final Exam Questions
CS 519 Cryptography Final Exam Questions
The SSL main handshake protocol does not inherently provide perfect forward secrecy because it does not require the key exchange to use ephemeral keys by default. For perfect forward secrecy, the protocol must employ temporary key exchanges, like the Diffie-Hellman Ephemeral (DHE) or Elliptic Curve Diffie-Hellman Ephemeral (ECDHE) modes, where session keys are derived from private information only held during the session, ensuring that long-term keys are not at risk even if compromised later .
Offline dictionary attacks occur when an attacker obtains a hashed password and attempts to discover the original password by hashing dictionary words and comparing them to the obtained hash. 'Salt' mitigates these attacks by adding a unique value to each password before hashing, ensuring that even identical passwords have different hash outputs. This renders precomputed hash tables, such as rainbow tables, ineffective, as each password-salt combination must be attacked individually .
A MAC provides data integrity and authentication using a shared secret key, which means both the sender and receiver must know the key. A digital signature, on the other hand, provides non-repudiation by leveraging asymmetric cryptography; only the signer has the private key required to create the signature, while anyone with the signer's public key can verify it. The advantage of a MAC is its efficiency due to symmetric key operations, while a digital signature offers stronger repudiation protection due to its asymmetric nature .
Reusing the same 'k' value in ElGamal encryption compromises the security of the encrypted messages. This is because the 'k' value serves as a random component that, when reused, can allow an attacker to deduce private keys by solving discrete logarithms, thus leading to potential message exposure. Ensuring the uniqueness of the 'k' value for each encryption is crucial in maintaining the scheme's security and preventing any form of pattern recognition or key recovery attacks .
Using the same key stream multiple times in a stream cipher leads to the vulnerability known as key stream reuse, which allows attackers to perform cryptanalysis on the encrypted messages. This is because if two messages are encrypted with the same key stream, the XOR of the two cipher texts will yield the XOR of the two plain texts, effectively removing the encryption. A practical solution is to ensure that each encryption session uses a unique key stream, often achieved through the use of a nonce or counter that modifies the key stream for each encryption .
A passive attacker who has compromised a session key in the Yacobi and Shmuely protocol can compute future session keys because the protocol, as described, lacks a mechanism to ensure the freshness of random numbers (Ri, Rj), which are crucial to the security of the session key computation. To mitigate this vulnerability, nonce or timestamp-based mechanisms could be introduced to ensure that each session incorporates unique, non-reused random values, thereby preventing future session keys from being predicted based on past sessions .
Standard EKE protocols do not prevent password brute force attacks even after an attacker gains access to the key exchange messages. Augmented EKE seeks to improve security by making it hard to verify password guesses without additional credentials such as those stored on the server-side. A-EKE accomplishes this by having the server store not the password but an encrypted version of it along with a salt, preventing attackers from verifying password guesses offline .
AH and ESP protocols protect against replay attacks by incorporating sequence numbers into their headers, ensuring that packets are processed in the order sent and that each packet's sequence number is unique. If the sequence number is detected as a duplicate or out of sequence, the packet is discarded. This sequential verification ensures that attackers cannot resend previously captured packets to recreate valid actions, maintaining communication integrity and freshness .
The cube root problem in RSA occurs when small public exponents (like e=3) are used, and the message to be encrypted is small enough that the cipher text equals the message cubed (or raised to e), without needing modular reduction, which allows the message to be easily recovered by computing the cube root. PKCS addresses this by padding the message before encryption, ensuring the plain text is of sufficient length such that modular reduction occurs, preventing the trivial recovery of the message .
Kerberos defends against offline password guessing by using a Ticket Granting Ticket (TGT) encrypted with a key derived from the user's password during the authentication process. Even if an attacker intercepts the TGT, they cannot perform offline attacks without first decrypting it, which requires guessing and verifying the password online each time. The requirement for the Authentication Server (AS) and Key Distribution Center (KDC) involvement in verification prevents offline trial and error, significantly limiting attack feasibility .