SlideShare uma empresa Scribd logo
1 de 38
Baixar para ler offline
Reversing is Fun
R˘azvan Deaconescu
razvan.deaconescu@cs.pub.ro
CompSoc, University of Leeds
November 29, 2018
1 / 38
Meet the Breakers
https://www.slideshare.net/cristinakesh/solar-powered-car-e
2 / 38
Me as a Breaker, Repairman, Improver
pretty scared as a child
didn’t break things on purpose
but it happens
3 / 38
Wired Toy Car Hack
https://bricks.stackexchange.com/questions/6755/
how-do-i-make-a-remote-control-car-without-lego-motors
4 / 38
Rambo Joystick Continuous Repairing
https://www.digitiser2000.com/main-page/top-10-funny-console-knock-offs
5 / 38
Diablo-affected Mouse Button
https:
//www.i-tech.com.au/steelseries-diablo-iii-reaper-of-souls-5700dpi-gaming-mouse-ss-62151.html
6 / 38
Disembodied PC
https://www.instructables.com/id/Disassemble-a-Computer/
7 / 38
Why?
Why do kids break stuff?
Why do people break stuff?
8 / 38
Why? (2)
innate curiosity
desire to look inside, to know how it works
feels good when we know
feels better when we repair
achievement, accomplishment, improvement
goal, purpose
9 / 38
Dan Pink: Drive
https://www.amazon.co.uk/Drive-Daniel-H-Pink/dp/184767769X
autonomy, mastery, purpose
10 / 38
Linus Torvalds and Linux
https://www.amazon.co.uk/Just-Fun-Story-Accidental-Revolutionary/dp/0066620732
11 / 38
Really?
https://www.howstuffworks.com
podcasts, YouTube channel
https://reverseengineering.stackexchange.com
12 / 38
What is Reversing / Reverse Engineering?
https://www.wisewhysofsales.com/2017/01/10/reverse-engineering-a-sale/
13 / 38
Reversing Targets
programs
data formats
protocols
14 / 38
Andrew Tridgell and Samba
https://commons.wikimedia.org/wiki/File:Logo_Samba_Software.svg
15 / 38
Why Break Programs?
https://null-byte.wonderhowto.com/how-to/
hacks-behind-cracking-part-1-bypass-software-registration-0132568/
know how they work
for fun
for fame and glory
hackers, crackers, white/black hat, ethical
16 / 38
Public Hacking/Cracking
https://www.blackhat.com
https://www.defcon.org
http://www.hitb.org
17 / 38
Is It Easy?
18 / 38
Is It Easy?
https://imgur.com/gallery/DKUR9Tk
19 / 38
Is It Easy?
https://me.me/i/meme-facebook-funny-memes-54435
20 / 38
Is It Easy?
http://www.ozpolitic.com/cgi-bin/album.pl?photo=forum-attachments/-hell-the-f-no.jpg
21 / 38
Reverse engineering can be depressing and quite solitary. The
support from all of you @vu5ec was always there :-), I appreciate
the encouragement that I got throughout the process. It was
painfully fun!
Lucian Cojocar
Reversing is like catching a cobra by the back legs.
R˘azvan Deaconescu
22 / 38
My Story
CTF security contests (Capture the Flag)
master classes on security (open content)
https://ocw.cs.pub.ro/courses/cns
http://elf.cs.pub.ro/sis/
security summer school (open content):
https://security.cs.pub.ro/summer-school/wiki/
23 / 38
My Story in iOS Reversing
https://developer.apple.com/library/archive/documentation/Security/Conceptual/
AppSandboxDesignGuide/AboutAppSandbox/AboutAppSandbox.html
24 / 38
Sandboxing
limit actions for processes / applications; i.e. open a file,
connect to a remote host
in iOS, there are sandbox profiles attached to applications
a sandbox profile contains a specific set of rules
container sandbox profile used for all 3rd party apps (i.e.
those installed from Apple AppStore)
25 / 38
Initial Format of iOS Sandbox Profiles
(version 1)
(allow default)
(deny network*
(local ip "*:*"))
(deny network-outbound
(literal "/private/var/tmp/launchd/sock")
(regex #"^/private/tmp/launchd-[0-9]+[.][^/]+/"))
26 / 38
Deployed Format of iOS Sandbox Profiles
00000000: 0080 5c9c 9f00 849c 0300 8c00 859c 0000
00000010: 5b9c 5b9c 5b9c 5b9c 5b9c 5b9c 5b9c 5b9c
00000020: 5b9c 5b9c 579c fe9b 5a9c f39b 5b9c 5b9c
00000030: 5b9c 959b 939b 6b9b 959b 5b9c 5b9c 5b9c
00000040: 4f9b 4f9b 4f9b 459b 4f9b 439b 4f9b 4f9b
00000050: 4f9b 4f9b 359b 5b9c 5b9c 5b9c 5b9c 5b9c
00000060: 5b9c 5b9c 5b9c 5b9c 349b 5b9c 5a9c 5b9c
00000070: 5b9c 5b9c 5b9c 5b9c 339b 5b9c 5b9c 5b9c
00000080: 329b 309b 309b 309b 329b 329b 2f9b 2f9b
00000090: 5b9c 5b9c 5b9c 5b9c 5b9c 5b9c 5b9c 5b9c
[...]
27 / 38
Reversing the iOS Sandbox
https://coryseznec.bandcamp.com/track/sisyphus
SandBlaster
https://arxiv.org/abs/1608.04303
https://github.com/malus-security/sandblaster
28 / 38
The Journey
close to an year to get it working
another half year to make it work on almost all cases
relentless back-and-forth
made it open source
relied on previous work (Dionysus Blazakis, Stefan Esser, Dino
Dai Zovi)
29 / 38
Yes but . . .
. . . it seems daunting
. . . it takes time
30 / 38
However . . .
it will be fun
you will improve: patience, perseverance, lateral thinking, problem
solving
you are part of a community
31 / 38
What To Do?
CTF contents
https://picoctf.com
https://junior.35c3ctf.ccc.ac/announcements/
https://ctftime.org
http://captf.com/practice-ctf/
wargames
http://io.netgarage.org
http://smashthestack.org/wargames.html
http://overthewire.org/wargames/
32 / 38
Professional Reverse Engineers
fame, glory
money
training
note legal aspects
responsible disclosure
33 / 38
Yeah, but ...
I’m more of a developer
I want to build stuff, not break stuff
I want to create
34 / 38
Perspective
Sergiu Weisz, 1st year master student
I want to build. But I choose to do security because it gives me a
better understanding of how things work. And how things can be
attacked, abused and brought down.
poorly built software, hardware and infrastructure
you can make it better, more secure, more robust
once you understand it’s inner working
35 / 38
Build it. Break it. Make it better.
36 / 38
Resources
mine
slides: https://www.slideshare.net/razvandeaconescu/
https://ocw.cs.pub.ro/courses/cns
http://elf.cs.pub.ro/sis/
https://security.cs.pub.ro/summer-school/wiki/
https://arxiv.org/abs/1608.04303
https://github.com/malus-security/sandblaster
conferences, events, magazines
https://www.blackhat.com
https://www.defcon.org
http://www.hitb.org
http://phrack.org/
37 / 38
Resources (2)
CTFs, wargames
https://picoctf.com
https://junior.35c3ctf.ccc.ac/announcements/
https://ctftime.org
http://captf.com/practice-ctf/
http://io.netgarage.org
http://smashthestack.org/wargames.html
http://overthewire.org/wargames/
misc
https://www.amazon.co.uk/Drive-Daniel-H-Pink/dp/
184767769X
https://www.amazon.co.uk/
Just-Fun-Story-Accidental-Revolutionary/dp/
0066620732
https://reverseengineering.stackexchange.com
https://www.howstuffworks.com
38 / 38

Mais conteúdo relacionado

Semelhante a Reversing is Fun

Gatling - JUGL, 2012-09-13
Gatling  - JUGL, 2012-09-13Gatling  - JUGL, 2012-09-13
Gatling - JUGL, 2012-09-13
Nicolas Rémond
 
Deep dark side of git - prologue
Deep dark side of git - prologueDeep dark side of git - prologue
Deep dark side of git - prologue
SeongJae Park
 
Lis201 xeroxparc final
Lis201 xeroxparc finalLis201 xeroxparc final
Lis201 xeroxparc final
kmessenger
 
Y1 gd engine_terminology
Y1 gd engine_terminologyY1 gd engine_terminology
Y1 gd engine_terminology
nnak786
 

Semelhante a Reversing is Fun (20)

Attacking the macOS Kernel Graphics Driver
Attacking the macOS Kernel Graphics DriverAttacking the macOS Kernel Graphics Driver
Attacking the macOS Kernel Graphics Driver
 
DevOpSec_DockerNPodMan-20230220.pdf
DevOpSec_DockerNPodMan-20230220.pdfDevOpSec_DockerNPodMan-20230220.pdf
DevOpSec_DockerNPodMan-20230220.pdf
 
Minecraft in 500 lines with Pyglet - PyCon UK
Minecraft in 500 lines with Pyglet - PyCon UKMinecraft in 500 lines with Pyglet - PyCon UK
Minecraft in 500 lines with Pyglet - PyCon UK
 
Gatling - JUGL, 2012-09-13
Gatling  - JUGL, 2012-09-13Gatling  - JUGL, 2012-09-13
Gatling - JUGL, 2012-09-13
 
Deep dark side of git - prologue
Deep dark side of git - prologueDeep dark side of git - prologue
Deep dark side of git - prologue
 
Digital Fabrication Studio v.0.2: Digital Fabrication and FabLab ecosystem
Digital Fabrication Studio v.0.2: Digital Fabrication and FabLab ecosystemDigital Fabrication Studio v.0.2: Digital Fabrication and FabLab ecosystem
Digital Fabrication Studio v.0.2: Digital Fabrication and FabLab ecosystem
 
Lis201 xeroxparc final
Lis201 xeroxparc finalLis201 xeroxparc final
Lis201 xeroxparc final
 
Y1 gd engine_terminology
Y1 gd engine_terminologyY1 gd engine_terminology
Y1 gd engine_terminology
 
History of Human-Computer Interaction
History of Human-Computer InteractionHistory of Human-Computer Interaction
History of Human-Computer Interaction
 
Spaceship At £5 App
Spaceship At £5 AppSpaceship At £5 App
Spaceship At £5 App
 
Image slides isandru
Image slides isandruImage slides isandru
Image slides isandru
 
Year 5-6: Ideas for teaching coding
Year 5-6: Ideas for teaching codingYear 5-6: Ideas for teaching coding
Year 5-6: Ideas for teaching coding
 
503
503503
503
 
Eight Rules for Making Your First Great Game
Eight Rules for Making Your First Great GameEight Rules for Making Your First Great Game
Eight Rules for Making Your First Great Game
 
Minecraft in 500 lines of Python with Pyglet
Minecraft in 500 lines of Python with PygletMinecraft in 500 lines of Python with Pyglet
Minecraft in 500 lines of Python with Pyglet
 
Amiga 34 Demoscene Talk by Noname and Dascon
Amiga 34 Demoscene Talk by Noname and DasconAmiga 34 Demoscene Talk by Noname and Dascon
Amiga 34 Demoscene Talk by Noname and Dascon
 
Are CPUs VMs Like Any Others? v1.0
Are CPUs VMs Like Any Others? v1.0Are CPUs VMs Like Any Others? v1.0
Are CPUs VMs Like Any Others? v1.0
 
Micro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCUMicro SD Memory Card Interface for 3.3V MCU
Micro SD Memory Card Interface for 3.3V MCU
 
AMKSS Career Conference 2018: Software Engineering
AMKSS Career Conference 2018: Software EngineeringAMKSS Career Conference 2018: Software Engineering
AMKSS Career Conference 2018: Software Engineering
 
Securing the Socks Shop
Securing the Socks ShopSecuring the Socks Shop
Securing the Socks Shop
 

Mais de Răzvan Deaconescu

Mais de Răzvan Deaconescu (20)

Călătoria și destinația
Călătoria și destinațiaCălătoria și destinația
Călătoria și destinația
 
CTF: One for All. And More for Me
CTF: One for All. And More for MeCTF: One for All. And More for Me
CTF: One for All. And More for Me
 
De ce să învăț securitate?
De ce să învăț securitate?De ce să învăț securitate?
De ce să învăț securitate?
 
Notele contează
Notele conteazăNotele contează
Notele contează
 
Extreme, absolutisme și relativisme
Extreme, absolutisme și relativismeExtreme, absolutisme și relativisme
Extreme, absolutisme și relativisme
 
Tranzacții, piețe libere și sex
Tranzacții, piețe libere și sexTranzacții, piețe libere și sex
Tranzacții, piețe libere și sex
 
Despre congruență
Despre congruențăDespre congruență
Despre congruență
 
Frame. Framing. Reframing
Frame. Framing. ReframingFrame. Framing. Reframing
Frame. Framing. Reframing
 
Secretul succesului
Secretul succesuluiSecretul succesului
Secretul succesului
 
De ce ne plac anti-eroii
De ce ne plac anti-eroiiDe ce ne plac anti-eroii
De ce ne plac anti-eroii
 
Common Bullshit: Când oamenii mănâncă ... rahat
Common Bullshit: Când oamenii mănâncă ... rahatCommon Bullshit: Când oamenii mănâncă ... rahat
Common Bullshit: Când oamenii mănâncă ... rahat
 
Lucruri care contează
Lucruri care conteazăLucruri care contează
Lucruri care contează
 
Cuvintele au putere
Cuvintele au putereCuvintele au putere
Cuvintele au putere
 
Cum sa predai de nota 10
Cum sa predai de nota 10Cum sa predai de nota 10
Cum sa predai de nota 10
 
De ce să știi limbaj de asamblare
De ce să știi limbaj de asamblareDe ce să știi limbaj de asamblare
De ce să știi limbaj de asamblare
 
Open Source for Students
Open Source for StudentsOpen Source for Students
Open Source for Students
 
Despre dezvăț: Uneori strici ca să contruiești
Despre dezvăț: Uneori strici ca să contruieștiDespre dezvăț: Uneori strici ca să contruiești
Despre dezvăț: Uneori strici ca să contruiești
 
Organizarea unei echipe didactice
Organizarea unei echipe didacticeOrganizarea unei echipe didactice
Organizarea unei echipe didactice
 
MOOC-uri, comunitati, mentori, universitati si hub-uri
MOOC-uri, comunitati, mentori, universitati si hub-uriMOOC-uri, comunitati, mentori, universitati si hub-uri
MOOC-uri, comunitati, mentori, universitati si hub-uri
 
Despre eficiență: Cum și cu ce tool faci cât mai bine un lucru
Despre eficiență: Cum și cu ce tool faci cât mai bine un lucruDespre eficiență: Cum și cu ce tool faci cât mai bine un lucru
Despre eficiență: Cum și cu ce tool faci cât mai bine un lucru
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

Reversing is Fun