author | Christian Urban <christian dot urban at kcl dot ac dot uk> |
Fri, 10 Oct 2014 16:14:55 +0100 | |
changeset 239 | 0db764174afb |
parent 155 | c70342f08326 |
child 252 | fa151c0a3cf4 |
permissions | -rw-r--r-- |
97
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
1 |
\documentclass{article} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
2 |
\usepackage{charter} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
3 |
\usepackage{hyperref} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
4 |
\usepackage{amssymb} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
5 |
|
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
6 |
\begin{document} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
7 |
|
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
8 |
\section*{Homework 5} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
9 |
|
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
10 |
\begin{enumerate} |
239
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
11 |
\item Consider the following simple mutual authentication protocol: |
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
12 |
|
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
13 |
\begin{center} |
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
14 |
\begin{tabular}{ll} |
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
15 |
$A \rightarrow B$: & $N_a$\\ |
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
16 |
$B \rightarrow A$: & $\{N_a, N_b\}_{K_{ab}}$\\ |
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
17 |
$A \rightarrow B$: & $N_b$\\ |
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
18 |
\end{tabular} |
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
19 |
\end{center} |
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
20 |
|
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
21 |
Explain how an attacker $B'$ can launch an impersonation attack by |
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
22 |
intercepting all messages for $B$ and make $A$ decrypt her own challenges. |
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
23 |
|
0db764174afb
updated home works
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
155
diff
changeset
|
24 |
|
97
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
25 |
\item Access control is about deciding whether a principal that |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
26 |
issues a request should be trusted on this request. Explain |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
27 |
how such decision problems can be solved by using logic. |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
28 |
|
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
29 |
\item The informal meaning of the formula $P\;\textit{controls}\;F$ is |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
30 |
`$P$ is entitled to do $F$'. Give a definition for this formula in terms |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
31 |
of $\textit{says}$. |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
32 |
|
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
33 |
\item Explain what is meant by a {\it derived} inference rule. |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
34 |
|
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
35 |
|
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
36 |
\item Give a justification for the derived rule |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
37 |
\begin{center} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
38 |
\begin{tabular}{c} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
39 |
$\Gamma \vdash P\;\textit{controls}\;F$ \hspace{4mm} $\Gamma \vdash P\;\textit{says}\;F$\\\hline |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
40 |
$\Gamma \vdash F$ |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
41 |
\end{tabular} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
42 |
\end{center} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
43 |
|
155
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
44 |
%\item Give a justification for the derived rule |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
45 |
%\begin{center} |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
46 |
%\begin{tabular}{c} |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
47 |
%$\Gamma \vdash P\;\mapsto\;Q$ \hspace{4mm} $\Gamma \vdash P\;\textit{says}\;F$\\\hline |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
48 |
%$\Gamma \vdash Q\;\textit{says}\;F$ |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
49 |
%\end{tabular} |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
50 |
%\end{center} |
97
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
51 |
|
155
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
52 |
%\item Model formally the situation that a customer has bought a ticket and requests to see a |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
53 |
%movie. For this suppose three principals, {\it Ticket}, {\it Customer} and {\it Cinema}, |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
54 |
%and suppose an authorization |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
55 |
%\begin{center} |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
56 |
%$\textit{Permitted}(\textit{Customer}, \textit{sees\_movie})$. |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
57 |
%\end{center} |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
58 |
%Using access-control logic, give formulas for a {\it Customer}'s access |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
59 |
%request, an access-control policy of the {\it Cinema}, a trust assumption |
c70342f08326
deleted old questions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
97
diff
changeset
|
60 |
%and a ticket rule. |
97
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
61 |
|
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
62 |
\item Assume $\Gamma$ is a set consisting of the three formulas: |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
63 |
\begin{center} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
64 |
\begin{tabular}{l} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
65 |
\\ |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
66 |
$(\textit{Admin}\;\textit{says}\;\textit{del\_file})\;\Rightarrow\;\textit{del\_file}$\\ |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
67 |
$\textit{Admin}\;\textit{says}\;((\textit{Alice}\;\textit{says}\;\textit{del\_file}) |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
68 |
\Rightarrow \textit{del\_file})$\\ |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
69 |
$\textit{Alice}\;\textit{says}\;\textit{del\_file}$\\ |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
70 |
\\ |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
71 |
\end{tabular} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
72 |
\end{center} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
73 |
|
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
74 |
Give a proof of the judgement |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
75 |
\begin{center} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
76 |
$\Gamma \vdash \textit{del\_file}$ |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
77 |
\end{center} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
78 |
|
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
79 |
|
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
80 |
\end{enumerate} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
81 |
\end{document} |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
82 |
|
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
83 |
%%% Local Variables: |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
84 |
%%% mode: latex |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
85 |
%%% TeX-master: t |
efcac3016613
added hws
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff
changeset
|
86 |
%%% End: |