100 likes | 249 Views
Quiz 1 Topics ECE6612 - Computer Network Security Spring 2013 These slides are in http://www.csc.gatech.edu/copeland/jac/6612/slides/ Click on “ 05 Quiz-1 topics.ppt ”. Past Quizzes and Answers are in http://www.csc.gatech.edu/copeland/jac/6612/quizzes/
E N D
Quiz 1 Topics ECE6612 - Computer Network Security Spring 2013 These slides are in http://www.csc.gatech.edu/copeland/jac/6612/slides/ Click on “05 Quiz-1 topics.ppt” Past Quizzes and Answers are in http://www.csc.gatech.edu/copeland/jac/6612/quizzes/ You may bring one 8.5” by 11” reference sheet to the quiz. It must be handwritten by you. Both sides are available. Otherwise, pencil or pen, and a simple calculator only.
Chapter 1 - Intro • Definitions and examples: • Security Attacks (Spoofing, Interception, Trojan Horse, Bot, Worm, IP & Port Scanning, Sniffing, Root Kit, Spam, Malware, ...) • Services (below, P & 4A’s) & Mechanisms (e.g., Encryption) • Privacy (Secrecy) • Authentication (Identification & Nonrepudiation) • Authorization (limit access based on Authentication) • Alteration Protection - Integrity • Availability (avoid Denial of Service Attacks) • Combination of Authentication and Authorization: • Access Control (good password, use of hashes) • RFC's (IETF “Request for Comments”) • IEEE (802.x LANs), ISO (X.509 Cert), NIST (AES Encryption) • Defenses (Firewalls, Virus Detection, Honey Pots or Honey Nets, …) 2
Chapter 2 - Cryptography Conventional (Secret-Key), cryptographer vs. cryptanalyst , plaintext, ciphertext, decrypt vs. decipher, number of possible keys (time for exhaustive search), characteristics of good encryption and random numbers. Feistel structure: DES, 3-DES, Blowfish (but not AES) Crypto-feedback: CBC, CFB, Streaming-mode Key distribution, use of a session key (why). Concept of Information Entropy (encryption, compression) Use of redundancy to recognize plaintext and break codes (Caesar codes, substitution codes, block codes). Self-synchronizing codes (pros and cons), link versus end-to-end encryption. Prove quality of encryption technique (Fundamental Tenet)? Hash algorithms: output same size, one-way, weak or strong collision resistance. How are they used, which are safe today: MD5, SHA-1, SHA-2 (SHA-256 or SHA-512), SHA-3. 3
Chapter 3 - Public-Key and Authentication Role of trusted authority (CA) - who (is/are) the top level CA(s). How does your browser use them. Man-in-the-middle attack (when is it effective, how do you defeat it). MAC and MIC, one-way hashes (desired characteristics) RSA and Diffie-Hellman (basic operation), uses. How does modulo arithmetic simplify calculations, add to security? RSA security depends on the difficulty of factoring large prime numbers. Digital Signatures, certificates, CA, Web transactions. PKI (Public Key Infrastructure): What is needed besides distribution of Public-Private Keys? (Revocation database). Email Encryption and Signing: Use of session key per message and it’s encryption with each recipient’s Public Key. Talk: http://www.csc.gatech.edu/copeland/jac/6612/slides/07b-SSL_TLS%202013.pdf 4
Chapter 4 - Authentication Applications Kerberos: How is user (person) authenticated, tickets, role of KDC, and Nonce (replay attack). How does it solve the key distribution problem for n*(n-1)/2 pairs of hosts. X.509 Authentication (certificates, steps of a Web buy) Review slides from Feb. 4, 2013 lecture – “07b-SSL_TLS 2013.pdf” Chain of authentication (CA hierarchy). Theory and Practice Certificate Authority (who, where found) Digital Signature - how is it done, what does it do? SSH (SCP and SFTP): How do they securely replace Telnet and FTP? What’s needed to allow secure login without a password? What is an “SSH Tunnel”? How are passwords safely stored, and compared to typed-in password? What is a Dictionary Attack, and how is it foiled? How are keys safely stored on a computer, and accessed? 5
Raw “Certificate” has user name, public key, expiration date, ... Generate hash code of Raw Certificate Raw Cert. MIC Hash Encrypt hash code with CA’s private key to form CA’s signature Signed Cert. Signed Certificate Recipient can verify signature using CA’s public key. Certificate Authority generates the “signature” that is added to raw “Certificate” 6
Summary - Problems and Solutions 64-bit Keys can be found by a Brute-Force Attack Use a 128-bit or larger key. Code-book encrypting allows interchange and duplication of blocks Use Cipher-Block Chaining (Crypto-Feedback). The same Plaintext encrypted with the same key = same Ciphertext Use a random, non-repeating Initial Vector. How do you know the Ciphertext was not altered? Include a Message Digest (Hash of Plaintext ). How do you know the authenticity of the sender? Encrypt the Message Digest with the sender’s Private Key (3). How do you manage encryption keys securely and efficiently? Key Management System (Kerberos) (4a) X.509 Certificates (SSL) – high level covered, and in talk on Monday PGP Email (5a) – only high level covered PKI (Public Key Infrastructure) (3) How do you authenticate passwords without storing them on the computer? Store crypto-hashes of the passwords (with “Salt”) 7
Homework Problems Answers are posted in “Resources” on T-square HW_1 Five basic Security Services, Mechanisms to provide those services, Safer use of the Internet with email configuration, and HTTPS use. HW-2 – Basic Principles, Brute Force Attack, Entropy All encrypted messages can be deciphered by a brute-force attack. The time it takes (1) depends of the state-of-the-art in computers and special integrated circuits, and (2) the number of possible keys (= 2^entropy). For a random binary number with N bits, the entropy = N. For a mixed password with different classes of symbols, the entropy is the sum of the entropy of the elements.
HW-2 (cont.) If W is a word from a list of 40,000, then the entropy of a single word is: entropy(W) = log2( 40,000) = log10 (40,000)/log10(2) = 4.6 / 0.3 = 15.3 If a password is WpW where p is one of 16 punctuation characters: entropy(WpW) = 15.3 + 4 + 15.3 = 34.6 bits To convert entropy to the number of possibilities M in decimal: M = 2^entropy = 2^34.6 = 2.6e10 possibilities A brute force attack would take M / [number of tries per hour] hours. To be very safe today, a password should have about 120 bits of entropy. HW-3 – Use of Public/Private Keys, RSA, Diffie-Hellman, Kerberos, Secure Hashes.
Old quizzes are posted in “Resources” on T-square Rules: i This quiz is closed book. One sheet of notes (8.5"x11") may be used (both sides, your handwriting only). Pen or pencil, and a simple calculator are allowed. ii Answer all questions and show all work to receive full credit. iii Each regular sub-question counts 4 points (4 deducted from 100 for each missed question) unless otherwise noted. iv Please do not ask the proctors any questions during the exam about exam questions. Part of the test is understanding the question, as written, without supplemental information. If you feel additional data is needed to solve the problem, make (and state) an assumption and then work the problem. v. This is a time-limited test. All papers must be turned in 45 minutes after the start. If you find you are taking more than 10 minutes on a particular problem, move on and come back to that problem after finishing the others. The Georgia Honor Code applies (see last page). Answers should be 1 to 3 words, or a number (no essays, please), except for design questions (new in 2013). 10