




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





It is a dark time for the Silicon Valley startup Hoolibits. Although it’s previous security vulnerabilities have been patched, hackers and competition have driven daily uniques from their previous highs and venture capital is running low in the Valley.
Evading the dreaded “down round”, a group of clever engineers led by you, the proven security guru, are pitching investors on ways to pivot Hoolibits into a security tech company. You are looking to establish a middle out level breakthrough in new security technology ...
This exam is open book, open note. You may use any printed materials you like on this exam. You may not use a computer, phone, any electronic devices, or the internet to help you complete this exam.
Please ensure answers are neat and legible. Illegible answers may be given no points.
If you choose, for any question (that is not multiple choice) you may write “I don’t know” and circle this phrase as the answer. Questions answered this way will be given 30% of the points for that question (including fractional points). Nonsense or incorrect answers may be given no points when appropriate.
NOTE: This option is NOT available to multiple choice questions.
NOTE: The “I don’t know” option is not available for this question. Unanswered items will be awarded no points.
The following list of protocols or technologies are used in the Hoolibits technical infrastructure. Identify which of the following are using cryptography (and which types) by default by circling the correct answers. Please note that some technologies use both types of cryptography in which case one must circle both to get full points. The term “pubkey crypto” means public key cryptography or asymmetric cryptography.
UDP Symmetric Crypto Pubkey Crypto No Crypto
HMAC Symmetric Crypto Pubkey Crypto No Crypto
DNS Symmetric Crypto Pubkey Crypto No Crypto
PBKDF Symmetric Crypto Pubkey Crypto No Crypto
TLS Symmetric Crypto Pubkey Crypto No Crypto
Port scanning Symmetric Crypto Pubkey Crypto No Crypto
ARP Symmetric Crypto Pubkey Crypto No Crypto
TCP SYN flood Symmetric Crypto Pubkey Crypto No Crypto
Bitcoin Symmetric Crypto Pubkey Crypto No Crypto
HTTP Symmetric Crypto Pubkey Crypto No Crypto
ASLR Symmetric Crypto Pubkey Crypto No Crypto
VM Co residence Symmetric Crypto Pubkey Crypto No Crypto detection using cache side channels
(Cotton candy sweet to go, let me see that plopsicle.)
The Hoolibits CTO wants to build a new file sharing service called PlopIt! Users upload files to the PlopIt website (over TLS) and then the service assigns a URL that looks like: https://plopit.net/username/HASH where HASH is the SHA256 digest computed over the contents of the uploaded file. The user is given the URL (called a plopsicle ) when the upload completes, and can use the URL or send it to any of her friends. Anyone with the URL can download the file. A+B = 6 points; C+D = 6 points
A. Is this design secure? Why or why not?
Many possible answers. Here’s an attack against the privacy of PlopIt users: Say the MPAA suspects that Alice is illegally sharing copyrighted material. They can probe the URL by computing the hash of some file then test the URL. If it succeeds, then the MPAA knows that Alice has uploaded the file.
B. If you think it is insecure, describe how you will change the design to make it more secure. Be specific.
The design can be secured against this attack by making the URLs hard to guess. Examples: generate random URLs, or use a non public salt when computing the hash.
C. Some of the investors think the large URLs are too ugly. They also want to provide, by default, short URLs that look like: plop.it/xyzabwhere “xyzab” is the hash shortened to just 5 lower case alphabetic characters. Is this design secure? Why or why not?
This is not secure. The search space is too small (26^5 ~ 12M). Iterating through a large number of all possible URLs is feasible. This would reveal lots (possibly all) private content uploaded to PlopIt.
D. If you think it is insecure, describe how you will change the design to make it more secure. Be specific; if necessary, include some basic calculations to justify your solution.
“Short” URLs must not be too short even if they are random. One fix: make the URLs 10 characters, uppercase, lowercase, and numeric. This gives a search space of 62^10 ~ 2^80. Even if there are 1M uploads to PlopIt (2^20 ), the search space is still very large and sparse (chance of discovering a file with one query: 1/2^60 ).
One of your competitors, CodeSwap, recently had their website breached; the password database was stolen and posted publicly on pastebin.com. The entries in this database are of the form: [user_email,SHA 256 (password)]. There are approximately 20 million entries in this password database.
A. (4 points) If an attacker wants to crack the password from a single account in this database, does the lack of salting make the attack any easier? Explain why or why not.
Salting doesn’t make cracking a single account any harder. Running a dictionary attack on a single account is no different (in terms of performance) with or without a salt.
B. (4 points) If an attacker wants to recover at least 50% of the passwords from this database, does the lack of salting make the attack any easier? Explain why or why not.
Salting makes this much harder. Without salting, an attacker can run a dictionary attack one time, compute the hash of each password guess just once, and check if any hash in the database matches. With salting, the attacker must compute hashes separately for each account because each account has a distinct salt. This makes the attack roughly 20M times harder with salts.
C. (4 points) It turns out that that 30% of the users at CodeSwap also have accounts on the Hoolibits website. Unlike CodeSwap, the Hoolibits site uses salts in its passwords. Should Hoolibits be concerned about this breach? Explain why or why not.
Hoolibits should be concerned about the security of its users’ accounts. Cracking unsalted passwords is easy and users often re use the same password across multiple accounts. Attackers may use cracked passwords to access user accounts on the Hoolibits website. Testing a cracked password is easy: just try to login using the cracked password.
A. (6 points) Can Malory arrange to learn the contents of this contract without physically accessing any of the printers? Describe the attack or explain why the attack isn’t possible.
This is the ARP man in the middle attack adapted for UDP. When V(eronica) plugs in her laptop, M(alory) will see the printer discovery and and announcement messages. Then V sends a spoofed announcement packet announcing her IP address as the printer. When her announcement packet is received by V, her laptop will overwrite the printer details with M as the IP for the printer. When V sends the document, it will go to M’s computer where she can read it, and if she chooses, M can then send the document to the IP address of the printer if she wants it to be printed for V to find.
B. (6 points) Can Malory modify the document to be printed by replacing the original document with a modified one? It’s not acceptable to allow the original to be printed and also print a modified version: this creates a dangerous observable and might compromise Malory’s access to the Hoolibits local network for future espionage. Describe the attack or explain why the attack isn’t possible.
Same as above except M modifies the document then sends the modified version to the printer.
Alice wants to send a large document as an encrypted attachment to an email to Bob over the internet. Alice also wants Bob to know that this attachment was sent by her (and not a forged attachment sent by someone else). Assume Alice and Bob have each other’s public keys.
In the questions below, use the cryptographic primitives we’ve discussed in class. Define any cryptographic functions that you use (example: one could say, H is cryptographic hash function, or H is MD5).
A. (6 points) Give the steps for Alice to prepare the attachment that will be sent. PKa, SKa, PKb, SKb Alice and Bob’s public/private key pairs Ek()/Dk() Authenticated encryption/decryption scheme using key k (say, AES GCM) Enc()/Dec() Public key encryption/Decryption (say, RSA encryption) Sign/Verify Digital signature/verification algorithm (say, RSA signature)
// Choose random, one time symmetric key, then encrypt the attachment M k = rand_key() C 1 = Ek(M)
// Encrypt k with Bob’s public key and sign the entire ciphertext with Alice’s private key C 2 = Enc(PKb, k) sig = Sign(SKa; C 1 ,C 2 )
Send: C 1 ,C 2 ,sig
B. (6 points) Give the steps for Bob to decrypt Alice’s attachment and verify that the message is valid and authentic (it has not been tampered and it was definitely sent by Alice). // Verify the digital signature using Alice’s public key if Verify(PKa; sig; C 1 ,C 2 ) = INVALID: return ERROR
// Decrypt the symmetric key with Bob’s private key , then decrypt the attachment k’ = Dec(SKb, C 2 ) M’ = Dk’(C 1 ) if M’ = ERROR: return ERROR else: return M’