-
Notifications
You must be signed in to change notification settings - Fork 0
/
slides.tex
239 lines (197 loc) · 5.02 KB
/
slides.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
\documentclass[10pt, compress]{beamer}
\usetheme{metropolis}
\usepackage{booktabs}
\usepackage[scale=2]{ccicons}
%Icons
\usepackage{fontawesome}
%Syntax highlight
\usepackage{listings,xcolor}
\usepackage{inconsolata}
\definecolor{dkgreen}{rgb}{0,.6,0}
\definecolor{dkblue}{rgb}{0,0,.6}
\definecolor{dkyellow}{cmyk}{0,0,.8,.3}
% Language: PHP
\lstset{
language = php,
basicstyle = \small\ttfamily,
keywordstyle = \color{dkblue},
stringstyle = \color{red},
identifierstyle = \color{dkgreen},
commentstyle = \color{gray},
emph =[1]{php},
emphstyle =[1]\color{black},
emph =[2]{if,and,or,else},
emphstyle =[2]\color{dkyellow}
}
%\usepgfplotslibrary{dateplot}
\title{Reverse engineering with determination}
%\subtitle{}
\date{\today}
\author{Carl Svensson}
\institute{Securityfest 2017}
\begin{document}
\maketitle
\begin{frame}{About me}
\begin{columns}
\begin{column}{0.6\textwidth}
\begin{itemize}
\item Carl Svensson, 26
\item MSc in Computer Science, KTH
\item Head of Security, Kry
\item CTF-player, HackingForSoju
\item \faEnvelope \hskip 2mm [email protected]
\item \faTwitter \hskip 2mm @zetatwo
\item \faGlobe \hskip 2mm https://zeta-two.com
\end{itemize}
\end{column}
\begin{column}{0.4\textwidth}
\begin{center}
\includegraphics[width=0.4\textwidth]{images/kth.jpg}
\end{center}
\vspace{1cm}
\includegraphics[width=\textwidth]{images/kry_logo.png}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{Reverse engineering in 30 seconds?}
\begin{itemize}
\item Take stuff, e.g. software, apart
\item Understand how it works
\item Many possible goals
\begin{itemize}
\item Malware, what does it do?
\item Audit closed source components
\end{itemize}
\item Static analysis
\begin{itemize}
\item + The whole picture
\item - A lot to read, slow
\end{itemize}
\item Dynamic analysis
\begin{itemize}
\item + See data flow
\item - Not all paths taken
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}{Enter the M/o/Vfuscator}
\begin{columns}
\begin{column}{0.6\textwidth}
\begin{itemize}
\item x86 MOV is turing complete
\item 1 instruction compiler
\begin{itemize}
\item Chris Domas
\end{itemize}
\item No branches
\item Dummy data
\end{itemize}
\end{column}
\begin{column}{0.4\textwidth}
\includegraphics[width=0.9\textwidth]{images/gcc_asm.png}
\linebreak
\linebreak
\includegraphics[width=0.9\textwidth]{images/mov_asm.png}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{Crack Me \#1}
\begin{itemize}
\item Find the password
\item Dead ends
\begin{itemize}
\item Name functions
\item Study branches
\item Trace execution
\item Count instructions
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}{Intermission: What is a program?}
\begin{itemize}
\item Takes input
\item Perform calculations
\item Affects the world
\begin{itemize}
\item Output
\item Affect memory
\item OS API calls
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}{Crack Me \#1, take 2}
\begin{itemize}
\item Memory trace
\item Diff
\item Scripting glue
\item Victory!
\end{itemize}
\end{frame}
\begin{frame}{Electronics 101}
\begin{columns}
\begin{column}{0.6\textwidth}
\begin{itemize}
\item Boolean circuits
\item Gates
\begin{itemize}
\item AND, OR, NOT, NAND, XOR
\item D-latch, Flip-Flip
\end{itemize}
\item Functional completeness
\end{itemize}
\end{column}
\begin{column}{0.4\textwidth}
\includegraphics[width=1\textwidth]{images/gates.png}
\linebreak
\linebreak
\includegraphics[width=1\textwidth]{images/d-latch.png}
\end{column}
\end{columns}
\end{frame}
\begin{frame}{Crack Me \#2}
\begin{columns}
\begin{column}{0.5\textwidth}
\begin{itemize}
\item Keypad, IC \& lock
\item Single "instruction"
\item Easy way: dynamic
\item My way: static
\begin{itemize}
\item Find subgraph
\item Replace, abstract, iterate
\item Naming
\end{itemize}
\end{itemize}
\end{column}
\begin{column}{0.5\textwidth}
\includegraphics[width=1\textwidth]{images/schematic.png}
\end{column}
\end{columns}
\end{frame}
\begin{frame}[standout]
\includegraphics[width=1\textwidth]{images/netlist1_full.png}
\end{frame}
\begin{frame}[standout]
\includegraphics[width=1\textwidth]{images/netlist2_grouped.png}
\end{frame}
\begin{frame}[standout]
\includegraphics[width=1\textwidth]{images/netlist3_replaced.png}
\end{frame}
\begin{frame}[standout]
\includegraphics[width=1\textwidth]{images/netlist4_abstract.png}
\end{frame}
\begin{frame}{Keep practicing, stay sharp}
\begin{itemize}
\item Like going to the gym
\item Push your limits
\item Have fun!
\item LabyREnth, http://labyrenth.com/ 10/6-23/7
\begin{itemize}
\item \$23,000 USD total prizes
\end{itemize}
\end{itemize}
\end{frame}
\begin{frame}[standout]
Thanks for listening!
\end{frame}
\end{document}