Docsity

Computer Security - Homework Questions | CSE 543, Assignments of Computer Science

Toggle sidebar
bg1
CSE 543/Fall 2007 - Homework
Due: Thursday, December 6, 2007 —Professor Trent Jaeger
Please read the instructions and questions carefully. You will be graded for clarity and correctness. Write
legibly and check your answers before handing it in. Do your own work!
1. (10pts) Answer the following questions IPsec:
(a) (3pts) What are three differences between the ESP and AH protocols of IPsec?
(b) (2pts) What is the main difference between tunnel and transport modes of IPsec?
(c) (3pts) What are three differences the IPsec protocol and SSL protocol?
(d) (2pts) Describe how IPsec prevents TCP connection hijacking?
answer: (a) Only ESP does encryption for confidentiality. Only AH protects the IP header in
transport mode. Only ESP does both confidentiality and integrity protection via HMAC. Only AH
has to deal with transient data in AH headers. Only ESP hides TCP info from firewalls.
(b) Transport mode defines end-to-end security protection for a packet, whereas tunnel mode defines
protection for intermediate legs of the route.
(c) IPsec is implemented in-kernel, whereas SSL is integrated with the application. IPsec can be nego-
tiated with shared symmetric keys of certificates, whereas SSL uses certificates built into application.
SSL typically only authenticates the server, but IPsec authenticates both.
(d) When a connection is initiated, an IPsec SA is negotiated. The IPsec negotiation protocol
prevents replay. The subsequent TCP connections will be protected from replay by IPsec sequence
numbers. The attacker will not be able to generate a legitimate IPsec packet.
2. (8pts) Answer the following questions about web cookies:
1
pf3
pf4

Partial preview of the text

Download Computer Security - Homework Questions | CSE 543 and more Assignments Computer Science in PDF only on Docsity!

CSE 543/Fall 2007 - Homework

Due: Thursday, December 6, 2007 — Professor Trent Jaeger

Please read the instructions and questions carefully. You will be graded for clarity and correctness. Write legibly and check your answers before handing it in. Do your own work!

  1. (10pts) Answer the following questions IPsec: (a) (3pts) What are three differences between the ESP and AH protocols of IPsec?

(b) (2pts) What is the main difference between tunnel and transport modes of IPsec?

(c) (3pts) What are three differences the IPsec protocol and SSL protocol?

(d) (2pts) Describe how IPsec prevents TCP connection hijacking? answer: (a) Only ESP does encryption for confidentiality. Only AH protects the IP header in transport mode. Only ESP does both confidentiality and integrity protection via HMAC. Only AH has to deal with transient data in AH headers. Only ESP hides TCP info from firewalls. (b) Transport mode defines end-to-end security protection for a packet, whereas tunnel mode defines protection for intermediate legs of the route. (c) IPsec is implemented in-kernel, whereas SSL is integrated with the application. IPsec can be nego- tiated with shared symmetric keys of certificates, whereas SSL uses certificates built into application. SSL typically only authenticates the server, but IPsec authenticates both. (d) When a connection is initiated, an IPsec SA is negotiated. The IPsec negotiation protocol prevents replay. The subsequent TCP connections will be protected from replay by IPsec sequence numbers. The attacker will not be able to generate a legitimate IPsec packet.

  1. (8pts) Answer the following questions about web cookies:

(a) (2pts) What is a web cookie?

(b) (2pts) Design a web cookie to store a secret value X on a client’s system, given that the server has Ks and the client has Kc.

(c) (2pts) List two security problems with the use of web cookies.

(d) (2pts) What is a problem with using the same passport key to encrypt all passport cookies? What’s a solution? answer: (a) A blob of information stored on a client computer by the server to store state of a web session with the server. (b) E(Ks, X) + HM AC(Ks, X) (c) They can be stolen and may be reused on another computer if poorly designed. They may contain private information in the clear. They may be replayed from the same computer after the user has gone (library attack). (d) Unnecessary exposure of encrypted information generated via a single key. Should use a master key to generate per-client keys for encrypting information.

  1. (10pts) Consider the following intrusion detection system that is monitoring a shipping website. On average, there are 500 malicious login a day, and the website receives 25,000 legitimate logins a day. Moreover, assume you have an 90% accurate intrusion detection algorithm. Fill in the following probabilities and show your work. Hint - Bayes rule states: P (A|B) = P^ (B P|A (B)P)^ (A)

(a) attacks per day = 500 (b) (1 pt) logins per day = 25, 000

FW

Src Addr Src Port Dest Addr Dest Port Accept/Deny

answer:

FW

Src Addr Src Port Dest Addr Dest Port Accept/Deny 9.2.0.* * 9.3.11.* 80 A 9.2.1.* * 9.3.11.* 80 A 11.14.* * 9.3.11.* 80 A 9.3.11.* 80 9.2.0.* * A 9.3.11.* 80 9.2.1.* * A 9.3.11.* 80 11.14.* * A 9.2.1.* * 9.3.11.4 22 A 9.3.11.4 22 9.2.1.* * A

        • D

FW

Src Addr Src Port Dest Addr Dest Port Accept/Deny 9.3.12.* * 9.3.11.* 21 A 9.3.11.* 21 9.3.12.* * A

        • D