SlideShare a Scribd company logo
Ruler
Pivoting Through Exchange
whoami
@_staaldraad, @sensepost, #TR17
Outline
Using Exchange to pop and persist shells
Recon Exploit DefendPersist
Exchange
External Internal
Recon
Autodiscover
etienne@0x04.cc
https://0x04.cc/autodiscover/autodiscover.xml
https://autodiscover.0x04.cc/autodiscover/autodiscover.xml
http://autodiscover.0x04.cc/autodiscover/autodiscover.xml
10%
259,621
26,910
https://www.censys.io/certificates?q=parsed.names%3A+%28mail.onmicrosoft.com%29
[a-z0-9]*.mail.onmicrosoft.com
Gain Access
Brute-Force
WiFi
Phishing
Dumps
18,287
domains
domainusername
password
email
Exploit
Automation
192.168.0.10folderfile.exe
UNC Paths
* https://silentbreaksecurity.com/malicious-outlook-rules/
Nothing to see here...
pew.zips.exe
localhostc$usersuseronedrives.exe
host.com@SSLwebdav
Synchronisation
Client-Side
vs.
Server-Side
MAPI
Message Application Programming Interface
MAPI
RopOpenFolder
RopCreateMessage
RopSaveMessage
RopId LogonId
InputHandleIndex
OuputHandleIndex
FolderId
OpenModeFlags
Remote Operation Buffer
RPC/HTTP
/rpcproxy.dll?
CAS 1
CAS 2
CAS 3
CAS n
Outlook/Ruler
RPC_DATA_IN
RPC_DATA_OUT
RPC/HTTP
00000000 05 00 00 03 10 00 00 00 98 01 10 00 05 00 00 00 |................|
00000010 80 01 00 00 01 00 0a 00 70 68 5c 85 ed be f8 cc |........ph.....|
00000020 c0 30 97 3f b0 6b c0 39 95 02 31 59 1f 1c 31 4c |.0.?.k.9..1Y..1L|
00000030 15 43 2f 8b 5c 24 f0 0c cf 8a 20 00 ad c7 53 fa |.C/.$.... ...S.|
00000040 c1 09 3c 97 a1 c9 a6 49 13 8e 3c 43 4b f9 68 f8 |..<....I..<CK.h.|
00000050 62 04 ea 9f 50 39 54 fe 6f df ff 3e b6 8a 83 88 |b...P9T.o..>....|
00000060 b4 0f ba 27 47 ec c5 c9 05 dd 62 70 04 8b 88 97 |...'G.....bp....|
00000070 6d 6a cf 22 cc a2 22 6f 24 a4 84 4f f1 37 8f e3 |mj.".."o$..O.7..|
00000000 05 00 0b 17 10 00 00 00 78 00 28 00 01 00 00 00 |........x.(.....|
00000010 f8 0f f8 0f 00 00 00 00 01 00 00 00 01 00 01 00 |................|
00000020 00 db f1 a4 47 ca 67 10 b3 1f 00 dd 01 06 62 da |....G.g.......b.|
00000030 00 00 51 00 04 5d 88 8a eb 1c c9 11 9f e8 08 00 |..Q..]..........|
00000040 2b 10 48 60 02 00 00 00 0a 06 00 00 00 00 00 00 |+.H`............|
00000050 4e 54 4c 4d 53 53 50 00 01 00 00 00 b7 82 08 e2 |NTLMSSP.........|
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000070 05 01 28 0a 00 00 00 0f |..(.....|
HTTP
DCE/RPC
MAPI
[Encrypted]
MAPI/HTTP
/mapi/
CAS 1
CAS 2
CAS 3
CAS n
Outlook/Ruler
HTTP
Introducing Ruler
Ruler Demo
https://www.youtube.com/watch?v=C07GS4M8BZk
Persistence
Never going to give you up
I’ll never let you go
@slobtresix0 - Scot Berner
Hidden Comms
Liniaal
Empire
Compromised Host
InternalExternal
Hidden Folder
Don’t Traverse Traditional Network Boundary
Hidden Comms
Hidden
Unless you know
where to look
Liniaal Demo
https://www.youtube.com/watch?v=kRg09kUGpHs
Defence
Blocking
Outlook 2016
HKEY_CURRENT_USERSoftwareMicrosoftOffice16.0OutlookSecurity
EnableUnsafeClientMailRules=0
Gateway - Block all WebDAV
MFA - Exchange 2016, Office 365
Blocking
Gateway - Logging on Exchange
Host - Outlook rules scanning
Detection
https://github.com/sensepost/ruler
https://github.com/sensepost/liniaal
Questions?
@_staaldraad

More Related Content

PDF
140016
Idoia Arregui
 
DOCX
أخطاء كتاب ما يسمونه الثقافة الاسلامية للمستوى الأول والثاني من المرحلة الثانوية
Samer Banihani
 
KEY
Ikan knowledge test
russellst
 
PPTX
Xi ipa 2
Cellia Apridita
 
PPTX
Four activities by singaraj
Singarajlincyfelcy John
 
PDF
Term project estimate no. of pieces for elements part 1
Esraa Hussein
 
PDF
First responder mental health statistics - everything you need to know
Joanna Lowy
 
PDF
AtCoder Regular Contest 038 解誏
AtCoder Inc.
 
140016
Idoia Arregui
 
أخطاء كتاب ما يسمونه الثقافة الاسلامية للمستوى الأول والثاني من المرحلة الثانوية
Samer Banihani
 
Ikan knowledge test
russellst
 
Xi ipa 2
Cellia Apridita
 
Four activities by singaraj
Singarajlincyfelcy John
 
Term project estimate no. of pieces for elements part 1
Esraa Hussein
 
First responder mental health statistics - everything you need to know
Joanna Lowy
 
AtCoder Regular Contest 038 解誏
AtCoder Inc.
 

Viewers also liked (20)

PDF
Introducing (DET) the Data Exfiltration Toolkit
SensePost
 
PDF
Introduction to cqrs
Darius Sadowski
 
PDF
Exploring the mental wellbeing of the public relations profession
Stephen Waddington
 
PPTX
What Do We Do with Distance Education Research Findings? Developing New Instr...
Tanya Joosten
 
PPTX
Portrait of a lady
Makala (D)
 
PPTX
HPC Top 5 Stories: March 22, 2017
NVIDIA
 
PPTX
Payments Trends 2017
Capgemini
 
PPTX
Improvement in Rogue Access Points - SensePost Defcon 22
SensePost
 
PDF
The Marketer's Guide To Customer Interviews
Good Funnel
 
PPTX
ELSA France "Teaching is us!"
Adrian Scarlett
 
PDF
The Be-All, End-All List of Small Business Tax Deductions
Wagepoint
 
PDF
Visual Design with Data
Seth Familian
 
PDF
7 Steps to Digital Marketing
Digital Giants
 
PPTX
The school of life public talk
Ivan Figueroa-Otero
 
PPTX
Computador
camatias
 
PDF
Le marchĂŠ des ITS en Russie 2017
Business France (Export)
 
PPT
Hoe we kunnen zorgen dat iedereen profiteert van robotisering | ConferentieSo...
Matthijs Pontier
 
PPTX
Ortografia a l’aula i arreu
Joanprofe
 
PDF
Cli in the browser
Mani Sarkar
 
PDF
FJWilson Talent Services and the Institution of Civil Engineers
FJWilson Talent Services
 
Introducing (DET) the Data Exfiltration Toolkit
SensePost
 
Introduction to cqrs
Darius Sadowski
 
Exploring the mental wellbeing of the public relations profession
Stephen Waddington
 
What Do We Do with Distance Education Research Findings? Developing New Instr...
Tanya Joosten
 
Portrait of a lady
Makala (D)
 
HPC Top 5 Stories: March 22, 2017
NVIDIA
 
Payments Trends 2017
Capgemini
 
Improvement in Rogue Access Points - SensePost Defcon 22
SensePost
 
The Marketer's Guide To Customer Interviews
Good Funnel
 
ELSA France "Teaching is us!"
Adrian Scarlett
 
The Be-All, End-All List of Small Business Tax Deductions
Wagepoint
 
Visual Design with Data
Seth Familian
 
7 Steps to Digital Marketing
Digital Giants
 
The school of life public talk
Ivan Figueroa-Otero
 
Computador
camatias
 
Le marchĂŠ des ITS en Russie 2017
Business France (Export)
 
Hoe we kunnen zorgen dat iedereen profiteert van robotisering | ConferentieSo...
Matthijs Pontier
 
Ortografia a l’aula i arreu
Joanprofe
 
Cli in the browser
Mani Sarkar
 
FJWilson Talent Services and the Institution of Civil Engineers
FJWilson Talent Services
 
Ad

Similar to Ruler and Liniaal @ Troopers 17 (12)

PDF
Pwn2Own2021MSExchange3rdVuln.pdf
rskvp93
 
PPTX
Outlook and Exchange for the bad guys
Nick Landers
 
PPTX
BRK3161_Gagnon copilot for m365 microsoft
YasmineBoudhina
 
PDF
Top 15 Exchange Questions that Senior Admin ask - Jaap Wesselius
Kemp
 
DOCX
Microsoft Forefront - Exchange Hosted Services Whitepaper
Microsoft Private Cloud
 
PDF
Implementing Application Security
Information Technology
 
PPTX
CoLabora - Exchange Online Protection - June 2015
CoLaboraDK
 
PPTX
So I DevSecOpsed Office 365
Alex Mags
 
PPTX
Exch2010 compliance ngm f inal
Nathan Winters
 
PPTX
Nathan Winters Exchange 2010 protection and compliance
Nathan Winters
 
PPTX
Nathan Winters TechDays UK Exchange 2010 IPC
Nathan Winters
 
PPTX
Security and Compliance for Exchange Online in Office 365
Quentin Christensen
 
Pwn2Own2021MSExchange3rdVuln.pdf
rskvp93
 
Outlook and Exchange for the bad guys
Nick Landers
 
BRK3161_Gagnon copilot for m365 microsoft
YasmineBoudhina
 
Top 15 Exchange Questions that Senior Admin ask - Jaap Wesselius
Kemp
 
Microsoft Forefront - Exchange Hosted Services Whitepaper
Microsoft Private Cloud
 
Implementing Application Security
Information Technology
 
CoLabora - Exchange Online Protection - June 2015
CoLaboraDK
 
So I DevSecOpsed Office 365
Alex Mags
 
Exch2010 compliance ngm f inal
Nathan Winters
 
Nathan Winters Exchange 2010 protection and compliance
Nathan Winters
 
Nathan Winters TechDays UK Exchange 2010 IPC
Nathan Winters
 
Security and Compliance for Exchange Online in Office 365
Quentin Christensen
 
Ad

More from SensePost (20)

PDF
objection - runtime mobile exploration
SensePost
 
PPTX
Vulnerabilities in TN3270 based Application
SensePost
 
PPTX
ZaCon 2015 - Zombie Mana Attacks
SensePost
 
PDF
Heartbleed Overview
SensePost
 
PDF
Botconf 2013 - DNS-based Botnet C2 Server Detection
SensePost
 
PPTX
Rat a-tat-tat
SensePost
 
PDF
Hacking Z-Wave Home Automation Systems
SensePost
 
PPTX
Offence oriented Defence
SensePost
 
PPTX
Threats to machine clouds
SensePost
 
PPTX
Inside .NET Smart Card Operating System
SensePost
 
PDF
SNMP : Simple Network Mediated (Cisco) Pwnage
SensePost
 
PPT
Its Ok To Get Hacked
SensePost
 
PPT
Web Application Hacking
SensePost
 
PDF
Putting the tea back into cyber terrorism
SensePost
 
PPT
Major global information security trends - a summary
SensePost
 
PPT
Attacks and Defences
SensePost
 
PDF
Corporate Threat Modeling v2
SensePost
 
PPTX
State of the information security nation
SensePost
 
PPS
OK I'm here, so what's in it for me?
SensePost
 
PPT
Security threats facing SA businessess
SensePost
 
objection - runtime mobile exploration
SensePost
 
Vulnerabilities in TN3270 based Application
SensePost
 
ZaCon 2015 - Zombie Mana Attacks
SensePost
 
Heartbleed Overview
SensePost
 
Botconf 2013 - DNS-based Botnet C2 Server Detection
SensePost
 
Rat a-tat-tat
SensePost
 
Hacking Z-Wave Home Automation Systems
SensePost
 
Offence oriented Defence
SensePost
 
Threats to machine clouds
SensePost
 
Inside .NET Smart Card Operating System
SensePost
 
SNMP : Simple Network Mediated (Cisco) Pwnage
SensePost
 
Its Ok To Get Hacked
SensePost
 
Web Application Hacking
SensePost
 
Putting the tea back into cyber terrorism
SensePost
 
Major global information security trends - a summary
SensePost
 
Attacks and Defences
SensePost
 
Corporate Threat Modeling v2
SensePost
 
State of the information security nation
SensePost
 
OK I'm here, so what's in it for me?
SensePost
 
Security threats facing SA businessess
SensePost
 

Recently uploaded (20)

PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Software Development Methodologies in 2025
KodekX
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Software Development Methodologies in 2025
KodekX
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
The Future of Artificial Intelligence (AI)
Mukul
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 

Ruler and Liniaal @ Troopers 17