






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!







PRINT your name: , (last) (first)
SIGN your name:
PRINT your Unix account name:
PRINT your TA’s name:
You may consult any books, notes, or other paper-based inanimate objects available to you. Calculators and computers are not permitted. Please write your answers in the spaces provided in the test; in particular, we will not grade anything on the back of an exam page unless we are clearly told on the front of the page to look there.
Please be concise.
You have 3 hours. There are 10 questions, of varying credit (100 points total), not necessarily in order of difficulty. The questions are of varying difficulty, so avoid spending too long on any one question.
Do not turn this page until your proctor tells you to do so.
Short answer: At most one sentence of explanation.
(a) Which is generally safer (from a security point of view), a firewall with a “default deny” policy or a firewall with a “default allow” policy? Why?
(b) Many spam filters can be configured to use either a whitelist or a blacklist. Name one advantage of using a whitelist (instead of a blacklist) for your spam filter.
(c) Name one disadvantage of using a whitelist (compared to a blacklist) for your spam filter.
Describe two fundamentally different conceptual approaches that can be used for user authentication. Be concise: One sentence should suffice.
Scheme #1:
Scheme #2:
In this question, you have a chance to explain your understanding of the Shamir Secret Sharing system. Let s be a secret that is supposed to be shared. Let p be a large prime, let n be the number of share holders, and let q be a quorum of share holders (i.e., a threshold so that it will take at least q shares to recover the secret s ). Assume that 1 < q < n < p.
(a) Explain how Shamir creates a function f ( x ) such that: f ( 0 ) = s (mod p ); and f ( 1 ) mod p equals the first share; and f ( 2 ) mod p equals the second share; etc. Be explicit.
(b) Explain briefly (maximum of 50 words!) why one can recover s when one has values of f ( x ) mod p for at least q distinct values of x (where 0 < x < p ).
Here is a version of an authentication protocol discussed in class. In this protocol Alice and Bob wish to authenticate. There is a trusted authority T which generates a fresh random session key K and distributes it to Alice and Bob. Alice has a symmetric key KA that is shared with T. Bob shares symmetric key KB with T.
In the notation below x → y : m means that x sends message m to y. { m } k means that message m is encrypted with symmetric key k. Messages in quotes are literals that are transmitted. For example, the first line means Alice sends the trusted authority T a message saying “I want to authenticate with Bob” and that message is encrypted with key KA.
Alice → T : {“I want to authenticate with Bob”} KA T → Alice : {“Use session key”, K , “and send Bob this message”, {“This is Alice using session key”, K } KB } KA Alice → Bob : {“This is Alice using session key”, K } KB
Alice and Bob now share key K and can use K to secure all future messages between them.
(a) This authentication and key-exchange protocol is subject to a replay attack. Explain how the replay attack would work.
(b) Assume Alice, Bob, and T have synchronized clocks. Show how to modify the messages of the above protocol to defend against replay attacks. The only changes to the protocol permitted are to add ad- ditional values to the three messages in the protocol (but you may not delete any values or otherwise change the structure of the message flow). Make the minimum number of changes to the protocol necessary for security, and be precise about exactly where your new added values will go.
In this class, we have seen several different mechanisms for isolating untrusted programs, including virtual memory, system call interposition, and virtual machines.
(a) Name one threat that system call interposition protects against but virtual memory does not.
(b) The military runs a multi-user computer that all government employees can log into; programs that require access to top-secret data are run inside a virtual machine. Richard Stallman is given an account on this computer so that he can install emacs. Colonel Greene runs a copy of Stallman’s emacs program inside a virtual machine and uses it to edit the top-secret list of UFOs stored in Area 51’s warehouses. (Only Greene has an account on the guest OS running inside the virtual machine.) If Richard Stallman were malicious, could he arrange to learn the contents of this list? If yes, explain how; if no, say why not.
Consider the zero-knowledge protocol presented in lecture that gives a proof of knowledge of a square root x of y mod N , where N = PQ is the product of two large primes:
(a) Suppose that the verifier is later talking to Christina and wishes to convince her that the prover really does know a square root of y mod N. So he sends Christina the transcript of his conversation with the prover. Should Christina be convinced? Why or why not?
(b) Suppose that the verifier cannot directly communicate with the prover in the above protocol, but instead all the messages between the prover and verifier are relayed through Danielle. Assume that the prover and the verifier sign every message they send, and they know each other’s public key. Should the verifier be convinced at the end of the protocol that the prover knows a square root of y mod N? Justify your answer.
(c) Under the same assumptions as part (b), should Danielle be convinced at the end of the protocol that the prover knows a square root of y mod N? Justify your answer.
When you finish the exam, we’d appreciate if you would tear off this page, fill out the survey, and return it to us, so that we can learn how to improve the class the next time it is offered. This survey is anonymous and purely optional. Whether you fill it out or not, it will not affect your grade in any way. Please do not write your name on this page.
Finish your exam before filling out the survey—we don’t want you to be short on time. You can fill this page out after you turn in your final exam, and there is no time limit.
Don’t write the answer to any exam questions on either side of this page.