Docsity

Midterm 1 with Solution - Computer Security I | CS 461, Exams of Computer Science

Toggle sidebar
bg1
Information Assurance: Midterm 1 – Answer Key
Multiple Choice – 2 points each
1. Which of the following most accurately defines vulnerability.
a. A set of circumstances that has the potential to cause loss or harm.
b. Techniques for keeping data and resources hidden.
c. A weakness in the system that can be exploited to cause harm.
d. Techniques for detecting unexpected behavior.
2. What is the name for the following equation?
((Risk Exposure) – (Risk Exposure after Control))/(Cost of control)
a. Risk Leverage
b. Control costs benefits analysis
c. Annualized Loss Exposure
d. Risk Impact
3. What type of cipher is AES?
a. Substitution
b. Transposition
c. Product
d. Feistel Network
4. Which of the following is not a standard AES key length?
a. 128
b. 160
c. 192
d. 256
5. Which of the following uses ciphertext to generate the keystream?
a. AES Electronic Codebook (ECB)
b. DES Cipher Feedback (CFB) mode
c. AES Output Feedback (OFB) mode
d. AES Cipher Block Chaining (CBC) mode
6. The cryptographic strength of RSA depends on which hard problem?
a. Discrete logarithms
b. Factoring large primes
c. Bin packing
d. Elliptic curves
Information Assurance
Midterm 1 Key Page 1 9/26/2007
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Midterm 1 with Solution - Computer Security I | CS 461 and more Exams Computer Science in PDF only on Docsity!

Information Assurance: Midterm 1 – Answer Key

Multiple Choice – 2 points each

  1. Which of the following most accurately defines vulnerability. a. A set of circumstances that has the potential to cause loss or harm. b. Techniques for keeping data and resources hidden. c. A weakness in the system that can be exploited to cause harm. d. Techniques for detecting unexpected behavior.
  2. What is the name for the following equation? ((Risk Exposure) – (Risk Exposure after Control))/(Cost of control) a. Risk Leverage b. Control costs benefits analysis c. Annualized Loss Exposure d. Risk Impact
  3. What type of cipher is AES? a. Substitution b. Transposition c. Product d. Feistel Network
  4. Which of the following is not a standard AES key length? a. 128 b. 160 c. 192 d. 256
  5. Which of the following uses ciphertext to generate the keystream? a. AES Electronic Codebook (ECB) b. DES Cipher Feedback (CFB) mode c. AES Output Feedback (OFB) mode d. AES Cipher Block Chaining (CBC) mode
  6. The cryptographic strength of RSA depends on which hard problem? a. Discrete logarithms b. Factoring large primes c. Bin packing d. Elliptic curves Information Assurance
  1. Which element is key to the non-linearity in the DES algorithm? a. Key schedule b. Splitting and swapping left and right halves of the data c. Initial permutation d. Substitution boxes
  2. Which best identifies the purpose of an organizational security policy? a. A means of defining the secure states of the system b. Blueprint for the security implementation c. Document to satisfy legislative requirements d. A means of tracking the latest in security technology
  3. Consider a double encryption of the form C = Ek1(Ek2(P)), where k1 and k2 are n bits long. What attack shows that the number of keys that must be checked to break a ciphertext/plaintext pair is 2n+1^ instead of 22n. a. Man-in-the-middle attack b. Avalanche attack c. Birthday attack d. Meet-in-the-middle attack Information Assurance
  1. (12 points) For each of the following hashing functions state why that function would make a good cryptographic hash, or state why it would not. For parts b,c, and d, many people got the overall answer right, but their reasoning was weak. I was looking for a common on block size and strength with respect to a brute force attack. Many people mentioned the self healing aspects of CBC. However, this is only an issue for decryption and so doesn't affect the crypto hash one way or another. a. (2 points) 256 cyclic redundancy check (CRC) Not good. It uses a linear combination of bits, so it is computationally easy to adjust a file to match a particular CRC. b. (2 points) 64 bit DES Cipher Block Chaining (CBC) MAC Not good. The hash size is too small. If the opponent has the key, he could use brute force to find a message variation with the same hash. c. (2 points) SHA- Good. Even with the new attacks on SHA, the 256 bit version is still beyond brute force attacks. d. (2 points) 256 AES-CBC MAC Good. Larger size protects it from brute force attack. Algorithm has good one way properties. e. (4 points) You need to post crypto hashes of your company's binaries on a central web site. Your customers fetch the binaries from a variety of mirrored sites and they need a way to ensure that the downloaded binary is indeed the legitimate copy. Which of the hash functions listed in this question would you use? Why? I'd use the SHA-256. We want a keyless hash, so everyone can independently verify the posted hash. SHA-256 has good one way properties and is large enough to avoid brute force attack. Information Assurance
  1. (9 points) You have been hired by a company to review the communication confidentiality design created in house. Obviously the designers had not taken CS461. Identify the three worst security design errors and describe the problems caused by each of these three errors. In the SecureComm architecture, we avoid the overheads of installing a PKI infrastructure by relying on a simpler approach of manually distributed shared keys between all pairs of communicators. Since the organization only has 25 communicators which will eventually grow to 50 over the next five years or so, we feel this approach will cost less in software and time than dealing with a full PKI solution. The keys will be passed to communicators via a separate channel such as a floppy disk or thumb drive, so the sensitive key will not be sent in the clear. The master key file includes all the pairwise shared keys, and it can be stored on the central server. It will be stored under a very restrictive access control, so only members of the Administrative group can access the file to add or distribute keys. The master key file also provides a natural key escrow benefit. If an employee loses his or her key or leaves the organization, the administrator can access the appropriate keys from the master key file to access his or her networked conversations. The shared key will be used in a block encryption algorithm designed by us called SuperCrypt. The algorithm is more sophisticated than AES, plus it has the benefit that it is proprietary so the attacker will not be able to attack the structure of the encryption algorithm. The SuperCrypt algorithm will be run in Electronic Code Book mode. The message integrity will be tracked by a HMAC-SHA crypto hash in the message. There were embarrassingly may problems to choose from here. Error 1: Manually distributing shared keys are going to cause many problems. Keys will not be updated frequently enough because of the hassle factor. The physical media used to distribute keys will be lost or stolen. As new users are added the number of keys will grow as a square (n^2). Even for n=25 or 50, this is a lot of deal with. Error 2: Long lived keys are used for bulk encryption making the problems of error 1 worse. There will be many opportunities for the attacker to gather information about the ciphertext. Once the pair key is broken, the attacker has access to all future communication until the long lived key pair is updated. Error 3: Using a new proprietary encryption algorithm. The algorithm has not been reviewed. Even experts in cryptography have errors in their algorithms. The attacker will undoubtedly eventually find the algorithm and then can leverage those weaknesses. Information Assurance
  1. (14 points total) Alice is setting up a RSA key pair. She has selected p=13 and q= a. What is n? (1 point) n = p*q = 143 b. What is Φ(n)? (1 point) Φ(n) = (p-1)*(q-1) = 120 c. She has picked e=13. Which of the following would work for d: 11, 37, 119? Why?(2 points) ed mod Φ(n) = 1 1337 mod 120 = 1 d. What values can be posted publicly and still preserve the security of the key pair?(2 points) n, e Many people added p and q. However, this is the factorization of n. With that information, an attacker can break a key pair. e. What RSA operation would Alice apply to a message m to convince Bob that she originated m?(1 point) Signing, that is encrypting with Alice's private key C = md^ mod n f. Apply that operation to the message EXAM. Assume a block size of one character and a character encoding of letters to numbers starting with A=1. (3 points) EXAM = 5 24 1 13 5^37 mod 143 = 135, 24^37 mod 143 = 128, 1^37 mod 143 = 1, 13^37 mod 143 = 117 g. Alice has picked a session key k. Assume Alice already has access to Bob's public key. How should Alice compose a message to Bob to pass the session key while preserving confidentiality and integrity of data and identity. ( points) She should first sign the key with her private key to prove that she originated the message. Then she should encrypt with Bob's public key for confidentiality. (ksession^37 mod 143)^kBobPub mod nBob Information Assurance
  1. (15 points) You are hired to perform a risk analysis for an organization that is considering deploying a key escrow system similar to the Escrow Encryption Standard (or Clipper Chip system) discussed in class. Outline of the major components is shown below. a. Name two risks they may be trying to control by deploying such a system. ( points) Employee losing key and thus data. Being able to respond to court orders.
    Concern about employee not acting in the best interest of the company. Many people answered this part with risks to the escrow system itself.
    b. Would you choose to perform a qualitative or a quantitative risk analysis? Why? (2 points) Qualitative. It is very difficult today to assign real, reasonable numbers to value of digital assets and probability of a risk occurring. While computing real hard numbers is in some sense more satisfying and may make more sense to the business folks, the validity of the numbers is questionable unless you have good faith in your base valuations and risk probabilities. Computing a relative ordering of value and risk is much faster and often good enough to ensure that we address the most important risks first. c. What are two assets in the key escrow system? (3 points) The kunique, unique keys for each clipper chip. The audit trails. The physical clipper chips Information Assurance Escrow Agent I Escrow Agent II

Seed 1 , Key 1 , Fam 1 Secure Facility

Seed 2 , Key 2 , Fam 2 User “Clipper” Chip Combine Fam 1 , Fam 2 to obtain kfamily Combine Key1,Key to obtain kcomp Combine Seed 1 , Seed 2 to generate sequence kunique = ku1 ⊕ ku UID, kunique, kfamily {ku2}kcomp {ku1}kcomp

  1. (12 points) Consider the certificate authority hierarchy below. In this question the notation signer << signee >> means that signer has signed the certificate of signee. There was confusion for some on the basic idea of a verifying a chain of certificates in the certificate hierarchy. There was also confusion on some terminology
  • Public key – The public portion of a key pair. Stored inside a certificate.
  • Signature – Result of an encryption using an entity's private key generally over a hash of a document.
  • Certificate – A binding of public key information and an entity's identity. Validity of the certificate is generally proved through signatures. a. (4 points) Alice receives Bob's certificate, Don<>. What information does Alice need to verify this certificate? Presumably Alice has Ellen's certificate, since Ellen is the root of her organization's hierarchy. Thus, if Alice had Don's certificate (Ellen<>), she could use Ellen's certificate to verify Don's, and Don's certificate to verify Bob's. b. (4 points) If Alice is concerned about a man-in-the middle attack, what is the minimal information should she fetch from a separate, secure channel to store on her computer? She needs retrieve the root certificate (<>) from a separate, secure channel. Otherwise, Eve could intercept the request for Ellen's certificate and substitute her own. No one vouches for Ellen, so there would be no way to detect the substitution. c. (4 points) Alice receives Zach's certificate, Xander<>. Zach is from a different organization. What additional information does Alice need to verify Zach's certificate? Can she meaningfully verify Zach's certificate? What change in the certificate authority relationships would help? She needs the root certificate of the other organization's hierarchy, <>. However, there is no reason she should put faith in the other organizations hierarchy. If the Xander and Ellen certificates were cross signed Xander<> and Ellen<>, Alice could leverage her trust in Ellen to verify the authenticity of the other organization's root. Information Assurance Ellen Cathy Don Alice Bob Xander Zach

Information Assurance

| a b c d e f g h i j k l m n o p q r s t u v w x y z

A | a b c d e f g h i j k l m n o p q r s t u v w x y z B | b c d e f g h i j k l m n o p q r s t u v w x y z a C | c d e f g h i j k l m n o p q r s t u v w x y z a b D | d e f g h i j k l m n o p q r s t u v w x y z a b c E | e f g h i j k l m n o p q r s t u v w x y z a b c d F | f g h i j k l m n o p q r s t u v w x y z a b c d e G | g h i j k l m n o p q r s t u v w x y z a b c d e f H | h i j k l m n o p q r s t u v w x y z a b c d e f g I | i j k l m n o p q r s t u v w x y z a b c d e f g h J | j k l m n o p q r s t u v w x y z a b c d e f g h i K | k l m n o p q r s t u v w x y z a b c d e f g h i j L | l m n o p q r s t u v w x y z a b c d e f g h i j k M | m n o p q r s t u v w x y z a b c d e f g h i j k l N | n o p q r s t u v w x y z a b c d e f g h i j k l m O | o p q r s t u v w x y z a b c d e f g h i j k l m n P | p q r s t u v w x y z a b c d e f g h i j k l m n o Q | q r s t u v w x y z a b c d e f g h i j k l m n o p R | r s t u v w x y z a b c d e f g h i j k l m n o p q S | s t u v w x y z a b c d e f g h i j k l m n o p q r T | t u v w x y z a b c d e f g h i j k l m n o p q r s U | u v w x y z a b c d e f g h i j k l m n o p q r s t V | v w x y z a b c d e f g h i j k l m n o p q r s t u W | w x y z a b c d e f g h i j k l m n o p q r s t u v X | x y z a b c d e f g h i j k l m n o p q r s t u v w Y | y z a b c d e f g h i j k l m n o p q r s t u v w x Z | z a b c d e f g h i j k l m n o p q r s t u v w x y Information Assurance