Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Bayesian Networks
subscriber
non-subscriber
A Brief History of DRM
(wrt DVDs)
• 1996 - DVD format first available, just in
time for Christmas
• 1999 - 16 year old reveals first device
key
• Within weeks, all device keys exposed
K1:4
1 2 3 4 Players
AACS Broadcast Encryption
K1:4 media
K1:2 K3:4 (Not to scale)
K1:1 K2:2 K3:3 K4:4
E(media,M) E(M, K1:4)
1 2 3 4
Media Key Block (MKB)
K1:4 media
K1:2 K3:4
1 2 3 4
K1 K2 K3 K4 PLAY K1 OR K2 OR K3 OR K4
K1 OR K2
K1 K2 K3 K4 PLAY
K1 K2 K3 K4 !PLAY K2 OR K3 OR K4
K1 K2 K3 K4 PLAY K1
Clone Box Strategy
•If a box contains an enabled and
disabled key then it has the option to play
or not play
•Stateless ⇒ Plays each test T with a
fixed probability
If two tests play with a different probability, then
the clone box must contain one of the keys on
which they differ (w.r.t. disabling)
NNL Tracing
K1 K2 K3 K4 K5 K6 Pr(play)=1.0
K1 K2 K3 K4 K5 K6 Pr(play)=0.6
K1 K2 K3 K4 K5 K6 Pr(play)=0.1
K1 K2 K3 K4 K5 K6 Pr(play)=0.1
NNL Tracing
• Binary search
• Difficult step is estimating Pr(play)
• Motivates (optimal?) adversarial
strategy: choose a key at random and
try to use it to play media (uniform
choice strategy)
So a solution exists?
• Loop
– For all keys Ki in frontier,
# Try to diagnose a compromised key
• Return Ki if Pr(K i Î C) > 1- e
– Select test T
– Submit to clone box, get response t∈{0,1}
# update beliefs
– Pr(K1,K ,K n ) ¬ Pr(K1,K ,K n | T = t)
Bayesian Net: Naïve
Approach
T1 T2 T3
1
Pr(T1 ) =
2
1
Pr(T2 ) =
2
Pr(T3 ) = 1 K1 K2 K3 K4 K5 K6
F
Computational Bottlenecks
1. Inference is exponential in frontier
size.
Test Selection
• In previous example, we learn nothing with
test T2
• Quantify uncertainty about clone box with
entropy and then choose test that maximizes
mutual information.
H(K | T ) = - å Pr(K'| T )log(Pr(K'| T ))
K'Í F
E1 D1 E2 D2
K1 K2 K3 K4 K5 K6
F1 F2
i
Pr(F) » Õ Pr(F )
i
Calculating Marginal
Probabilities
• Store joint distribution for each partition as a
table
• Update table after each test….
e,d j j
Space/Time Complexity