slides/slides02.tex
changeset 185 f10d905e947f
parent 113 0332f8102121
child 186 f7aa15984301
equal deleted inserted replaced
184:55968b3205cc 185:f10d905e947f
     1 \documentclass[dvipsnames,14pt,t]{beamer}
     1 \documentclass[dvipsnames,14pt,t]{beamer}
     2 \usepackage{beamerthemeplaincu}
     2 \usepackage{../slides}
     3 \usepackage[latin1]{inputenc}
     3 \usepackage{../graphics}
     4 \usepackage{mathpartir}
     4 \usepackage{../langs}
     5 \usepackage[absolute,overlay]{textpos}
     5 
     6 \usepackage{ifthen}
     6 \setmonofont[Scale=.88]{Consolas}
     7 \usepackage{tikz}
     7 \newfontfamily{\consolas}{Consolas}
     8 \usepackage{pgf}
     8 
     9 \usepackage{calc} 
     9 \hfuzz=220pt 
    10 \usepackage{ulem}
       
    11 \usepackage{courier}
       
    12 \usepackage{listings}
       
    13 \renewcommand{\uline}[1]{#1}
       
    14 \usetikzlibrary{arrows}
       
    15 \usetikzlibrary{automata}
       
    16 \usetikzlibrary{shapes}
       
    17 \usetikzlibrary{shadows}Net
       
    18 \usetikzlibrary{positioning}
       
    19 \usetikzlibrary{calc}
       
    20 \usepackage{graphicx} 
       
    21 
       
    22 \definecolor{javared}{rgb}{0.6,0,0} % for strings
       
    23 \definecolor{javagreen}{rgb}{0.25,0.5,0.35} % comments
       
    24 \definecolor{javapurple}{rgb}{0.5,0,0.35} % keywords
       
    25 \definecolor{javadocblue}{rgb}{0.25,0.35,0.75} % javadoc
       
    26 
       
    27 \lstset{language=Java,
       
    28 	basicstyle=\ttfamily,
       
    29 	keywordstyle=\color{javapurple}\bfseries,
       
    30 	stringstyle=\color{javagreen},
       
    31 	commentstyle=\color{javagreen},
       
    32 	morecomment=[s][\color{javadocblue}]{/**}{*/},
       
    33 	numbers=left,
       
    34 	numberstyle=\tiny\color{black},
       
    35 	stepnumber=1,
       
    36 	numbersep=10pt,
       
    37 	tabsize=2,
       
    38 	showspaces=false,
       
    39 	showstringspaces=false}
       
    40 
       
    41 \lstdefinelanguage{scala}{
       
    42   morekeywords={abstract,case,catch,class,def,%
       
    43     do,else,extends,false,final,finally,%
       
    44     for,if,implicit,import,match,mixin,%
       
    45     new,null,object,override,package,%
       
    46     private,protected,requires,return,sealed,%
       
    47     super,this,throw,trait,true,try,%
       
    48     type,val,var,while,with,yield},
       
    49   otherkeywords={=>,<-,<\%,<:,>:,\#,@},
       
    50   sensitive=true,
       
    51   morecomment=[l]{//},
       
    52   morecomment=[n]{/*}{*/},
       
    53   morestring=[b]",
       
    54   morestring=[b]',
       
    55   morestring=[b]"""
       
    56 }
       
    57 
       
    58 \lstset{language=Scala,
       
    59 	basicstyle=\ttfamily,
       
    60 	keywordstyle=\color{javapurple}\bfseries,
       
    61 	stringstyle=\color{javagreen},
       
    62 	commentstyle=\color{javagreen},
       
    63 	morecomment=[s][\color{javadocblue}]{/**}{*/},
       
    64 	numbers=left,
       
    65 	numberstyle=\tiny\color{black},
       
    66 	stepnumber=1,
       
    67 	numbersep=10pt,
       
    68 	tabsize=2,
       
    69 	showspaces=false,
       
    70 	showstringspaces=false}
       
    71 
    10 
    72 % beamer stuff 
    11 % beamer stuff 
    73 \renewcommand{\slidecaption}{APP 02, King's College London, 1 October 2013}
    12 \renewcommand{\slidecaption}{APP 02, King's College London}
    74 
    13 
    75 %Bank vs Voting
    14 %Bank vs Voting
    76 %http://www.parliament.vic.gov.au/images/stories/committees/emc/2010_Election/submissions/13_VTeague_EMC_Inquiry_No.6.pdf
    15 %http://www.parliament.vic.gov.au/images/stories/committees/emc/2010_Election/submissions/13_VTeague_EMC_Inquiry_No.6.pdf
    77 
    16 
    78 % first cyber attack
    17 % first cyber attack
    79 %http://investigations.nbcnews.com/_news/2013/03/18/17314818-cyberattack-on-florida-election-is-first-known-case-in-us-experts-say
    18 %http://investigations.nbcnews.com/_news/2013/03/18/17314818-cyberattack-on-florida-election-is-first-known-case-in-us-experts-say
    80 
    19 
    81 \begin{document}
    20 \begin{document}
    82 
    21 
    83 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    84 \mode<presentation>{
    23 \begin{frame}[t]
    85 \begin{frame}<1>[t]
       
    86 \frametitle{%
    24 \frametitle{%
    87   \begin{tabular}{@ {}c@ {}}
    25   \begin{tabular}{@ {}c@ {}}
    88   \\
    26   \\
    89   \LARGE Access Control and \\[-3mm] 
    27   \LARGE Access Control and \\[-3mm] 
    90   \LARGE Privacy Policies (2)\\[-6mm] 
    28   \LARGE Privacy Policies (2)\\[-6mm] 
    97   Office: & S1.27 (1st floor Strand Building)\\
    35   Office: & S1.27 (1st floor Strand Building)\\
    98   Slides: & KEATS (also homework is there)\\
    36   Slides: & KEATS (also homework is there)\\
    99   \end{tabular}
    37   \end{tabular}
   100   \end{center}
    38   \end{center}
   101 
    39 
   102 
    40 \end{frame}
   103 \end{frame}}
       
   104  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
    41  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
   105 
    42 
   106 
    43 
   107 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    44 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   108 \mode<presentation>{
       
   109 \begin{frame}[c]
    45 \begin{frame}[c]
   110 \frametitle{\begin{tabular}{c}This Course is about\\[-2mm]  ``Satan's Computer''\end{tabular}}
    46 \frametitle{\begin{tabular}{c}This Course is about\\[-2mm]  ``Satan's Computer''\end{tabular}}
   111 
    47 
   112 Ross Anderson and Roger Needham wrote:\bigskip
    48 Ross Anderson and Roger Needham wrote:\bigskip
   113 
    49 
   114 \begin{tikzpicture}
    50 \begin{bubble}[10cm]
   115 \draw (0,0) node[inner sep=2mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] 
    51 \small
   116 {\normalsize\color{darkgray}
       
   117 \begin{minipage}{10cm}\raggedright\small
       
   118 ``In effect, our task is to program a computer which gives 
    52 ``In effect, our task is to program a computer which gives 
   119 answers which are subtly and maliciously wrong at the most 
    53 answers which are subtly and maliciously wrong at the most 
   120 inconvenient possible moment\ldots{} we hope that the lessons 
    54 inconvenient possible moment\ldots{} we hope that the lessons 
   121 learned from programming Satan's computer may be helpful 
    55 learned from programming Satan's computer may be helpful 
   122 in tackling the more common problem of programming Murphy's.''
    56 in tackling the more common problem of programming Murphy's.''
   123 \end{minipage}};
    57 \end{bubble}\\[30mm]
   124 \end{tikzpicture}\\[30mm]
       
   125 
    58 
   126 \only<2>{
    59 \only<2>{
   127 \begin{textblock}{11}(2,12)
    60 \begin{textblock}{11}(3,12)
   128 \begin{tabular}{c}
    61 \begin{tabular}{c}
   129 \includegraphics[scale=0.12]{pics/ariane.jpg}\\[-2mm]
    62 \includegraphics[scale=0.12]{pics/ariane.jpg}\\[-2mm]
   130 \footnotesize Murphy's computer
    63 \footnotesize Murphy's computer
   131 \end{tabular}
    64 \end{tabular}
   132 \begin{tabular}{c}
    65 \begin{tabular}{c}
   134 \includegraphics[scale=0.06]{pics/pinsentry.jpg}\\[-2mm]
    67 \includegraphics[scale=0.06]{pics/pinsentry.jpg}\\[-2mm]
   135 \footnotesize Satan's computers
    68 \footnotesize Satan's computers
   136 \end{tabular}
    69 \end{tabular}
   137 \end{textblock}}
    70 \end{textblock}}
   138 
    71 
   139 \end{frame}}
    72 \end{frame}
   140 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
    73 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
   141 
    74 
   142 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    75 
   143 \mode<presentation>{
    76 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   144 \begin{frame}[c]
       
   145 \frametitle{\Large\begin{tabular}{c}User-Tracking Without Cookies\end{tabular}}
       
   146 
       
   147 Can you track a user {\bf without}:
       
   148 
       
   149 \begin{itemize}
       
   150 \item Cookies
       
   151 \item Javascript
       
   152 \item LocalStorage/SessionStorage/GlobalStorage
       
   153 \item Flash, Java or other plugins
       
   154 \item Your IP address or user agent string
       
   155 \item Any methods employed by Panopticlick\\
       
   156 \mbox{}\hfill $\rightarrow$ \textcolor{blue}{\url{https://panopticlick.eff.org/}}
       
   157 \end{itemize}
       
   158 
       
   159 Even when you disabled cookies entirely, have Javascript turned off and use a VPN service.\\\pause
       
   160 And numerous sites already use it (Google).
       
   161 
       
   162 \end{frame}}
       
   163 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
       
   164 
       
   165 
       
   166 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
       
   167 \mode<presentation>{
       
   168 \begin{frame}[c]
       
   169 \frametitle{\begin{tabular}{c}Web-Protocol\end{tabular}}
       
   170 
       
   171 \only<1->{
       
   172 \begin{textblock}{1}(2,2)
       
   173   \begin{tikzpicture}[scale=1.3]
       
   174   \draw[white] (0,0) node (X) {\includegraphics[scale=0.12]{pics/firefox.jpg}};
       
   175   \end{tikzpicture}
       
   176 \end{textblock}}
       
   177 
       
   178 \only<1->{
       
   179 \begin{textblock}{1}(11,2)
       
   180   \begin{tikzpicture}[scale=1.3]
       
   181   \draw[white] (0,0) node (X) {\includegraphics[scale=0.15]{pics/servers.png}};
       
   182   \end{tikzpicture}
       
   183 \end{textblock}}
       
   184 
       
   185 \only<1->{
       
   186 \begin{textblock}{1}(5,2.5)
       
   187   \begin{tikzpicture}[scale=1.3]
       
   188   \draw[white] (0,0) node (X) {};
       
   189   \draw[white] (3,0) node (Y) {};
       
   190   \draw[red, ->, line width = 2mm] (X) -- (Y);
       
   191   \node [inner sep=5pt,label=above:\textcolor{black}{\small GET static.jpg}] at ($ (X)!.5!(Y) $) {};
       
   192   \end{tikzpicture}
       
   193 \end{textblock}}
       
   194 
       
   195 \only<2->{
       
   196 \begin{textblock}{1}(5,6)
       
   197   \begin{tikzpicture}[scale=1.3]
       
   198   \draw[white] (0,0) node (X) {};
       
   199   \draw[white] (3,0) node (Y) {};
       
   200   \draw[red, <-, line width = 2mm] (X) -- (Y);
       
   201   \node [inner sep=5pt,label=below:\textcolor{black}{\small ETag: 7b33de1}] at ($ (X)!.5!(Y) $) {};
       
   202    \node [inner sep=5pt,label=above:{\includegraphics[scale=0.15]{pics/tvtestscreen.jpg}}] at ($ (X)!.5!(Y) $) {};
       
   203   \end{tikzpicture}
       
   204 \end{textblock}}
       
   205 
       
   206 \only<3->{
       
   207 \begin{textblock}{1}(4.2,11)
       
   208   \begin{tikzpicture}[scale=1.3]
       
   209   \draw[white] (0,0) node (X) {};
       
   210   \draw[white] (3,0) node (Y) {};
       
   211   \draw[red, ->, line width = 2mm] (X) -- (Y);
       
   212   \node [inner sep=5pt,label=above:\textcolor{black}{\small GET static.jpg ETag: 7b33de1}] at ($ (X)!.5!(Y) $) {};
       
   213   \end{tikzpicture}
       
   214 \end{textblock}}
       
   215 
       
   216 \only<4->{
       
   217 \begin{textblock}{1}(4.2,13.9)
       
   218   \begin{tikzpicture}[scale=1.3]
       
   219   \draw[white] (0,0) node (X) {};
       
   220   \draw[white] (3,0) node (Y) {};
       
   221   \draw[red, <-, line width = 2mm] (X) -- (Y);
       
   222   \node [inner sep=5pt,label=below:\textcolor{black}{\small HTTP/1.1 304 (Not Modified)}] at ($ (X)!.5!(Y) $) {};
       
   223   \end{tikzpicture}
       
   224 \end{textblock}}
       
   225 
       
   226 \end{frame}}
       
   227 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
       
   228 
       
   229 
       
   230 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
       
   231 \mode<presentation>{
       
   232 \begin{frame}[c]
    77 \begin{frame}[c]
   233 \frametitle{Today's Lecture}
    78 \frametitle{Today's Lecture}
   234 \begin{center}
    79 \begin{center}
   235 \begin{tabular}{cc}
    80 \begin{tabular}{cc}
   236 \large online banking  & \hspace{6mm}\large e-voting\\
    81 \large online banking  & \hspace{6mm}\large e-voting\\
   237 \textcolor{gray}{solved} & \hspace{6mm}\textcolor{gray}{unsolved}\\
    82 \textcolor{gray}{solved} & \hspace{6mm}\textcolor{gray}{unsolved}\\
   238 \end{tabular}
    83 \end{tabular}
   239 \end{center}
    84 \end{center}
   240 
    85 
   241 
    86 \end{frame}
   242 \end{frame}}
       
   243 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
    87 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  
   244 
    88 
   245 
    89 
   246 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    90 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   247 \mode<presentation>{
    91 \mode<presentation>{