-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
3936 lines (3513 loc) · 149 KB
/
index.html
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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="nb">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Kodeknekking for spioner - JavaZone/Bekk fagdag 2019</title>
<meta
name="description"
content="Kodeknekking for spioner - JavaZone/Bekk fagdag 2019"
/>
<meta name="author" content="Henrik Walker Moe" />
<meta
name="viewport"
content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<meta
property="og:title"
content="Kodeknekking for spioner - JavaZone/Bekk fagdag 2019"
/>
<meta
property="og:description"
content="En gjennomgang av løsningen på PST-gåten presentert på JavaZone/Bekk fagdag 2019"
/>
<meta property="og:site_name" content="Github" />
<meta
property="og:image"
content="https://henrikwm.github.io/kodeknekking_for_spioner/img/twitterhai-eu/twitterhai-eu_1337_shrk.jpg"
/>
<meta property="og:type" content="article" />
<meta
property="og:url"
content="https://henrikwm.github.io/kodeknekking_for_spioner"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@github" />
<meta name="twitter:creator" content="@henrikwm" />
<meta
name="twitter:title"
content="Kodeknekking for spioner - JavaZone/Bekk fagdag 2019"
/>
<meta
name="twitter:description"
content="En gjennomgang av løsningen på PST-gåten presentert på JavaZone/Bekk fagdag 2019"
/>
<meta
name="twitter:image"
content="https://henrikwm.github.io/kodeknekking_for_spioner/img/twitterhai-eu/twitterhai-eu_1337_shrk.jpg"
/>
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta
name="apple-mobile-web-app-status-bar-style"
content="black-translucent"
/>
<meta name="msapplication-tap-highlight" content="no" />
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/reveal.min.css" />
<link rel="stylesheet" href="css/theme/black.css" id="theme" />
<link rel="stylesheet" href="css/custom.css" />
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css" />
<!-- Title-Footer plugin -->
<link rel="stylesheet" href="plugin/title-footer/title-footer.css" />
<link rel="stylesheet" href="plugin/title-footer/title-footer-custom.css" />
<!-- Globals -->
<script type="text/javascript">
var isPresenting = true;
var defaultFooterText =
"Kodeknekking for spioner - JavaZone/Bekk fagdag 2019";
</script>
<!-- Printing and PDF exports -->
<script>
var link = document.createElement("link");
link.rel = "stylesheet";
link.type = "text/css";
link.href = window.location.search.match(/print-pdf/gi)
? "css/print/pdf.css"
: "css/print/paper.css";
document.getElementsByTagName("head")[0].appendChild(link);
</script>
<!-- Scrambler -->
<script src="lib/js/scrambler.min.js"></script>
<!-- QR Codes -->
<script type="text/javascript" src="lib/js/qrcode.min.js"></script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<div class="slides">
<!-- =================== START =================== -->
<section>
<section data-source="background_image">
<p>
<span class="fragment">henrikwm</span>
<span class="fragment">@</span>
<span class="fragment">bekk</span>
</p>
<aside class="notes">
Heisann alle sammen! Og takk for at dere kom for å høre på meg
idag! Setter stor pris på at så mange av dere stiller opp på
dagens siste foredrag. <br /><br />
Fordi det er siste foredrag: hvis det er noen som har noen
<b>spørsmål underveis</b>, så kom gjerne opp til meg etterpå slik
at vi <b>runder av i god tid</b><br /><br />
(NESTE)<br /><br />
Mitt navn er Henrik Walker Moe og jeg jobber i (NESTE) (NESTE)<br />
Bekk.<br /><br />
Og idag skal jeg snakke om...
</aside>
</section>
<section data-transition="concave" data-source="bitmoji">
<div>
<h2>Kodeknekking for spioner</h2>
<img src="img/intro/intro_spy_avatar.png" class="plain" />
</div>
<aside class="notes">
<b>Kodeknekking for spioner</b><br /><br />
* Idag skal vi <b>leke at vi er spioner</b> og sammen
<b>løse PST-gåten</b> som var gjemt i en av deres jobbannonser<br /><br />
* Det viste seg jo at PST-gåten var
<b>en eneste stor Capture The Flag (CTF)</b> oppgave. I en
CTF-oppgave handler det om å løse flere deloppgaver til man til
slutt finner en skjult kode, også kalt et "flagg"
* Hva er en CTF?<br />
** <b>Capture The Flag</b>-spillsjanger hvor man alene eller som
lag fanger det andre lagets <b>flagg</b><br />
** for vår del: hacker oss igjennom sårbarheter hos motparten -
finne skjult
<b>kode (som er flagget)</b><br /><br />
* Så jeg gleder meg til å ta dere igjennom løsningen straks<br /><br />
Men før det, tenkte jeg <b>først</b> å starte med
<b>å fortelle</b> om <b>mitt første møte</b> med kodeknekking
</aside>
</section>
</section>
<!-- =================== INTRO =================== -->
<section>
<section data-source="skattejakten_bokelskere">
<img
src="img/intro/intro-skattejakten.jpeg"
class="plain"
style="width: 40%"
/>
<aside class="notes">
* I 1999 kjøpte foreldrene mine denne boken skrevet av Margit
Sandemo: Skattejakten<br />
* Roman fylt med <b>gåter</b>, leder til en begravd skatt i Norge
(skatten er funnet)<br />
* <b>Hele familien</b> leste igjennom boken og fordelte
oppgaver<br />
* For <b>min del</b>: selvstudie i Kalevala (Finlands
nasjonalepos) og myten om den greske guden Pan (han som er geit
fra livet ned og spiller fløyte)<br />
* <b>Hvordan</b> prøvde vi å løse gåten? (programmering)<br /><br />
Tanken at programmeringskunnskaper kan bidra til å løse
hverdagsutfordringer tror jeg inspirerte meg til å senere bli en
<b>utvikler</b> og <b>kodeknekker</b>
</aside>
</section>
<section>
<h3>Hvem er jeg?</h3>
<aside class="notes">
Så noen raske ord om meg
</aside>
</section>
<section
data-background="img/intro/intro_henrik_ecotrail.JPG"
data-source="henrikwm"
>
<aside class="notes">
Jeg...<br />
* liker å løpe, noen ganger langt. Her fra Ecotrail i mai ifjor<br />
* er sta, har pågangsmot <br />
* liker utfordringer med klare mål<br /><br />
* Hvilke faggrupper har jeg deltatt i? (2 år i <b>Sikkerhet</b>,
faggruppeleder ifjor i <b>Open Source</b>, iår faggruppeleder for
Sikkerhet)<br /><br />
(ANEKDOTE):<br />
Appropos sikkerhet: holdt foredrag på JavaZone og en Bekk fagdag i
forfjor og snakket om hvordan lage sømløse innloggingsløsninger -
tydelig at sikkerhet har blitt et fagområde jeg trives i<br /><br />
Alle disse egenskapene, viser det seg, egner seg også veldig godt
til kodeknekking
</aside>
</section>
<section>
<h3>I ❤️ CTF-er</h3>
<aside class="notes">
Og som nevnt, jeg digger Capture the Flag oppgaver!<br />
* Hvorfor liker jeg CTF'er? <br />
** <b>Prosessen</b>: <b>rekognosering</b> og <b>analyse</b> for å
forstå hvordan man kan <b>utnytte</b> en sårbarhet<br />
** <b>Måldrevne</b>: delmål underveis, motiverer<br />
** <b>Belønning!</b> (flagget, viktig spisskompetanse)<br /><br />
Før vi begynner, la oss dvele litt over hvorfor PST søker etter
flere folk
</aside>
</section>
<section>
<h3>Mangel på hackere/spioner i PST?</h3>
<p class="fragment">
Vi må møte en økende trussel for dataangrep mot Norge og norske
interesser.
</p>
<span class="fragment">
<p>Store mediesaker i 2019:</p>
<a
href="https://e24.no/naeringsliv/i/rLx3lR/kina-anklages-for-aa-hacke-visma-i-norge"
>Kina anklages for å hacke Visma</a
>
</span>
<br />
<a
class="fragment"
href="https://www.dn.no/marked/bitcoins-norge/bitcoin/bitcoins-norway/norsk-kryptobors-reklamerte-med-hacke-forsikring-if-avviser-at-de-dekker-kundenes-bitcoin-tap/2-1-631326"
>Bitcoin Norge hevder å ha bli hacket</a
>
<br />
<a
class="fragment"
href="https://www.medier24.no/artikler/pedofili-er-greit-sa-lenge-man-ikke-far-saed-pa-barnet-skrev-dagbladet-na-har-de-slettet-innholdet/476751"
>Forsiden på Dagbladet hacket 😱</a
>
<aside class="notes">
Hvorfor ser Politiets Sikkerhetstjeneste etter flere
etterforskere, eller spioner? (NESTE)<br /><br />
* Jeg tror de ser at trusselen for dataangrep øker, både nasjonalt
og internasjonalt (NESTE)<br />
** Kina anklaget for å ha hacket Visma (NESTE)<br />
** Bitcoin Norge hevdet at de ble hacket (NESTE)<br />
** En hacket Dagbladet hadde i oktober en forsidesak med et
<b>veldig uheldig</b> Erna-sitat om <b>pedofili</b>... yikes!<br /><br />
* For å forsvare oss mot slikt trenger vi styrke hos PST, Norges
Sikkerhets Myndighet (NSM) og E-tjenesten.<br />
* Jeg skjønner at dere tenker "hva er <b>sannsynligheten</b> for
hacking mot Norge?" og "dette skjer jo ikke i <b>lille Norge</b>"
osv. Hva er vitsen med å bruke masse ressurser på dette når det er
så mye det offentlige heller burde bruke penger på<br /><br />
Det er en sak til som jeg ikke har nevnt...
</aside>
</section>
<section>
<h3>Dataangrep mot Hydro</h3>
<aside class="notes">Denne svei</aside>
</section>
<section data-source="abcnyheter_hydro">
<img
src="img/intro/intro-abcnyheter-hydro.png"
class="plain"
style="width: 60%"
/>
<aside class="notes">
19. mars ifjor våres ble Hydro angrepet av et krypteringsvirus
("LockerGoga").<br /><br />
Dette skjedde på <b>Norsk jord</b>, <b>i Oslo</b>,
<b>i bygget</b> hvor Hydro deler etasjer med If Skadeforsikring
hvor <b>jeg</b> sitter til daglig.<br /><br />
* Hvor hang oppslagene?<br />
* Hva følte vi da vi så de?<br /><br />
* Kanskje dette er den <b>virkelige store vekkeren</b> vi trenger
for å virkelig øke bevisstheten vår rundt IT-sikkeret, å
<b>sikre Norge og norske interesser</b> bedre.<br /><br />
Før vi starter på gåten må vi snakke om en elefant i rommet...
</aside>
</section>
<section>
<h3>Haien i rommet</h3>
<aside class="notes">
Nærmere bestemt en hai...
</aside>
</section>
<section data-source="dagbladet_pst">
<img
src="img/intro/intro-dagbladet-pst2.png"
class="plain"
style="width: 60%"
/>
<aside class="notes">
Ooops. En dag i oktober 2018 lekte sønnen til kommunikasjonssjefen
i PST med fars IPad. IPaden ble brukt til bl.a. å legge ut
meldinger på PSTs twitter-konto: <b>@PST_Norge</b><br /><br />
Sønnen spilte <b>Hungry Shark Evolution</b> og delte et bilde fra
spillet til Twitter-appen, som da ble lagt ut på PSTs
Twitter-konto.<br /><br />
Det ble raskt oppdaget og slettet, men ble snappet opp av følgere
og mediene. Folk trodde jo at PST hadde blitt <b>hacket</b
><br /><br />
Det viser seg heldigvis at PST har et snev av selvironi, fordi
gåten og løsningen som vi skal gå igjennom, bærer preg av relativt
mye hai, som dere snart skal få se
</aside>
</section>
<section>
<h3>Stor takk til Roy Solberg</h3>
<p>PST fjernet gåten i våres</p>
<p>
Uten Roys filer ville det ikke blitt noe foredrag
</p>
<p class="fragment fade-up">
😍👏 <a href="https://twitter.com/roysolberg">@roysolberg</a>
</p>
<aside class="notes">
Før vi starter må jeg få lov å rette en stor takk til Roy!<br /><br />
* Hva hjalp Roy med? (PST fjernet gåten, live-demo planene mine
gikk ad undas<br />
* Nå har jeg lært å ta vare på både løsningene OG oppgavene jeg
løser (NESTE)<br /><br />
Stor takk til Roy!
</aside>
</section>
</section>
<!-- =================== STILLINGSANNONSEN =================== -->
<section>
<section>
<h2>Jobbannonsen</h2>
<aside class="notes">
La oss starte med jobbannonsen PST la ut ifjor vinter
</aside>
</section>
<section data-source="stillingsannonsen_nrk">
<img
data-src="img/stillingsannonsen/stillingsannonsen_nrk-artikkel2.png"
class="plain"
style="width: 75%"
/>
<aside class="notes">
NRK lagde en sak om jobbannonsen og det var denne som jeg kom over
en morgen på vei til jobb<br /><br />
* Ble umiddelbart nysgjerrig<br />
* Gjerne prøve meg på litt kodeknekking<br /><br />
Og det er med et dikt i jobbannonsen vår reise begynner
</aside>
</section>
<section data-transition="fade-in" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>?</h2>
<aside class="notes">
Se nøye på teksten<br />
Er det noen som ser et mønster?
</aside>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>E</h2>
<aside class="notes">
Dette er første bokstav.
</aside>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>ER</h2>
<aside class="notes">
Andre bokstav. Hva med nå? Ser vi et mønster i bokstavene vi
plukker ut?
</aside>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>ERT</h2>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>ERTH</h2>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>ERTHA</h2>
<aside class="notes">
Bokstavene vi plukker ut er store bokstaver i diktet
</aside>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>ERTHAI</h2>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>ERTHAII</h2>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>ERTHAIIT</h2>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>ERTHAIITW</h2>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>ERTHAIITWT</h2>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>ERTHAIITWTE</h2>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>ERTHAIITWTEU</h2>
<aside class="notes">
Noe vi har glemt? Er et punktum her. Hva får vi da?
</aside>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<h2>ERTHAIITWT.EU</h2>
<aside class="notes">
Sånn. Det ligner jo på en URL!
</aside>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<a href="http://ERTHAIITWT.EU">http://ERTHAIITWT.EU ➡</a>
<aside class="notes">
Oppgave løst, vi skal åpenbart til denne nettsiden
</aside>
</section>
<section data-source="roy_solberg_fra_pst">
<img
data-src="img/stillingsannonsen/stillingsannonsen_hangman.png"
class="plain"
style="width: 100%"
/>
<h2 class="fragment fade-up">Blindspor!</h2>
<aside class="notes">
Uff da (NESTE)<br />
Det var et blindspor! <br />
<b>Incorrect order</b>
</aside>
</section>
<section
data-transition="slide fade-in"
data-source="roy_solberg_fra_pst"
>
<img
data-src="img/stillingsannonsen/stillingsannonsen_diktet.png"
class="plain"
style="width: 100%"
/>
<a href="http://ERTHAIITWT.EU">http://ERTHAIITWT.EU ➡</a>
<aside class="notes">
Hmm, rekkefølge er visst viktig. Vi får stokke om bokstavene litt
</aside>
</section>
<section
data-state="stillingsannonsen-scrambler-start"
data-transition="fade-in slide"
>
<h1>ERTHAIITWT.EU</h1>
<h1>=</h1>
<h1 id="scramble-id">ERTHAIITWT.EU</h1>
<br />
<h2 class="fragment fade-up">👍</h2>
<aside class="notes">
Der ja (NESTE) <br />
Fett!
</aside>
</section>
</section>
<!-- =================== TWITTERHAI.EU =================== -->
<section>
<section><h2>TWITTERHAI.EU</h2></section>
<section data-source="roy_solberg_fra_pst">
<img
data-src="img/twitterhai-eu/twitterhai-eu.png"
class="plain"
style="width: 60%;"
/>
<aside class="notes">
Vi får opp en nettside med et haibilde og nok et dikt
</aside>
</section>
<section data-source="roy_solberg_fra_pst">
<img
data-src="img/twitterhai-eu/twitterhai-eu_1337_shrk.jpg"
class="plain"
/>
<aside class="notes">
Jeg liker å kikke på bildene først. Lurer på om det er noe gjemt i
bildet.
</aside>
</section>
<section>
<p>Steganografi-analyse: <b>Stegsolve</b></p>
<p>
<b>Linux</b>:
<a
href="https://github.com/zardus/ctf-tools/blob/master/stegsolve/install"
>kjør install-script</a
>
</p>
<p>
<b>Windows</b>:
<a
href="https://github.com/eugenekolo/sec-tools/raw/master/stego/stegsolve/stegsolve/stegsolve.jar"
>last ned stegsolve.jar</a
>
</p>
<pre>
<code data-trim class="shell">root@c04ddcc8bccd:~# java -jar stegsolve.jar</code>
</pre>
<aside class="notes">
Å skjule data i et bilde kalles <b>Steganografi</b><br />
* Stegsolve: kikke igjennom fargefiltre i bildet<br />
** ser etter <b>skjult tekst</b> eller <b>andre bilder</b
><br /><br />
La oss starte opp Stegsolve og først kikke på et eksempel på
hvordan man kan finne en skjult kode i et bilde
</aside>
</section>
<section
data-transition="fade-in"
data-source="failOverflow_doge_stege"
>
<img
data-src="img/twitterhai-eu/insignificant_shark-doge.png"
class="plain"
style="width: 70%;"
/>
<aside class="notes">
* Her har jeg funnet fram et bilde fra en annen CTF-oppgave
<b>doge_stege</b> (<b>Plaid CTF 2014</b>)<br />
* Vi klikker igjennom fargefiltrene i Stegsolve...
</aside>
</section>
<section
data-transition="none fade-out"
data-source="failOverflow_doge_stege"
>
<img
data-src="img/twitterhai-eu/insignificant_shark-doge-decoded-highlighted.png"
class="plain"
style="width: 70%;"
/>
<aside class="notes">
* Se der!<br />
* I et av fargefiltrene er koden (flagget) man skal finne gjemt:
<b>pctf{keep_doge_alive_2014}</b><br /><br />
Vi får se om det skjuler seg noe i haibildet
</aside>
</section>
<section data-source="stegsolve_caesum">
<img
data-src="img/twitterhai-eu/twitterhai-eu-stegsolve.gif"
class="plain"
style="width: 75%;"
/>
<aside class="notes">
* Har lastet inn haibildet, klikker igjennom fargefiltrene<br /><br />
(VENTE 10s)<br /><br />
Her var det lite spennende
</aside>
</section>
<section data-source="roy_solberg_fra_pst">
<a class="fragment fade-up" href="http://twitterhai.eu/robots.txt"
>http://twitterhai.eu/robots.txt ➡</a
>
<img
data-src="img/twitterhai-eu/twitterhai-eu-robots-txt.png"
class="plain fragment"
/>
<aside class="notes">
* Vi fant ikke noe i bildet. Hvor kan vi finne ledetråder?<br />
(NESTE) (Om robots.txt)<br />
(NESTE) <br />
* Var faktisk en robots.txt! <br /><br />
"This is not the droid you are looking for. Use the
<b>source</b>, Luke!"
</aside>
</section>
<section data-source="roy_solberg_fra_pst">
<img
data-src="img/twitterhai-eu/twitterhai-eu.png"
class="plain"
style="width: 60%;"
/>
<aside class="notes">
* Use the source: vi får kikke i kildekoden på nettsiden<br />
* Ofte lurt å kikke på kildekoden på nettsidene man skal hacke
</aside>
</section>
<section data-source="roy_solberg_fra_pst">
<img
data-src="img/twitterhai-eu/twitterhai-eu-source.png"
class="plain"
style="width: 75%"
/>
<aside class="notes">
* Her ser vi HTML-koden bak nettsiden<br />
* La oss ta zoome inn litt
</aside>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/twitterhai-eu/twitterhai-eu-shark-html-source-zoomed.png"
class="plain"
style="width: 100%"
/>
<p>?</p>
<aside class="notes">
* Noen som legger merke til noe interessant her?<br />
* Er plasseringen av teksten tilfeldig?<br />
* Se mot på venstre marg<br />
</aside>
</section>
<section data-transition="none" data-source="roy_solberg_fra_pst">
<img
data-src="img/twitterhai-eu/twitterhai-eu-shark-html-source-zoomed-highlighted.png"
class="plain"
style="width: 100%"
/>
<p>shark.html</p>
<aside class="notes">
<b>shark.html</b> gjemt vertikalt, snedig!
</aside>
</section>
<section>
<a href="http://twitterhai.eu/shark.html"
>http://twitterhai.eu/shark.html ➡</a
>
<aside class="notes">
Vi skal visst til en ny side: <b>twitterhai.eu/shark.html</b>
</aside>
</section>
<section data-source="roy_solberg_fra_pst">
<img
data-src="img/twitterhai-eu/twitterhai-eu-case_matters.png"
class="plain"
/>
<aside class="notes">
"Case matters. Watch your characters"<br />
* Hva mener de?
</aside>
</section>
<section
data-transition="none"
data-source="joshua_reynolds"
data-background="img/twitterhai-eu/twitterhai-eu-Samuel_Johnson_by_Joshua_Reynolds_small.png"
>
<aside class="notes">Vi må ta en nærmere kikk.</aside>
</section>
<section data-source="roy_solberg_fra_pst">
<img
data-src="img/twitterhai-eu/twitterhai-eu-shark-html-source-zoomed-highlighted.png"
class="plain"
/>
<span>
<a href="http://twitterhai.eu/Shark.html">http://twitterhai.eu/</a
><a href="http://twitterhai.eu/Shark.html" class="fragment"
>Shark.html ➡</a
>
</span>
<aside class="notes">
* Noen som ser feilen jeg gjorde? (VENT 5s) (NESTE)<br />
* Jeg misset at det var en <b>stor S</b> i <b>shark.html</b><br />
</aside>
</section>
<section data-source="roy_solberg_fra_pst">
<img
data-src="img/twitterhai-eu/twitterhai-eu-shark-html.png"
class="plain"
/>
<h3 class="fragment fade-up">🤔</h3>
<aside class="notes">
Da kom vi videre!<br />
* Får opp en nettside med råd om hvordan man lager en god
jobbsøknad <br />
(NESTE)<br />
* Ikke så mye mer interessant her... vi får kikke på nettsidens
kildekode igjen
</aside>
</section>
<section
data-transition="fade-in slide"
data-source="roy_solberg_fra_pst"
>
<img
data-src="img/twitterhai-eu/twitterhai-eu-shark-html-source.png"
class="plain"
/>
<h3 class="fragment fade-up">🤔🤔🤔</h3>
<aside class="notes">
Vi gransker HTML-koden og finner et par interessante kommentarer i
koden:<br /><br />
* Det står at NAVs nettsider inneholder tips på hvordan skrive en
god jobbsøknad<br />
* "Vi har flere oppgaver. Se nøye etter, så finner du de."<br /><br />
(NESTE)<br />
Så vi må et par steg tilbake og ta en <b>grundigere kikk</b> etter
ledertråder
</aside>
</section>
</section>
<!-- =================== 1337_shrk.jpg =================== -->
<section>
<section>
<h2>1337_shrk.jpg</h2>
</section>
<section data-source="roy_solberg_fra_pst">
<img
data-src="img/twitterhai-eu/twitterhai-eu.png"
class="plain"
style="width: 60%"
/>
<aside class="notes">
Vi er tilbake på twitterhai.eu. Hva bør vi kikke nærmere på?
</aside>
</section>
<section data-transition="fade-in" data-source="roy_solberg_fra_pst">
<img
data-src="img/twitterhai-eu/twitterhai-eu_1337_shrk.jpg"
class="plain"
/>
<aside class="notes">
Vi har flere bildeanalyseverktøy...
</aside>
</section>
<section>
<p>
<b>Linux</b>: binæranalyse med
<span class="fragment highlight-green">binwalk</span>
</p>
<pre
class="fragment fade-up"
><code class="shell smaller" data-trim data-noescape>
root@c04ddcc8bccd:~# binwalk 1337_shrk.jpg
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
0 0x0 <mark>JPEG image data</mark>, JFIF standard 1.01
30 0x1E <mark>TIFF image data</mark>, big-endian, offset of first image directory: 8
</code></pre>
<aside class="notes">
* Når jeg skal analysere filer liker jeg å bruke (NESTE)
<b>binwalk</b><br />
* Hva gjør binwalk?<br />
(NESTE) <br />
* Og her får vi bekreftet at vi har et bilde, TIFF komprimert til
JPEG. Ikke noe spennende her.
</aside>
</section>
<section>
<p>
<b>Linux</b>: binæranalyse med
<span class="fragment highlight-green">strings</span>
</p>
<pre
class="fragment fade-up"
><code class="shell smaller" data-trim data-noescape>
root@c04ddcc8bccd:~# strings -10 1337_shrk.jpg
[...] (klippet vekk XML og tom data)
[...] (klippet vekk tom data)
8Photoshop 3.0
<mark class="fragment">/haitech_secure.html</mark>
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
NE/i}N|xSP
E-A#uYM6'=E`
kNP5k+a1XZ
Ql`T>^GLUd
</code></pre>
<aside class="notes">
* Jeg liker også å bruke programmet <b>strings</b> (NESTE) på
filer<br />
* Hva gjør strings?<br />
(NESTE) <br />
* Vi ser mye tulletekst bl.a.<br />
(NESTE) <br /><br />
Og noe <b>VELDIG</b> interessant! Kommer straks tilbake til den
</aside>
</section>
<section>
<p>
<b>Linux</b>: binæranalyse med
<span class="fragment highlight-green">file</span>
</p>
<pre
class="fragment fade-up"
><code class="shell smaller" data-trim data-noescape>
root@c04ddcc8bccd:~# file 1337_shrk.jpg
1337_shrk.jpg: JPEG image data, JFIF standard 1.01, aspect ratio, /
density 72x72, segment length 16, Exif Standard: [TIFF image data, /
big-endian, direntries=3, PhotometricIntepretation=RGB, /
orientation=upper-left], <mark class="fragment">comment: "/haitech_secure.html"</mark>, /
baseline, precision 8, 851x514, components 3
</code></pre>
<aside class="notes">
* Jeg liker også å bruke programmet <b>file</b> (NESTE) på filer
for å se alle filegenskapene. <br />
* Både <b>file</b> og <b>strings</b> er fine go-to verktøy når du
skal scanne raskt igjennom en fil på utkikk etter ledetråder
(NESTE)<br />
(NESTE)<br />
* Vi ser at det skjuler seg en tekst i bildefilens
<b>kommentarfelt</b>! (<b>haitech_secure.html</b>)<br />
* Bildekommentarer er et typisk sted å lete etter ledetråder på
CTF'er<br /><br />
(ANEKDOTE) <br />
* Hvorfor er tekst i bildekommentarer/data-chunks i PNG-bilder
farlig?<br />
* Ikke stol på brukerinput!
</aside>
</section>
<section>
<p>
<b>Windows</b>: binæranalyse med
<span class="fragment highlight-green">filegenskaper</span>
</p>
<aside class="notes">
* Hvis du bruker Windows er alltids høyreklikk på filen og
"Egenskaper" (NESTE) en god start. <br />
* Ellers bare åpne i et tekstprogram for å kikke etter ledetråder
</aside>
</section>
<section data-source="exif_regex_info">
<img
data-src="img/1337_shrk-jpg/1337_shrk-jeffreysmetadataviewer-highlighted.png"
class="plain"
style="width: 100%"
/>