









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!










Part 2
October 4, 2006
Marco Barreno
CS 161, Fall 2006
Midterm 1 Review, Part 2
Marco Barreno
CS 161, Fall 2006
Midterm 1 Review, Part 2
◮
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
Marco Barreno
CS 161, Fall 2006
Midterm 1 Review, Part 2
◮
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
◮
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
◮
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
◮
Symmetric encryption with trusted server
◮
a Each user shares symmetric key with server (A shares key
, B shares key
b
, etc.)
◮
a
◮
A: {t, {A, t}
b } a
◮
B: {A, t}
b
◮
B: { messages... }
t
Marco Barreno
CS 161, Fall 2006
Midterm 1 Review, Part 2
Marco Barreno
CS 161, Fall 2006
Midterm 1 Review, Part 2
◮
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
◮
allow
tcp
:/out
1.2.3.4:25/in
◮
allow
tcp
:/in
:/out
◮
allow
tcp
:/out
:/in
(if
is
set)
◮
drop
Marco Barreno
CS 161, Fall 2006
Midterm 1 Review, Part 2
◮
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