


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!



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!
(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.
(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.
(a) attacks per day = 500 (b) (1 pt) logins per day = 25, 000
Src Addr Src Port Dest Addr Dest Port Accept/Deny
answer:
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
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