Docsity

Midterm Exam - Computer Security - Fall 2006 | CSE 543, Exams of Cybersecurity

Toggle sidebar
bg1
CSE543/Fall 2006 - Midterm Exam
Tuesday, October 24, 2006 —Professor Trent Jaeger
Please read the instructions and questions carefully. You will be graded for clarity and correctness. You
have 75 minutes to complete this exam, so focus on those questions whose subject matter you know well.
Students who try to read the papers in order to find an answer will not likely do well. Write legibly and
check your answers before handing it in.
Short Answer - some will be one or two words – no more than 3 sentences
1. (3pts) Why is it important to define a threat model as part of a system’s security model?
answer: Knowing the possible attacker behaviors helps us determine whether there is a vulnerability
in our system that can be leveraged by those attackers.
2. (3pts) Why is Kerberos susceptible to password-guessing attacks?
answer: The key shared with the AS is derived from the user’s password using a publicly available al-
gorithm, so the authentication exchange provides information that can be used to guess the password
offline.
3. (3pts) What are three of the properties that define a public-key cryptosystem?
answer: See RSA paper (a-d).
4. (3pts) Identify any legal values for RSA public and private keys where n= 15. (need both public
and private key values)
answer: The primes p= 3 and q= 5 are used. phi(n) would be 2 ∗4 = 8. dand eare primes such
that de = 1modphi(n), so if dis 3, ecan be a number of values 11, 19, 27, etc. The public and
private keys should be different values, in general, but I’ll give a pass on this one.
5. (3pts) Suppose party Areceives a message {d, HM AC(k , d)}from party B(they alone share the key
k). What does HM AC(k, d) enable party Ato prove about d? Why is the one-way property of hash
functions valuable here?
answer:d’s integrity can be verified. Acan identify that message is from B. Otherwise, could extract
kfrom the MAC.
6. (3pts) Why is it a bad idea to use the same pq =nfor generating RSA keys for a group of users?
answer: Given nand a private/public key pair it is possible to factor pq from which any other private
key can be determined for any other member of the group.
7. (3pts) What are the three guarantees required for building a correct reference monitor for enforcing
access control policies?
answer: Tamperproof, Complete Mediation, Simple enough for verification.
8. (3pts) In the Needham-Schroeder protocol, client Acan cache authenticators for Bto reduce the
need to go to the authentication server on subsequent sessions (i.e., establish a new session after at
least one previous one has been setup). Unfortunately, the default behavior is to reuse the same key
as from the previous session. How might a new key be generated without adding any new messages
to the protocol?
answer: XOR with nonces IAand IB. Nonces must be randomly-generated to ensure use of keyspace
and entropy within that keyspace.
1
pf3
pf4
pf5

Partial preview of the text

Download Midterm Exam - Computer Security - Fall 2006 | CSE 543 and more Exams Cybersecurity in PDF only on Docsity!

CSE543/Fall 2006 - Midterm Exam

Tuesday, October 24, 2006 — Professor Trent Jaeger

Please read the instructions and questions carefully. You will be graded for clarity and correctness. You have 75 minutes to complete this exam, so focus on those questions whose subject matter you know well. Students who try to read the papers in order to find an answer will not likely do well. Write legibly and check your answers before handing it in. Short Answer - some will be one or two words – no more than 3 sentences

  1. (3pts) Why is it important to define a threat model as part of a system’s security model? answer: Knowing the possible attacker behaviors helps us determine whether there is a vulnerability in our system that can be leveraged by those attackers.
  2. (3pts) Why is Kerberos susceptible to password-guessing attacks? answer: The key shared with the AS is derived from the user’s password using a publicly available al- gorithm, so the authentication exchange provides information that can be used to guess the password offline.
  3. (3pts) What are three of the properties that define a public-key cryptosystem? answer: See RSA paper (a-d).
  4. (3pts) Identify any legal values for RSA public and private keys where n = 15. (need both public and private key values) answer: The primes p = 3 and q = 5 are used. phi(n) would be 2 ∗ 4 = 8. d and e are primes such that de = 1modphi(n), so if d is 3, e can be a number of values 11, 19, 27, etc. The public and private keys should be different values, in general, but I’ll give a pass on this one.
  5. (3pts) Suppose party A receives a message {d, HM AC(k, d)} from party B (they alone share the key k). What does HM AC(k, d) enable party A to prove about d? Why is the one-way property of hash functions valuable here? answer: d’s integrity can be verified. A can identify that message is from B. Otherwise, could extract k from the MAC.
  6. (3pts) Why is it a bad idea to use the same pq = n for generating RSA keys for a group of users? answer: Given n and a private/public key pair it is possible to factor pq from which any other private key can be determined for any other member of the group.
  7. (3pts) What are the three guarantees required for building a correct reference monitor for enforcing access control policies? answer: Tamperproof, Complete Mediation, Simple enough for verification.
  8. (3pts) In the Needham-Schroeder protocol, client A can cache authenticators for B to reduce the need to go to the authentication server on subsequent sessions (i.e., establish a new session after at least one previous one has been setup). Unfortunately, the default behavior is to reuse the same key as from the previous session. How might a new key be generated without adding any new messages to the protocol? answer: XOR with nonces IA and IB. Nonces must be randomly-generated to ensure use of keyspace and entropy within that keyspace.
  1. (3pts) What are two differences between secure boot and authenticated boot? Which does a TPM implement? answer: (1) Secure boot stops the boot process when an invalid measurement is found – authenticated boot does not; (2) secure boot cannot be verified remotely – authenticated boot can. TPM implements authenticated boot.
  2. (3pts) What is a protection system? What are two differences between protection systems defined by mandatory and discretionary access control models? answer: A protection system consists of a protection state and operations on that state. Two differences: (1) a discretionary model has protection state operations, whereas a mandatory model does not (only sysadmins may modify); (2) a discretionary protection state is extensible during system execution, as new objects are added to the system, whereas the rows and columns of a mandatory model are stable.
  3. (3pts) How is a well-formed transaction implemented in the Clark-Wilson integrity model?

answer: (1) a WFT requires that the integrity of high integrity data (CDIs) be verified by integrity verification procedures; (2) a WFT requires that only assured, high integrity code of transformation procedures modify high integrity data (CDIs); and (3) a WFT transaction requires that the TPs also protect themselves from low integrity data (UDIs) by immediately discarding them or upgrading them to CDIs.

  1. (3pts) What is a capability? Why is revocation difficult for capabilities?

answer: A capability is a reference to an object and a set of rights for accessing that object. Possession of a capability enables access to that object and rights. Since capabilities may be transferred and capability systems do not (typically) track how capabilities are distributed, delegated capabilities are nearly impossible to revoke.

  1. (3pts) What are two problems (i.e., cause and result) with procedure-level access control, as in HYDRA? answer: (1) Performance due to extra kernel traps; (2) policy management due to each procedure being assigned capabilities; and (3) programming challenges for writing templates for caller-dependent permissions
  2. (3pts) What is the theoretical limitation of protocol analysis (e.g., applying tools like BAN Logic)?

answer: The Dolev-Yao result that finds that the problem of determining whether a strong attacker can obtain a shared secret is undecideable for the case where the attacker can have multiple sessions.

Suppose that B’s identity is 0010, the key shared between A and AS is 1010, and A’s nonce is 1111. (b) (2pts) What was the message from the AS to A that provided the conversation key to A?

Suppose that the plaintext is 1101. (c) (1pts) What is the value of the plaintext encrypted with the conversation key?

(d) (1pt) If (c) is a session message, does this message guarantee the integrity of the data being sent?

(e) (2pts) Why was the ticket-granting service introduced to Kerberos over Needham-Schroeder?

(f) (2pts) Why did the addition of a timestamp become necessary for the Kerberos protocol? answer: (a) 1101 | 0100 encrypted with 0101, decrypts to 1000 | 0001 which means that the session key is 1000 (b) 1111 | 0010 | 1000 | 11010100 encrypted with 1010 is: 0101 | 1000 | 0010 | 01111110 (c) 1101 XOR 1000 is 0101 (d) No. (e) Single signon. (f) To eliminate the need to store nonces. A nonce is used for freshness, but with the timestamp, the parties only need to store nonce for a limited time.

  1. (10pts) Trusted computing sometimes requires the migration of keys from one platform to another that have not had previous interaction. In general, the destination needs to know that the source is a legitimate TPM, but does not need to know if the key is specific to that destination (because it is encrypted for that destination it is implied). Suppose that you have a trusted migration authority (i.e., a trusted third party) available to you. (a) (3pts) Using public key cryptography, write a message that enables secure migration of a key K from subject X to subject Y where M is the migration authority. Use K A+ and K A− for the public and private keys of any principal A.

(b) (2pts) What if we need to migrate the key to n different systems at once (just describe the change from (a))?

(c) (3pts) Suppose that we can use symmetric key cryptography. Assume that we have used the migration authority to securely distribute a migration key Kg for group g. Write a statement for migrating the key K from subject X to subject Y if Y is in group g.

(d) (2pts) What if we need to migrate the key to n different systems at once (just describe the change from (c))? answer: (a) Need to ensure: (1) X’s private key can be used for migrating TPM keys; (2) X is responsible for migrating the key; (3) K, the key’s value, is revealed only to Y ; and (4) the integrity of K can be verified by Y. Sign, then encrypt migrating key (never sign anything that is encrypted): {K, X, {H(K, X)}K− X }K+ Y. Must also include a statement from migration authority regarding X’s public key: K X+ , X, {H(K X+ , X)}K− M. (b) Must encrypt for the key K for each Yi, so there will be n different messages. (c) Can encrypt for Y with group key Kg, and must include a MAC for integrity: {K, X}Kg , M AC(Kg, {K, X}) (d) Can send this same message to any member of the group.

  1. (10pts) Consider the following secrecy lattice policy (any read-down and write-up are allowed). We have three sensitivity levels (in decreasing order of secrecy), secret, confidential, and public, and three categories, army, navy, and air force. Consider whether the following operations are permitted by the lattice policy. (a) (2pts) Can a subject at clearance {confidential, (army, navy)} read from object at access class {public, (navy)}?

(b) (2pts) Can a subject at clearance {confidential, (army, air force)} write to an object at access class {confidential, (navy, air force)}?

(c) (2pts) Can a subject at clearance {secret, (army, air force)} write to an object at access class {confidential, (air force)}?

(d) (2pts) Can a subject at clearance {secret, (army, air force)} read from an object at access class {confidential, (navy, air force)}?