Docsity

Test 1 Study Guide for Computer Security | COMPSCI 161, Study notes of Computer Science

Partial preview of the text

Download Test 1 Study Guide for Computer Security | COMPSCI 161 and more Study notes Computer Science in PDF only on Docsity!

CS 161: Computer Security

Midterm 1 Review

Part 2

October 4, 2006

Marco Barreno

CS 161, Fall 2006

Midterm 1 Review, Part 2

Shamir Secret Sharing

Marco Barreno

CS 161, Fall 2006

Midterm 1 Review, Part 2

Secret sharing: simple example

◮

Let

q

3 and

p

11 (don’t confuse with the

p

, (^) q

of RSA):

f (^) ( x

) =

x 3 + a 2 x 2 + a 1 x + a 0 (

mod 11

◮

randomly choose coefficientsLet’s say the secret we want to hide is “5”, and we

a 2

=

3 and

a 1

=

◮

For

t

=

6, we compute

f (^) ( 1 ) =

f (^) ( 2 ) =

f (^) ( 3 ) =

f (^) ( 4 ) =

f (^) ( 5 ) =

8, and

f (^) ( 6 ) =

◮

Any three can now solve for coefficients: f (^) ( 2

)

= 8 + 4 a 2 + 2 a 1 + a 0 (

mod 11

f (^) ( 3 ) = 9 = 5 + 9 a 2 + 3 a 1 + a 0 (

mod 11

f (^) ( 6 ) = 9 = 7 + 3 a 2 + 6 a 1 + a 0 (

mod 11

Marco Barreno

CS 161, Fall 2006

Midterm 1 Review, Part 2

Zero-Knowledge Protocols

Marco Barreno

CS 161, Fall 2006

Midterm 1 Review, Part 2

How can Mallory pretend to be Bob?

◮

Doesn’t know

b

(because he can’t factor), but can game

the system

◮

To know the "heads" answer, picks

r

like Bob would

◮

When Alice sends "heads", he sends

r

◮

If Alice sends "tails", what can he do? nothing!

◮

To know the "tails" answer, picks

t

and computes

r (^) 2

= t 2 / b 2

to send to Alice

◮

When Alice sends "tails", he sends

t

◮

Alice thinks he sent

rb

and checks by squaring it, but

( rb

) 2

=

r (^) 2 b 2

= (

t 2 / b 2 ) b 2 = t 2

so fake Bob has fooled Alice

on tails

◮

didn’t pickIf Alice sends "heads", he can’t do anything because he

r

and then square it, he just picked something

that he called

r (^) 2 , but he can’t take the square root

Marco Barreno

CS 161, Fall 2006

Midterm 1 Review, Part 2

Why doesn’t the protocol leak information to Alice?

◮

number, which Alice could have picked by herselfWhen she flips "heads", Bob just reveals a random

◮

When she flips "tails", Bob sends her

rb

, but this is also

random number times anything lands on a random valuerandom because multiplication induces a permutation, so a

Marco Barreno

CS 161, Fall 2006

Midterm 1 Review, Part 2

Authentication

◮

originator of a messageAuthentication is verifying an identity, or verifying the

◮

Many types of authentication

◮

Person

→

person

◮

Person

→

local computer

◮

Remote computer

→

person

◮

etc.

◮

Difficult to get right and easy to screw up

◮

phishing, “pretexting”, spyware password pop-ups, etc.Most real attacks today are authentication attacks:

Marco Barreno

CS 161, Fall 2006

Midterm 1 Review, Part 2

Needham-Schroeder

◮

Symmetric encryption with trusted server

◮

a Each user shares symmetric key with server (A shares key

, B shares key

b

, etc.)

◮

A

S: {B}

a

◮

S

A: {t, {A, t}

b } a

◮

A

B: {A, t}

b

◮

A

B: { messages... }

t

Marco Barreno

CS 161, Fall 2006

Midterm 1 Review, Part 2

Firewalls

Marco Barreno

CS 161, Fall 2006

Midterm 1 Review, Part 2

Firewall overview

◮

Motivation: Every network service is a potential hole

◮

Block services in the network before they reach machines

◮

Enforces

security policy:

policy on which services should

distinguish insiders from outsidersbe visible, which should be blocked, and how we

◮

Default allow vs. default deny

◮

Default allow is easier on users and bothers them less

◮

mistakescatches unknown attacks, hedges against commonDefault deny is more secure in several ways: fails safe,

Marco Barreno

CS 161, Fall 2006

Midterm 1 Review, Part 2

Firewall example

◮

allow

tcp

:/out

1.2.3.4:25/in

◮

allow

tcp

:/in

:/out

◮

allow

tcp

:/out

:/in

(if

ACK

is

set)

◮

drop

Marco Barreno

CS 161, Fall 2006

Midterm 1 Review, Part 2

More on firewalls

◮

Reference monitor

◮

Mediates all access to network

◮

verifiableThree requirements: Always invoked, tamper resistant,

◮

Application-level firewall can do more than packet filter

◮

Inspect and enforce application protocols

◮

Do more nuanced filtering

◮

Stateful firewall can do more

◮

Assemble TCP connections (not just look for ACK)

◮

Limit number of open requests, etc.

◮

machineVPNs extend perimeter over secure channel to remote

◮

virusGood for working from home, bad if home computer gets

Marco Barreno

CS 161, Fall 2006

Midterm 1 Review, Part 2