slides/slides03.tex
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Mon, 30 Sep 2013 23:57:44 +0100
changeset 105 40c51038c9e4
parent 90 d1d07f05325a
child 111 677179c76e35
permissions -rw-r--r--
added
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     1
\documentclass[dvipsnames,14pt,t]{beamer}
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
     2
\usepackage{beamerthemeplaincu}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
     3
%%\usepackage[T1]{fontenc}
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     4
\usepackage[latin1]{inputenc}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     5
\usepackage{mathpartir}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     6
\usepackage[absolute,overlay]{textpos}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     7
\usepackage{ifthen}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     8
\usepackage{tikz}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
     9
\usepackage{pgf}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    10
\usepackage{calc} 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    11
\usepackage{ulem}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    12
\usepackage{courier}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    13
\usepackage{listings}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    14
\renewcommand{\uline}[1]{#1}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    15
\usetikzlibrary{arrows}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    16
\usetikzlibrary{automata}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    17
\usetikzlibrary{shapes}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    18
\usetikzlibrary{shadows}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    19
\usetikzlibrary{positioning}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    20
\usetikzlibrary{calc}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    21
\usepackage{graphicx} 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    22
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    23
\definecolor{javared}{rgb}{0.6,0,0} % for strings
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    24
\definecolor{javagreen}{rgb}{0.25,0.5,0.35} % comments
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    25
\definecolor{javapurple}{rgb}{0.5,0,0.35} % keywords
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    26
\definecolor{javadocblue}{rgb}{0.25,0.35,0.75} % javadoc
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    27
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    28
\lstset{language=Java,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    29
	basicstyle=\ttfamily,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    30
	keywordstyle=\color{javapurple}\bfseries,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    31
	stringstyle=\color{javagreen},
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    32
	commentstyle=\color{javagreen},
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    33
	morecomment=[s][\color{javadocblue}]{/**}{*/},
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    34
	numbers=left,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    35
	numberstyle=\tiny\color{black},
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    36
	stepnumber=1,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    37
	numbersep=10pt,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    38
	tabsize=2,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    39
	showspaces=false,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    40
	showstringspaces=false}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    41
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    42
\lstdefinelanguage{scala}{
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    43
  morekeywords={abstract,case,catch,class,def,%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    44
    do,else,extends,false,final,finally,%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    45
    for,if,implicit,import,match,mixin,%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    46
    new,null,object,override,package,%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    47
    private,protected,requires,return,sealed,%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    48
    super,this,throw,trait,true,try,%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    49
    type,val,var,while,with,yield},
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    50
  otherkeywords={=>,<-,<\%,<:,>:,\#,@},
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    51
  sensitive=true,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    52
  morecomment=[l]{//},
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    53
  morecomment=[n]{/*}{*/},
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    54
  morestring=[b]",
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    55
  morestring=[b]',
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    56
  morestring=[b]"""
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    57
}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    58
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    59
\lstset{language=Scala,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    60
	basicstyle=\ttfamily,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    61
	keywordstyle=\color{javapurple}\bfseries,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    62
	stringstyle=\color{javagreen},
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    63
	commentstyle=\color{javagreen},
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    64
	morecomment=[s][\color{javadocblue}]{/**}{*/},
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    65
	numbers=left,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    66
	numberstyle=\tiny\color{black},
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    67
	stepnumber=1,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    68
	numbersep=10pt,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    69
	tabsize=2,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    70
	showspaces=false,
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    71
	showstringspaces=false}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    72
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    73
% beamer stuff 
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    74
\renewcommand{\slidecaption}{APP 02, King's College London, 2 October 2012}
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    75
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    76
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    77
\begin{document}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    78
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    79
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    80
\mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    81
\begin{frame}<1>[t]
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    82
\frametitle{%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    83
  \begin{tabular}{@ {}c@ {}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    84
  \\
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    85
  \LARGE Access Control and \\[-3mm] 
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    86
  \LARGE Privacy Policies (2)\\[-6mm] 
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    87
  \end{tabular}}\bigskip\bigskip\bigskip
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    88
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    89
  %\begin{center}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    90
  %\includegraphics[scale=1.3]{pics/barrier.jpg}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    91
  %\end{center}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    92
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    93
\normalsize
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    94
  \begin{center}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    95
  \begin{tabular}{ll}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    96
  Email:  & christian.urban at kcl.ac.uk\\
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    97
  Of$\!$fice: & S1.27 (1st floor Strand Building)\\
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
    98
  Slides: & KEATS (also home work is there)
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
    99
  \end{tabular}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   100
  \end{center}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   101
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   102
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   103
\end{frame}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   104
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   105
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   106
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   107
\mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   108
\begin{frame}[c]
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   109
\frametitle{\begin{tabular}{c}Homework\end{tabular}}
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   110
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   111
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   112
\ldots{} I have a question about the homework.\\[3mm] 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   113
Is it required to submit the homework before\\ 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   114
the next lecture?\\[5mm]
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   115
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   116
Thank you!\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   117
Anonymous
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   118
  
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   119
\end{frame}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   120
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   121
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   122
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   123
\mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   124
\begin{frame}[c]
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   125
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   126
\begin{center}
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   127
\begin{tabular}[t]{c}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   128
\includegraphics[scale=1.2]{pics/barrier.jpg}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   129
future lectures
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   130
\end{tabular}\;\;\;
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   131
\onslide<2>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   132
\begin{tabular}[t]{c}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   133
\includegraphics[scale=0.32]{pics/trainwreck.jpg}\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   134
today
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   135
\end{tabular}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   136
}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   137
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   138
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   139
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   140
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   141
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   142
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   143
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   144
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   145
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   146
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   147
\frametitle{\begin{tabular}{@ {}c@ {}}SmartWater\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   148
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   149
\begin{textblock}{1}(1,3)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   150
\begin{tabular}{c}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   151
\includegraphics[scale=0.15]{pics/SmartWater}
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   152
\end{tabular}
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   153
\end{textblock}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   154
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   155
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   156
\begin{textblock}{8.5}(7,3)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   157
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   158
\item seems helpful for preventing cable theft\medskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   159
\item wouldn't be helpful to make your property safe, because of possible abuse\medskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   160
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   161
\item security is always a tradeoff
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   162
\end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   163
\end{textblock}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   164
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   165
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   166
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%     
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   167
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   168
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   169
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   170
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   171
\frametitle{\begin{tabular}{@ {}c@ {}}Plain-text Passwords at IEEE\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   172
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   173
\small\textcolor{gray}{On 25 September 2012, a report on a data breach at IEEE:}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   174
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   175
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   176
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   177
\item IEEE is a standards organisation (not-for-profit) 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   178
\item many standards in CS are by IEEE\medskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   179
\item 100k plain-text passwords were recorded in logs
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   180
\item the logs were openly accessible on their FTP server
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   181
\end{itemize}\bigskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   182
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   183
\begin{flushright}\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   184
\textcolor{gray}{\url{http://ieeelog.com}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   185
\end{flushright}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   186
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   187
\only<2>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   188
\begin{textblock}{11}(3,2)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   189
\begin{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   190
\draw (0,0) node[inner sep=2mm,fill=white, ultra thick, draw=red, rounded corners=2mm] 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   191
{\normalsize\color{darkgray}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   192
\begin{minipage}{7.5cm}\raggedright\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   193
\includegraphics[scale=0.6]{pics/IEEElog.jpg}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   194
\end{minipage}};
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   195
\end{tikzpicture}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   196
\end{textblock}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   197
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   198
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   199
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   200
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   201
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   202
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   203
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   204
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   205
\frametitle{\begin{tabular}{@ {}c@ {}}Virgin Mobile (USA)\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   206
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   207
\begin{flushright}\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   208
\textcolor{gray}{\url{http://arstechnica.com/security/2012/09/virgin-mobile-password-crack-risk/}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   209
\end{flushright}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   210
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   211
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   212
\item for online accounts passwords must be 6 digits
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   213
\item you must cycle through 1M combinations (online)\pause\bigskip
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   214
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   215
\item he limited the attack on his own account to 1 guess per second, \alert{\bf and}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   216
\item wrote a script that cleared the cookie set after each guess\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   217
\item has been fixed now
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   218
\end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   219
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   220
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   221
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   222
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   223
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   224
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   225
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   226
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   227
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   228
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   229
\frametitle{\begin{tabular}{@ {}c@ {}}Smash the Stack for Fun \ldots\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   230
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   231
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   232
\item ``smashing the stack attacks'' or ``buffer overflow attacks''
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   233
\item one of the most popular attacks;\\ attack of the (last) decade\\ ($>$ 50\% of security incidents reported at CERT are related to buffer overflows)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   234
\begin{flushright}\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   235
\textcolor{gray}{\url{http://www.kb.cert.org/vuls}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   236
\end{flushright}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   237
\medskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   238
\item made popular in an article by Elias Levy\\ (also known as Aleph One):\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   239
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   240
{\bf ``Smashing The Stack For Fun and Profit''}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   241
\end{center}\medskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   242
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   243
\begin{flushright}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   244
\small\textcolor{gray}{\url{http://www.phrack.org}, Issue 49, Article 14}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   245
\end{flushright} 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   246
 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   247
\end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   248
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   249
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   250
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   251
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   252
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   253
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   254
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   255
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   256
\frametitle{\begin{tabular}{c}The Problem\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   257
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   258
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   259
\item The basic problem is that library routines in C look as follows:
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   260
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   261
{\lstset{language=Java}\fontsize{8}{10}\selectfont%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   262
\texttt{\lstinputlisting{../progs/app5.c}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   263
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   264
\item the resulting problems are often remotely exploitable 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   265
\item can be used to circumvents all access control
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   266
(botnets for further attacks)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   267
\end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   268
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   269
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   270
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   271
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   272
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   273
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   274
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   275
\frametitle{\begin{tabular}{c}Variants\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   276
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   277
There are many variants:
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   278
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   279
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   280
\item return-to-lib-C attacks
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   281
\item heap-smashing attacks\\
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   282
\textcolor{gray}{\small(Slammer Worm in 2003 infected 90\% of vulnerable systems within 10 minutes)}\bigskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   283
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   284
\item ``zero-days-attacks'' (new unknown vulnerability)
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   285
\end{itemize}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   286
  
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   287
\end{frame}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   288
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   289
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   290
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   291
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   292
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   293
\mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   294
\begin{frame}[c]
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   295
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   296
\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   297
\texttt{my\_float} is printed twice:\bigskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   298
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   299
{\lstset{language=Java}\fontsize{8}{10}\selectfont%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   300
\texttt{\lstinputlisting{../progs/C1.c}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   301
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   302
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   303
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   304
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   305
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   306
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   307
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   308
\begin{frame}[c]
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   309
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   310
\begin{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   311
\only<1>{\includegraphics[scale=0.9]{pics/stack1}\;\;}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   312
\only<2>{\includegraphics[scale=0.9]{pics/stack2}\;\;}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   313
\only<3>{\includegraphics[scale=0.9]{pics/stack3}\;\;}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   314
\end{center}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   315
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   316
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   317
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   318
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   319
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   320
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   321
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   322
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   323
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   324
{\lstset{language=Java}\fontsize{8}{10}\selectfont%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   325
\texttt{\lstinputlisting{../progs/C2.c}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   326
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   327
  
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   328
\end{frame}}
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   329
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   330
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   331
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   332
\mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   333
\begin{frame}[c]
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   334
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   335
\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   336
A programmer might be careful, but still introduce vulnerabilities:\bigskip
29
Christian Urban <urbanc@in.tum.de>
parents: 28
diff changeset
   337
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   338
{\lstset{language=Java}\fontsize{8}{10}\selectfont%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   339
\texttt{\lstinputlisting{../progs/C2a.c}}}
29
Christian Urban <urbanc@in.tum.de>
parents: 28
diff changeset
   340
Christian Urban <urbanc@in.tum.de>
parents: 28
diff changeset
   341
  
Christian Urban <urbanc@in.tum.de>
parents: 28
diff changeset
   342
\end{frame}}
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   343
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
29
Christian Urban <urbanc@in.tum.de>
parents: 28
diff changeset
   344
Christian Urban <urbanc@in.tum.de>
parents: 28
diff changeset
   345
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents: 28
diff changeset
   346
\mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents: 28
diff changeset
   347
\begin{frame}[c]
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   348
\frametitle{\begin{tabular}{c}Payloads\end{tabular}}
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   349
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   350
\begin{itemize}
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   351
\item the idea is you store some code as part to the buffer
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   352
\item you then override the return address to execute this payload\medskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   353
\item normally you start a root-shell\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   354
\item difficulty is to guess the right place where to ``jump''
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   355
\end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   356
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   357
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   358
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   359
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   360
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   361
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   362
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   363
\frametitle{\begin{tabular}{c}Payloads (2)\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   364
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   365
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   366
\item another difficulty is that the code is not allowed to contain \texttt{$\backslash$x00}:
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   367
29
Christian Urban <urbanc@in.tum.de>
parents: 28
diff changeset
   368
\begin{center}
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   369
\texttt{xorl   \%eax, \%eax}
29
Christian Urban <urbanc@in.tum.de>
parents: 28
diff changeset
   370
\end{center}
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   371
\end{itemize}\bigskip\bigskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   372
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   373
{\lstset{language=Java}\fontsize{8}{10}\selectfont%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   374
\texttt{\lstinputlisting{../progs/app5.c}}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   375
  
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   376
\end{frame}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   377
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   378
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   379
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   380
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   381
\mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   382
\begin{frame}[c]
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   383
\frametitle{\begin{tabular}{c}Format String Vulnerability\end{tabular}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   384
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   385
\small
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   386
\texttt{string} is nowhere used:\bigskip
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   387
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   388
{\lstset{language=Java}\fontsize{8}{10}\selectfont%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   389
\texttt{\lstinputlisting{../progs/C4.c}}}\bigskip
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   390
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   391
this vulnerability can be used to read out the stack
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   392
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   393
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   394
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   395
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   396
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   397
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   398
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   399
\frametitle{\begin{tabular}{c}Protections against BO Attacks\end{tabular}}
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   400
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   401
\begin{itemize}
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   402
\item use safe library functions
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   403
\item ensure stack data is not executable (can be defeated)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   404
\item address space randomisation (makes one-size-fits-all more difficult)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   405
\item choice of programming language (one of the selling points of Java)
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   406
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   407
\end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   408
  
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   409
\end{frame}}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   410
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   411
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   412
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   413
\mode<presentation>{
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   414
\begin{frame}[c]
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   415
\frametitle{\begin{tabular}{c}Security Goals\end{tabular}}
29
Christian Urban <urbanc@in.tum.de>
parents: 28
diff changeset
   416
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   417
\begin{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   418
\item Prevent common vulnerabilities from occurring (e.g. buffer overflows)\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   419
\item Recover from attacks (traceability and auditing of security-relevant actions)\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   420
\item Monitoring (detect attacks)\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   421
\item Privacy, confidentiality, anonymity (to protect secrets)\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   422
\item Authenticity (needed for access control)\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   423
\item Integrity (prevent unwanted modification or tampering)\pause
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   424
\item Availability and reliability (reduce the risk of DoS attacks)
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   425
\end{itemize}
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   426
  
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   427
\end{frame}}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   428
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   429
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   430
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   431
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   432
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   433
\mode<presentation>{
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   434
\begin{frame}[c]
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   435
\frametitle{\begin{tabular}{c}Homework\end{tabular}}
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   436
29
Christian Urban <urbanc@in.tum.de>
parents: 28
diff changeset
   437
\begin{itemize}
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   438
\item Assume format string attacks allow you to read out the stack. What can you do
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   439
	with this information?\bigskip
31
Christian Urban <urbanc@in.tum.de>
parents: 30
diff changeset
   440
105
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   441
\item Assume you can crash a program remotely. Why is this a problem?
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   442
\end{itemize}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 90
diff changeset
   443
  
30
Christian Urban <urbanc@in.tum.de>
parents: 29
diff changeset
   444
\end{frame}}
Christian Urban <urbanc@in.tum.de>
parents: 29
diff changeset
   445
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
29
Christian Urban <urbanc@in.tum.de>
parents: 28
diff changeset
   446
28
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   447
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   448
\end{document}
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   449
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   450
%%% Local Variables:  
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   451
%%% mode: latex
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   452
%%% TeX-master: t
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   453
%%% End: 
Christian Urban <urbanc@in.tum.de>
parents:
diff changeset
   454