author | Christian Urban <christian dot urban at kcl dot ac dot uk> |
Sat, 06 Sep 2014 15:30:45 +0100 | |
changeset 158 | 702fea7754eb |
parent 152 | 0c62ec6dc691 |
child 196 | 22f027da67ec |
permissions | -rw-r--r-- |
28 | 1 |
\documentclass[dvipsnames,14pt,t]{beamer} |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
2 |
\usepackage{beamerthemeplaincu} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
3 |
%%\usepackage[T1]{fontenc} |
28 | 4 |
\usepackage[latin1]{inputenc} |
5 |
\usepackage{mathpartir} |
|
6 |
\usepackage[absolute,overlay]{textpos} |
|
7 |
\usepackage{ifthen} |
|
8 |
\usepackage{tikz} |
|
9 |
\usepackage{pgf} |
|
10 |
\usepackage{calc} |
|
11 |
\usepackage{ulem} |
|
12 |
\usepackage{courier} |
|
13 |
\usepackage{listings} |
|
14 |
\renewcommand{\uline}[1]{#1} |
|
15 |
\usetikzlibrary{arrows} |
|
16 |
\usetikzlibrary{automata} |
|
17 |
\usetikzlibrary{shapes} |
|
18 |
\usetikzlibrary{shadows} |
|
19 |
\usetikzlibrary{positioning} |
|
20 |
\usetikzlibrary{calc} |
|
21 |
\usepackage{graphicx} |
|
152
0c62ec6dc691
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
115
diff
changeset
|
22 |
\setmonofont[Scale=MatchLowercase]{Consolas} |
0c62ec6dc691
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
115
diff
changeset
|
23 |
\newfontfamily{\consolas}{Consolas} |
28 | 24 |
|
25 |
\definecolor{javared}{rgb}{0.6,0,0} % for strings |
|
26 |
\definecolor{javagreen}{rgb}{0.25,0.5,0.35} % comments |
|
27 |
\definecolor{javapurple}{rgb}{0.5,0,0.35} % keywords |
|
28 |
\definecolor{javadocblue}{rgb}{0.25,0.35,0.75} % javadoc |
|
29 |
||
111
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
30 |
\makeatletter |
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
31 |
\lst@CCPutMacro\lst@ProcessOther {"2D}{\lst@ttfamily{-{}}{-{}}} |
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
32 |
\@empty\z@\@empty |
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
33 |
\makeatother |
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
34 |
|
28 | 35 |
\lstset{language=Java, |
111
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
36 |
basicstyle=\consolas, |
28 | 37 |
keywordstyle=\color{javapurple}\bfseries, |
38 |
stringstyle=\color{javagreen}, |
|
39 |
commentstyle=\color{javagreen}, |
|
40 |
morecomment=[s][\color{javadocblue}]{/**}{*/}, |
|
41 |
numbers=left, |
|
42 |
numberstyle=\tiny\color{black}, |
|
43 |
stepnumber=1, |
|
44 |
numbersep=10pt, |
|
45 |
tabsize=2, |
|
46 |
showspaces=false, |
|
47 |
showstringspaces=false} |
|
48 |
||
49 |
\lstdefinelanguage{scala}{ |
|
50 |
morekeywords={abstract,case,catch,class,def,% |
|
51 |
do,else,extends,false,final,finally,% |
|
52 |
for,if,implicit,import,match,mixin,% |
|
53 |
new,null,object,override,package,% |
|
54 |
private,protected,requires,return,sealed,% |
|
55 |
super,this,throw,trait,true,try,% |
|
56 |
type,val,var,while,with,yield}, |
|
111
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
57 |
otherkeywords={=>,<-,<\%,<:,>:,\#,@,->}, |
28 | 58 |
sensitive=true, |
59 |
morecomment=[l]{//}, |
|
60 |
morecomment=[n]{/*}{*/}, |
|
61 |
morestring=[b]", |
|
62 |
morestring=[b]', |
|
63 |
morestring=[b]""" |
|
64 |
} |
|
65 |
||
66 |
\lstset{language=Scala, |
|
111
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
67 |
basicstyle=\consolas, |
28 | 68 |
keywordstyle=\color{javapurple}\bfseries, |
69 |
stringstyle=\color{javagreen}, |
|
70 |
commentstyle=\color{javagreen}, |
|
71 |
morecomment=[s][\color{javadocblue}]{/**}{*/}, |
|
72 |
numbers=left, |
|
73 |
numberstyle=\tiny\color{black}, |
|
74 |
stepnumber=1, |
|
75 |
numbersep=10pt, |
|
76 |
tabsize=2, |
|
77 |
showspaces=false, |
|
78 |
showstringspaces=false} |
|
79 |
||
111
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
80 |
|
28 | 81 |
% beamer stuff |
111
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
82 |
\renewcommand{\slidecaption}{APP 03, King's College London, 8 October 2013} |
28 | 83 |
|
84 |
||
85 |
\begin{document} |
|
86 |
||
87 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
88 |
\mode<presentation>{ |
|
89 |
\begin{frame}<1>[t] |
|
90 |
\frametitle{% |
|
91 |
\begin{tabular}{@ {}c@ {}} |
|
92 |
\\ |
|
93 |
\LARGE Access Control and \\[-3mm] |
|
111
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
94 |
\LARGE Privacy Policies (3)\\[-6mm] |
28 | 95 |
\end{tabular}}\bigskip\bigskip\bigskip |
96 |
||
97 |
%\begin{center} |
|
98 |
%\includegraphics[scale=1.3]{pics/barrier.jpg} |
|
99 |
%\end{center} |
|
100 |
||
101 |
\normalsize |
|
102 |
\begin{center} |
|
103 |
\begin{tabular}{ll} |
|
104 |
Email: & christian.urban at kcl.ac.uk\\ |
|
111
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
105 |
Office: & S1.27 (1st floor Strand Building)\\ |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
106 |
Slides: & KEATS (also home work is there) |
28 | 107 |
\end{tabular} |
108 |
\end{center} |
|
109 |
||
110 |
||
111 |
\end{frame}} |
|
112 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
113 |
||
114 |
||
113
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
115 |
|
28 | 116 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
117 |
\mode<presentation>{ |
|
118 |
\begin{frame}[c] |
|
119 |
||
120 |
\begin{center} |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
121 |
\begin{tabular}[t]{c} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
122 |
\includegraphics[scale=1.2]{pics/barrier.jpg}\\ |
111
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
123 |
first lecture |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
124 |
\end{tabular}\;\;\; |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
125 |
\onslide<2>{ |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
126 |
\begin{tabular}[t]{c} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
127 |
\includegraphics[scale=0.32]{pics/trainwreck.jpg}\\ |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
128 |
today |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
129 |
\end{tabular} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
130 |
} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
131 |
\end{center} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
132 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
133 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
134 |
\end{frame}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
135 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
136 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
137 |
|
113
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
138 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
139 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
140 |
\mode<presentation>{ |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
141 |
\begin{frame}[c] |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
142 |
\frametitle{\begin{tabular}{c}Network Applications:\\[-1mm] Privilege Separation\end{tabular}} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
143 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
144 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
145 |
\begin{center} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
146 |
\begin{tikzpicture}[scale=1] |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
147 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
148 |
\draw[line width=1mm] (-.3, 0) rectangle (1.5,2); |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
149 |
\draw (4.7,1) node {Internet}; |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
150 |
\draw (-2.7,1.7) node {\footnotesize Application}; |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
151 |
\draw (0.6,1.7) node {\footnotesize Interface}; |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
152 |
\draw (0.6,-0.4) node {\footnotesize \begin{tabular}{c}unprivileged\\[-1mm] process\end{tabular}}; |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
153 |
\draw (-2.7,-0.4) node {\footnotesize \begin{tabular}{c}privileged\\[-1mm] process\end{tabular}}; |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
154 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
155 |
\draw[line width=1mm] (-1.8, 0) rectangle (-3.6,2); |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
156 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
157 |
\draw[white] (1.7,1) node (X) {}; |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
158 |
\draw[white] (3.7,1) node (Y) {}; |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
159 |
\draw[red, <->, line width = 2mm] (X) -- (Y); |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
160 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
161 |
\draw[red, <->, line width = 1mm] (-0.6,1) -- (-1.6,1); |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
162 |
\end{tikzpicture} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
163 |
\end{center} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
164 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
165 |
\begin{itemize} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
166 |
\item the idea is make the attack surface smaller and |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
167 |
mitigate the consequences of an attack |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
168 |
\end{itemize} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
169 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
170 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
171 |
\end{frame}} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
172 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
173 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
174 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
175 |
\mode<presentation>{ |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
176 |
\begin{frame}[c] |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
177 |
\frametitle{Access Control in Unix} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
178 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
179 |
\begin{itemize} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
180 |
\item access control provided by the OS |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
181 |
\item authenticate principals (login) |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
182 |
\item mediate access to files, ports, processes according to \alert{roles} (user ids)\\ |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
183 |
\item roles get attached with privileges\bigskip\\% |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
184 |
\hspace{8mm} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
185 |
\begin{tikzpicture} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
186 |
\draw (0,0) node[inner sep=2mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
187 |
{\begin{minipage}{8cm} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
188 |
\alert{The principle of least privilege:}\\ |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
189 |
programs should only have as much privilege as they need |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
190 |
\end{minipage}}; |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
191 |
\end{tikzpicture} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
192 |
\end{itemize} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
193 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
194 |
\end{frame}} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
195 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
196 |
|
114
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
197 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
198 |
\mode<presentation>{ |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
199 |
\begin{frame}[t] |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
200 |
\frametitle{Process Ownership} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
201 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
202 |
\begin{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
203 |
\item access control in Unix is very coarse |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
204 |
\end{itemize}\bigskip\bigskip\bigskip |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
205 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
206 |
\begin{center} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
207 |
\begin{tabular}{c} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
208 |
root\\ |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
209 |
\hline |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
210 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
211 |
user$_1$ user$_2$ \ldots www, mail, lp |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
212 |
\end{tabular} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
213 |
\end{center}\bigskip\bigskip\bigskip |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
214 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
215 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
216 |
\textcolor{gray}{\small root has UID $=$ 0}\\\pause |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
217 |
\textcolor{gray}{\small you also have groups that can share access to a file}\\ |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
218 |
\textcolor{gray}{\small but it is difficult to exclude access selectively}\\ |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
219 |
\end{frame}} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
220 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
221 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
222 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
223 |
\mode<presentation>{ |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
224 |
\begin{frame}[c] |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
225 |
\frametitle{Access Control in Unix (2)} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
226 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
227 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
228 |
\begin{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
229 |
\item privileges are specified by file access permissions (``everything is a file'') |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
230 |
\item there are 9 (plus 2) bits that specify the permissions of a file |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
231 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
232 |
\begin{center} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
233 |
\begin{tabular}{l} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
234 |
\texttt{\$ ls - la}\\ |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
235 |
\texttt{-rwxrw-r-{}- \hspace{3mm} foo\_file.txt} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
236 |
\end{tabular} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
237 |
\end{center} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
238 |
\end{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
239 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
240 |
\end{frame}} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
241 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
242 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
243 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
244 |
\mode<presentation>{ |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
245 |
\begin{frame}[c] |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
246 |
\frametitle{Login Process} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
247 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
248 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
249 |
\begin{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
250 |
\item login processes run under UID $=$ 0\medskip |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
251 |
\begin{center} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
252 |
\texttt{ps -axl | grep login} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
253 |
\end{center}\medskip |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
254 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
255 |
\item after login, shells run under UID $=$ user (e.g.~501)\medskip |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
256 |
\begin{center} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
257 |
\texttt{id cu} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
258 |
\end{center}\medskip\pause |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
259 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
260 |
\item non-root users are not allowed to change the UID --- would break |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
261 |
access control |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
262 |
\item but needed for example for \texttt{passwd} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
263 |
\end{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
264 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
265 |
\end{frame}} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
266 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
267 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
268 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
269 |
\mode<presentation>{ |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
270 |
\begin{frame}[c] |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
271 |
\frametitle{Setuid and Setgid} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
272 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
273 |
The solution is that unix file permissions are 9 + \underline{2 Bits}: |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
274 |
\alert{Setuid} and \alert{Setgid} Bits |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
275 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
276 |
\begin{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
277 |
\item When a file with setuid is executed, the resulting process will assume the UID given to the owner of the file. |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
278 |
\item This enables users to create processes as root (or another user).\bigskip |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
279 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
280 |
\item Essential for changing passwords, for example. |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
281 |
\end{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
282 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
283 |
\begin{center} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
284 |
\texttt{chmod 4755 fobar\_file} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
285 |
\end{center} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
286 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
287 |
\end{frame}} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
288 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
289 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
290 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
291 |
\mode<presentation>{ |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
292 |
\begin{frame}[c] |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
293 |
\frametitle{\begin{tabular}{c}Privilege Separation in\\ OpenSSH\end{tabular}} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
294 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
295 |
\begin{center} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
296 |
\begin{tikzpicture}[scale=1] |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
297 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
298 |
\draw[line width=1mm] (0, 1.1) rectangle (1.2,2); |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
299 |
\draw (4.7,1) node {Internet}; |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
300 |
\draw (0.6,1.7) node {\footnotesize Slave}; |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
301 |
\draw[line width=1mm] (0, 0) rectangle (1.2,0.9); |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
302 |
\draw (0.6,1.7) node {\footnotesize Slave}; |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
303 |
\draw (0.6,0.6) node {\footnotesize Slave}; |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
304 |
\draw (0.6,-0.5) node {\footnotesize \begin{tabular}{c}unprivileged\\[-1mm] processes\end{tabular}}; |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
305 |
\draw (-2.7,-0.4) node {\footnotesize \begin{tabular}{c}privileged\\[-1mm] process\end{tabular}}; |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
306 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
307 |
\draw[line width=1mm] (-1.8, 0) rectangle (-3.6,2); |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
308 |
\draw (-2.9,1.7) node {\footnotesize Monitor}; |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
309 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
310 |
\draw[white] (1.7,1) node (X) {}; |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
311 |
\draw[white] (3.7,1) node (Y) {}; |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
312 |
\draw[red, <->, line width = 2mm] (X) -- (Y); |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
313 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
314 |
\draw[red, <->, line width = 1mm] (-0.4,1.4) -- (-1.4,1.1); |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
315 |
\draw[red, <->, line width = 1mm] (-0.4,0.6) -- (-1.4,0.9); |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
316 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
317 |
\end{tikzpicture} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
318 |
\end{center} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
319 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
320 |
\begin{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
321 |
\item pre-authorisation slave |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
322 |
\item post-authorisation\bigskip |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
323 |
\item 25\% codebase is privileged, 75\% is unprivileged |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
324 |
\end{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
325 |
\end{frame}} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
326 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
327 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
328 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
329 |
\mode<presentation>{ |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
330 |
\begin{frame}[c] |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
331 |
\frametitle{Network Applications} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
332 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
333 |
ideally network application in Unix should be designed as follows: |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
334 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
335 |
\begin{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
336 |
\item need two distinct processes |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
337 |
\begin{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
338 |
\item one that listens to the network; has no privilege |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
339 |
\item one that is privileged and listens to the latter only (but does not trust it) |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
340 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
341 |
\end{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
342 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
343 |
\item to implement this you need a parent process, which forks a child process |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
344 |
\item this child process drops privileges and listens to hostile data\medskip |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
345 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
346 |
\item after authentication the parent forks again and the new child becomes the user |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
347 |
\end{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
348 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
349 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
350 |
\end{frame}} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
351 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
352 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
353 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
354 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
355 |
\mode<presentation>{ |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
356 |
\begin{frame}[c] |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
357 |
\frametitle{\begin{tabular}{@ {}c@ {}}Famous Security Flaws\\[-1mm] in Unix\end{tabular}} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
358 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
359 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
360 |
\begin{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
361 |
\item \texttt{lpr} unfortunately runs with root privileges; you had the option to delete files after printing \ldots\pause\pause |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
362 |
\item for debugging purposes (FreeBSD) Unix provides a ``core dump'', but allowed to follow links \ldots\pause |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
363 |
\item \texttt{mkdir foo} is owned by root\medskip |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
364 |
\begin{center} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
365 |
\texttt{-rwxr-xr-x 1 root wheel /bin/mkdir} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
366 |
\end{center}\medskip |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
367 |
it first creates an i-node as root and then changes to ownership to the user's id\\ \textcolor{gray}{\small (race condition -- can be automated with a shell script)} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
368 |
\end{itemize} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
369 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
370 |
\only<5->{ |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
371 |
\begin{textblock}{1}(3,7) |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
372 |
\begin{tikzpicture} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
373 |
\draw (0,0) node[inner sep=2mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
374 |
{\begin{minipage}{8cm} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
375 |
Only failure makes us experts. |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
376 |
-- Theo de Raadt (OpenBSD, OpenSSH) |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
377 |
\end{minipage}}; |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
378 |
\end{tikzpicture} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
379 |
\end{textblock}} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
380 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
381 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
382 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
383 |
\end{frame}} |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
384 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
385 |
|
3822d91a4639
added slides
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
113
diff
changeset
|
386 |
|
113
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
387 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
388 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
389 |
\mode<presentation>{ |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
390 |
\begin{frame}[c] |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
391 |
\frametitle{\begin{tabular}{@ {}c@ {}}A ``Cron''-Attack\end{tabular}} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
392 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
393 |
\begin{enumerate} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
394 |
\item attacker \textcolor{gray}{(creates a fake passwd file)}\\ |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
395 |
\texttt{mkdir /tmp/a; cat > /tmp/a/passwd}\medskip |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
396 |
\item root \textcolor{gray}{(does the daily cleaning)}\\ |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
397 |
\texttt{rm /tmp/*/*}\medskip\\ |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
398 |
\hspace{2cm}\textcolor{gray}{\small records that \texttt{/tmp/a/passwd}}\\ |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
399 |
\hspace{2cm}\textcolor{gray}{\small should be deleted, but does not do it yet}\medskip\\ |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
400 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
401 |
\item attacker \textcolor{gray}{(meanwhile deletes the fake passwd file, and establishes a link to |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
402 |
the real passwd file)}\\ |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
403 |
\texttt{rm /tmp/a/passwd; rmdir /tmp/a;}\\\texttt{ln -s /etc /tmp/a}\\ |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
404 |
\item root now deletes the real passwd file |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
405 |
\end{enumerate} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
406 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
407 |
\only<2>{ |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
408 |
\begin{textblock}{11}(2,5) |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
409 |
\begin{tikzpicture} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
410 |
\draw (0,0) node[inner sep=2mm,fill=cream, ultra thick, draw=red, rounded corners=2mm] |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
411 |
{\normalsize\color{darkgray} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
412 |
\begin{minipage}{9cm}\raggedright |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
413 |
To prevent this kind of attack, you need additional |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
414 |
policies (don't do such operations as root). |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
415 |
\end{minipage}}; |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
416 |
\end{tikzpicture} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
417 |
\end{textblock}} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
418 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
419 |
\end{frame}} |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
420 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
421 |
|
115
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
422 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
423 |
\mode<presentation>{ |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
424 |
\begin{frame}[c] |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
425 |
|
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
426 |
\begin{center} |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
427 |
\includegraphics[scale=0.45]{pics/trainwreck.jpg}\\ |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
428 |
one general defence mechanism is\\\alert{\bf defence in depth} |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
429 |
\end{center} |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
430 |
|
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
431 |
|
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
432 |
\end{frame}} |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
433 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
113
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
434 |
|
0332f8102121
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
112
diff
changeset
|
435 |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
436 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
437 |
\mode<presentation>{ |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
438 |
\begin{frame}[c] |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
439 |
\frametitle{\begin{tabular}{@ {}c@ {}}Smash the Stack for Fun \ldots\end{tabular}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
440 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
441 |
\begin{itemize} |
111
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
442 |
\item ``smashing the stack attacks'' or\\ ``buffer overflow attacks''\medskip |
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
443 |
\item one of the most popular attacks\\ ($>$ 50\% of security incidents reported at CERT are related to buffer overflows) |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
444 |
\begin{flushright}\small |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
445 |
\textcolor{gray}{\url{http://www.kb.cert.org/vuls}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
446 |
\end{flushright} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
447 |
\medskip |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
448 |
\item made popular in an article by Elias Levy\\ (also known as Aleph One):\\ |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
449 |
\begin{center} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
450 |
{\bf ``Smashing The Stack For Fun and Profit''} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
451 |
\end{center}\medskip |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
452 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
453 |
\begin{flushright} |
111
677179c76e35
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
105
diff
changeset
|
454 |
\small\textcolor{gray}{Issue 49, Article 14} |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
455 |
\end{flushright} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
456 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
457 |
\end{itemize} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
458 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
459 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
460 |
\end{frame}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
461 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
462 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
463 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
464 |
\mode<presentation>{ |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
465 |
\begin{frame}[c] |
112
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
466 |
\frametitle{A Float Printed ``Twice''} |
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
467 |
|
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
468 |
{\lstset{language=Java} |
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
469 |
\footnotesize |
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
470 |
\lstinputlisting{../progs/C1.c}} |
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
471 |
|
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
472 |
\end{frame}} |
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
473 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
474 |
|
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
475 |
|
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
476 |
|
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
477 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
478 |
\mode<presentation>{ |
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
479 |
\begin{frame}[c] |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
480 |
\frametitle{\begin{tabular}{c}The Problem\end{tabular}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
481 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
482 |
\begin{itemize} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
483 |
\item The basic problem is that library routines in C look as follows: |
112
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
484 |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
485 |
\begin{center} |
112
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
486 |
{\lstset{language=Java} |
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
487 |
\footnotesize |
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
488 |
\lstinputlisting{../progs/app5.c}} |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
489 |
\end{center} |
112
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
490 |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
491 |
\item the resulting problems are often remotely exploitable |
112
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
492 |
\item can be used to circumvents all access control\\ |
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
493 |
(for grooming botnets for further attacks) |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
494 |
\end{itemize} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
495 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
496 |
\end{frame}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
497 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
498 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
499 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
500 |
\mode<presentation>{ |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
501 |
\begin{frame}[c] |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
502 |
\frametitle{\begin{tabular}{c}Variants\end{tabular}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
503 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
504 |
There are many variants: |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
505 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
506 |
\begin{itemize} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
507 |
\item return-to-lib-C attacks |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
508 |
\item heap-smashing attacks\\ |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
509 |
\textcolor{gray}{\small(Slammer Worm in 2003 infected 90\% of vulnerable systems within 10 minutes)}\bigskip |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
510 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
511 |
\item ``zero-days-attacks'' (new unknown vulnerability) |
28 | 512 |
\end{itemize} |
513 |
||
514 |
\end{frame}} |
|
515 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
516 |
||
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
517 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
518 |
\mode<presentation>{ |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
519 |
\begin{frame}[c] |
28 | 520 |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
521 |
\begin{center} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
522 |
\only<1>{\includegraphics[scale=0.9]{pics/stack1}\;\;} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
523 |
\only<2>{\includegraphics[scale=0.9]{pics/stack2}\;\;} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
524 |
\only<3>{\includegraphics[scale=0.9]{pics/stack3}\;\;} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
525 |
\end{center} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
526 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
527 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
528 |
\end{frame}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
529 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
28 | 530 |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
531 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
532 |
\mode<presentation>{ |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
533 |
\begin{frame}[c] |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
534 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
535 |
{\lstset{language=Java}\fontsize{8}{10}\selectfont% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
536 |
\texttt{\lstinputlisting{../progs/C2.c}}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
537 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
538 |
|
28 | 539 |
\end{frame}} |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
540 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
28 | 541 |
|
542 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
115
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
543 |
%\mode<presentation>{ |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
544 |
%\begin{frame}[c] |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
545 |
% |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
546 |
%\small |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
547 |
%A programmer might be careful, but still introduce vulnerabilities:\bigskip |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
548 |
% |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
549 |
%{\lstset{language=Java}\footnotesize |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
550 |
%\texttt{\lstinputlisting{../progs/C2a.c}}} |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
551 |
% |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
552 |
% |
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
553 |
%\end{frame}} |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
554 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
29 | 555 |
|
556 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
557 |
\mode<presentation>{ |
|
558 |
\begin{frame}[c] |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
559 |
\frametitle{\begin{tabular}{c}Payloads\end{tabular}} |
28 | 560 |
|
561 |
\begin{itemize} |
|
112
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
562 |
\item the idea is you store some code to the buffer |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
563 |
\item you then override the return address to execute this payload\medskip |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
564 |
\item normally you start a root-shell\pause |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
565 |
\item difficulty is to guess the right place where to ``jump'' |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
566 |
\end{itemize} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
567 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
568 |
\end{frame}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
569 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
570 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
571 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
572 |
\mode<presentation>{ |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
573 |
\begin{frame}[c] |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
574 |
\frametitle{\begin{tabular}{c}Payloads (2)\end{tabular}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
575 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
576 |
\begin{itemize} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
577 |
\item another difficulty is that the code is not allowed to contain \texttt{$\backslash$x00}: |
28 | 578 |
|
29 | 579 |
\begin{center} |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
580 |
\texttt{xorl \%eax, \%eax} |
29 | 581 |
\end{center} |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
582 |
\end{itemize}\bigskip\bigskip |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
583 |
|
112
0711775cb6b0
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
111
diff
changeset
|
584 |
{\lstset{language=Java}\small |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
585 |
\texttt{\lstinputlisting{../progs/app5.c}}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
586 |
|
28 | 587 |
\end{frame}} |
588 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
589 |
||
590 |
||
591 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
592 |
\mode<presentation>{ |
|
593 |
\begin{frame}[c] |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
594 |
\frametitle{\begin{tabular}{c}Format String Vulnerability\end{tabular}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
595 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
596 |
\small |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
597 |
\texttt{string} is nowhere used:\bigskip |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
598 |
|
115
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
599 |
{\lstset{language=Java}\footnotesize |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
600 |
\texttt{\lstinputlisting{../progs/C4.c}}}\bigskip |
28 | 601 |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
602 |
this vulnerability can be used to read out the stack |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
603 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
604 |
\end{frame}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
605 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
606 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
607 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
608 |
\mode<presentation>{ |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
609 |
\begin{frame}[c] |
115
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
610 |
\frametitle{\begin{tabular}{c}Protections against\\ Buffer Overflow Attacks\end{tabular}} |
28 | 611 |
|
612 |
\begin{itemize} |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
613 |
\item use safe library functions |
115
c4008b31df8e
added material
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
114
diff
changeset
|
614 |
\item stack caneries |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
615 |
\item ensure stack data is not executable (can be defeated) |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
616 |
\item address space randomisation (makes one-size-fits-all more difficult) |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
617 |
\item choice of programming language (one of the selling points of Java) |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
618 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
619 |
\end{itemize} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
620 |
|
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
621 |
\end{frame}} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
622 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
28 | 623 |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
624 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
625 |
\mode<presentation>{ |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
626 |
\begin{frame}[c] |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
627 |
\frametitle{\begin{tabular}{c}Security Goals\end{tabular}} |
29 | 628 |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
629 |
\begin{itemize} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
630 |
\item Prevent common vulnerabilities from occurring (e.g. buffer overflows)\pause |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
631 |
\item Recover from attacks (traceability and auditing of security-relevant actions)\pause |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
632 |
\item Monitoring (detect attacks)\pause |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
633 |
\item Privacy, confidentiality, anonymity (to protect secrets)\pause |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
634 |
\item Authenticity (needed for access control)\pause |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
635 |
\item Integrity (prevent unwanted modification or tampering)\pause |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
636 |
\item Availability and reliability (reduce the risk of DoS attacks) |
28 | 637 |
\end{itemize} |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
638 |
|
28 | 639 |
\end{frame}} |
640 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
641 |
||
642 |
||
643 |
||
644 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
645 |
\mode<presentation>{ |
|
646 |
\begin{frame}[c] |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
647 |
\frametitle{\begin{tabular}{c}Homework\end{tabular}} |
28 | 648 |
|
29 | 649 |
\begin{itemize} |
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
650 |
\item Assume format string attacks allow you to read out the stack. What can you do |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
651 |
with this information?\bigskip |
31 | 652 |
|
105
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
653 |
\item Assume you can crash a program remotely. Why is this a problem? |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
654 |
\end{itemize} |
40c51038c9e4
added
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
90
diff
changeset
|
655 |
|
30 | 656 |
\end{frame}} |
657 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
29 | 658 |
|
28 | 659 |
|
660 |
\end{document} |
|
661 |
||
662 |
%%% Local Variables: |
|
663 |
%%% mode: latex |
|
664 |
%%% TeX-master: t |
|
665 |
%%% End: |
|
666 |