SlideShare a Scribd company logo
1 of 28
Office 365 Attacks
Prepared by @JohnLaTwC
v1.06
Attack Matrix for O365
Recon Compromise Persistence Expansion
Actions on
Intent
AAD
• Dump users and groups with Azure
AD
• Password Spray: MailSniper
• Password Spray: CredKing
O365
• Get Global Address List: MailSniper
• Find Open Mailboxes: MailSniper
• User account enumeration with
ActiveSync
• Harvest email addresses
• Verify target is on O365, [DNS],
[urls], [list], [getuserrealm]
• Enumerate usernames, 2FA status
via ActiveSync [o365userenum]
• Role, group, admin enumeration
with Get-MsolRoleMember
[RainDance]
• Bruteforce of Autodiscover:
SensePost Ruler
• Phishing for credentials
• Phishing using OAuth app
• 2FA MITM Phishing: evilginx2
[github]
• Add Mail forwarding rule
• Add Global Admin Account
• Delegate Tenant Admin
• MailSniper: Search Mailbox for
credentials
• Search for Content with
eDiscovery
• Account Takeover: Add-
MailboxPermission
• Pivot to On-Prem host:
SensePost Ruler
• Exchange Tasks for C2: MWR
• Send Internal Email
• MailSniper: Search Mailbox
for content
• Search for Content with
eDiscovery
• Exfil email using EWS APIs
with PowerShell
• Download documents and
email
• Financial/wire fraud
End
Point
• Search host for Azure credentials:
SharpCloud
• Persistence through Outlook
Home Page: SensePost Ruler
• Persistence through custom
Outlook Form
• Create Hidden Mailbox Rule
[tool]
On-Prem
Exchange
• Portal Recon
• Enumerate domain accounts using
Skype4B, [LyncSmash]
• Enumerate domain accounts: OWA
& Exchange
• Enumerate domain accounts: OWA:
FindPeople
• OWA version discovery
• Password Spray using Invoke-
PasswordSprayOWA, EWS,
Atomizer
• Bruteforce of Autodiscover:
SensePost Ruler
• PasswordSpray Lync/S4B
[LyncSniper]
• Exchange MTA • Search Mailboxes with
eDiscovery searches (EXO,
Teams, SPO, OD4B, Skype4B)
• Delegation
Prepared by @JohnLaTwC, May 2019, v1.06
Public Tools and Techniques
What follows is a list of attack techniques for O365, on-prem exchange/OWA, and
some Office application layer client-and-cloud techniques
https://adsecurity.org/wp-content/uploads/2017/07/2017-DEFCON-HackingTheCloud-SteereMetcalf-Final.pdf
Recon: Fingerprint OWA/Exchange version
Recon: Verifying Target is on O365
Microsoft Confidential
https://www.trustedsec.com/2019/05/owning-o365-through-better-brute-forcing/
Recon: Enumerate users with LyncSmash
Microsoft Confidential
https://github.com/nyxgeek/lyncsmash
Recon: Find Open mailboxes
• Mailboxes with relaxed permissions
allow attackers to gain access
• Attacker can search emails for
credentials or victim information that
facilitates targeting
• Off-the-shelf tools exist to automate
discovery
https://www.blackhillsinfosec.com/abusing-exchange-mailbox-permissions-mailsniper/
Recon: User Enumeration
Recon: O365Recon via ActiveSync
Microsoft Confidential
https://grimhacker.com/2017/07/24/office365-activesync-username-enumeration/
https://www.trustedsec.com/2019/05/owning-o365-
through-better-brute-forcing/
Recon: Enumeration with RainDance
https://github.com/True-Demon/raindance https://www.youtube.com/watch?v=VHPZ2YU351M
Find users with Hunter.IO
https://hunter.io/
Recon: OWA FindPeople
https://www.blackhillsinfosec.com/attacking-exchange-with-mailsniper/
Phishing: 2FA bypass with OAuth Phishing
Step 1: Attacker registers an app with AAD
with permission to read user mailbox
Step 2: Attacker crafts a mail with a link to
authorize the app
Note: the URL is entirely hosted at
Microsoft making it trickier to know it is a
phishing site
Step 3: User tricked into consenting to app
permission request
NO USER CREDENTIALS REQUIRED. ATTACKER ACCESS PERSISTS AFTER CREDENTIAL RESET
Gmail OAuth example: https://content.fireeye.com/m-trends/rpt-m-trends-2017 , Bypassing Multi-Factor Authentication for Corporate Email Theft
Phishing: 2FA Bypass with MITM Evilginx2
https://breakdev.org/evilginx-2-next-generation-of-phishing-2fa-tokens/
Cookie is intercepted
by Evilginx
Victim receive the
2FA code
Password Spray (on steroids)
Password spraying and brute forcing of Lync
and Skype for Business
https://github.com/mdsecresearch/LyncSniper
Password sprayer for Lync/Skype For Business
and OWA
https://github.com/byt3bl33d3r/SprayingToolkit
Persistence (On-prem Exchange)
https://www.welivesecurity.com/wp-content/uploads/2019/05/ESET-LightNeuron.pdf
Actions on Intent: Searching Inbox for
Content
Actions on Intent: Forwarding email
https://content.fireeye.com/m-trends/rpt-m-trends-2019
Actions on Intent: Exfiltrate e-mail
https://twitter.com/matthewdunwoody/status/1091786455851167749 (the whole thread is a gem)
Endpoint and Cloud attacks
Endpoint: Outlook Tasks for C2
https://labs.mwrinfosecurity.com/blog/tasking-office-365-for-cobalt-strike-c2/
Command and Control: OneDrive & Graph API
https://github.com/EmpireProject/Empire/blob/e37fb2eef8ff8f5a0a689f1589f424906fe13055/lib/listeners/onedrive.py
https://gist.github.com/mr64bit/3fd8f321717c9a6423f7949d494b6cd9
Creating malicious outlook rules
https://github.com/mwrlabs/XRulez
References
Reading List
• https://www.blackhillsinfosec.com/red-teaming-microsoft-part-1-active-directory-leaks-via-azure/
• https://www.trustedsec.com/2017/08/attacking-self-hosted-skype-businessmicrosoft-lync-installations/
• CAS Authentication Timing Attack http://h.foofus.net/?p=784
• https://investors.fireeye.com/static-files/b7dcb16f-44a8-4cfb-927f-efeed397dd52
• https://www.slideshare.net/DouglasBienstock/shmoocon-2019-becs-and-beyond-investigating-and-defending-office-365 (youtube)
• https://www.splunk.com/blog/2018/08/31/i-azure-you-this-will-be-useful.html
• https://docs.microsoft.com/en-us/office365/securitycompliance/detailed-properties-in-the-office-365-audit-log
• https://www.splunk.com/blog/2018/08/27/the-future-is-cloudy-with-a-chance-of-microsoft-office-365.html
• https://www.splunk.com/blog/2017/07/27/splunking-microsoft-cloud-data-part-1.html
• https://twitter.com/matthewdunwoody/status/1091786455851167749
• https://labs.mwrinfosecurity.com/blog/tasking-office-365-for-cobalt-strike-c2/
• DEF CON 25 - Gerald Steere, Sean Metcalf - Hacking the Cloud (youtube, slides)
• Business Email Compromise on O365 (https://www.youtube.com/watch?v=JMFB4TodjkE)
• https://blogs.technet.microsoft.com/cloudready/2018/10/14/email-phishing-protection-guide-part-14-prevent-brute-force-and-spray-attacks-in-office-365/
• Andrew Johnson / Sacha Faust - Cloud Post Exploitation Techniques @ Infiltrate 2017, https://vimeo.com/214855977
• https://www.mdsec.co.uk/2017/04/penetration-testing-skype-for-business-exploiting-the-missing-lync/
• When Clouds Collide (slides)
• Proofpoint: Threat actors leverage credential dumps, phishing, and legacy email protocols to bypass MFA and breach cloud accounts worldwide
• Bypassing inline filtering by security services [O365 user voice]
• Hiding in Plain Sight: Using the Office 365 Activities API to Investigate Business Email Compromises by CrowdStrike
• Using O365 Activities API for Incident Response
• OFFICE365 ACTIVESYNC USERNAME ENUMERATION by GrimHacker
• Extracting Sign-in data from O365
• eDiscovery Search https://docs.microsoft.com/en-us/Exchange/policy-and-compliance/ediscovery/create-searches?view=exchserver-2019
• https://adsecurity.org/wp-content/uploads/2019/04/2019-BSidesCharm-YouMovedtoOffice365NowWhat-Metcalf.pdf
• 2FA MITM Phishing Toolkit Evilginx2 Tools
• https://www.trustedsec.com/2019/05/owning-o365-through-better-brute-forcing/
• https://github.com/nyxgeek/lyncsmash [slides]
• RainDance: O365 User Enumeration tool [tool]
Researchers to follow:
• https://twitter.com/fullmetalcache
• https://twitter.com/doughsec/
• https://twitter.com/MadeleyJosh
• https://twitter.com/matthewdunwoody/
• https://twitter.com/mwrlabs
• https://twitter.com/meansec
• https://twitter.com/domchell
• https://twitter.com/vysecurity
• https://twitter.com/dafthack
• https://twitter.com/PyroTek3
• https://twitter.com/_staaldraad
• https://twitter.com/byt3bl33d3r
• https://twitter.com/nyxgeek
• https://twitter.com/grimhacker
• https://twitter.com/TRUExDEMON [RainDance]

More Related Content

Similar to Office 365 - Attacks and References.pptx

CoLabora March 2022 - Improve security posture by implementing new Azure AD ...
CoLabora March 2022 -  Improve security posture by implementing new Azure AD ...CoLabora March 2022 -  Improve security posture by implementing new Azure AD ...
CoLabora March 2022 - Improve security posture by implementing new Azure AD ...Peter Selch Dahl
 
Windays14 - How to (remote) control Office 365 with Azure
Windays14 - How to (remote) control Office 365 with AzureWindays14 - How to (remote) control Office 365 with Azure
Windays14 - How to (remote) control Office 365 with Azureatwork
 
Microsoft365 from a Hacker's Perspective
Microsoft365 from a Hacker's PerspectiveMicrosoft365 from a Hacker's Perspective
Microsoft365 from a Hacker's PerspectiveBenedek Menesi
 
BlueHat Seattle 2019 || I'm in your cloud: A year of hacking Azure AD
BlueHat Seattle 2019 || I'm in your cloud: A year of hacking Azure ADBlueHat Seattle 2019 || I'm in your cloud: A year of hacking Azure AD
BlueHat Seattle 2019 || I'm in your cloud: A year of hacking Azure ADBlueHat Security Conference
 
May 2023 CIAOPS Need to Know Webinar
May 2023 CIAOPS Need to Know WebinarMay 2023 CIAOPS Need to Know Webinar
May 2023 CIAOPS Need to Know WebinarRobert Crane
 
Microsoft Graph API - A Single Stop For Your Cloud Solution
Microsoft Graph API - A Single Stop For Your Cloud SolutionMicrosoft Graph API - A Single Stop For Your Cloud Solution
Microsoft Graph API - A Single Stop For Your Cloud SolutionDipti Chhatrapati
 
SharePoint Fest DC - Everything your need to know about the Microsoft Graph a...
SharePoint Fest DC - Everything your need to know about the Microsoft Graph a...SharePoint Fest DC - Everything your need to know about the Microsoft Graph a...
SharePoint Fest DC - Everything your need to know about the Microsoft Graph a...Sébastien Levert
 
Microsoft graph and power platform champ
Microsoft graph and power platform   champMicrosoft graph and power platform   champ
Microsoft graph and power platform champKumton Suttiraksiri
 
hackcon2013-Dirty Little Secrets They Didn't Teach You In Pentesting Class v2
hackcon2013-Dirty Little Secrets They Didn't Teach You In Pentesting Class v2hackcon2013-Dirty Little Secrets They Didn't Teach You In Pentesting Class v2
hackcon2013-Dirty Little Secrets They Didn't Teach You In Pentesting Class v2Chris Gates
 
How to measure your security response readiness?
How to measure your security response readiness?How to measure your security response readiness?
How to measure your security response readiness?Tomasz Jakubowski
 
Office365 from a hacker's perspective: Real-life Threats, Tactics and Remedies
Office365 from a hacker's perspective: Real-life Threats, Tactics and Remedies Office365 from a hacker's perspective: Real-life Threats, Tactics and Remedies
Office365 from a hacker's perspective: Real-life Threats, Tactics and Remedies Benedek Menesi
 
July 2021 Microsoft 365 Need to Know Webinar
July 2021 Microsoft 365 Need to Know WebinarJuly 2021 Microsoft 365 Need to Know Webinar
July 2021 Microsoft 365 Need to Know WebinarRobert Crane
 
TechNet Conference 2013 Berlin-Wie Sie Office 365 mit Windows Azure steuern b...
TechNet Conference 2013 Berlin-Wie Sie Office 365 mit Windows Azure steuern b...TechNet Conference 2013 Berlin-Wie Sie Office 365 mit Windows Azure steuern b...
TechNet Conference 2013 Berlin-Wie Sie Office 365 mit Windows Azure steuern b...atwork
 
SharePoint Fest Seattle 2017 - Everything your need to know about the Microso...
SharePoint Fest Seattle 2017 - Everything your need to know about the Microso...SharePoint Fest Seattle 2017 - Everything your need to know about the Microso...
SharePoint Fest Seattle 2017 - Everything your need to know about the Microso...Sébastien Levert
 
Catching Multilayered Zero-Day Attacks on MS Office
Catching Multilayered Zero-Day Attacks on MS OfficeCatching Multilayered Zero-Day Attacks on MS Office
Catching Multilayered Zero-Day Attacks on MS OfficeKaspersky
 
October 2022 CIAOPS Need to Know Webinar
October 2022 CIAOPS Need to Know WebinarOctober 2022 CIAOPS Need to Know Webinar
October 2022 CIAOPS Need to Know WebinarRobert Crane
 
SharePoint Saturday Ottawa - How secure is my data in office 365?
SharePoint Saturday Ottawa - How secure is my data in office 365?SharePoint Saturday Ottawa - How secure is my data in office 365?
SharePoint Saturday Ottawa - How secure is my data in office 365?AntonioMaio2
 

Similar to Office 365 - Attacks and References.pptx (20)

CoLabora March 2022 - Improve security posture by implementing new Azure AD ...
CoLabora March 2022 -  Improve security posture by implementing new Azure AD ...CoLabora March 2022 -  Improve security posture by implementing new Azure AD ...
CoLabora March 2022 - Improve security posture by implementing new Azure AD ...
 
Windays14 - How to (remote) control Office 365 with Azure
Windays14 - How to (remote) control Office 365 with AzureWindays14 - How to (remote) control Office 365 with Azure
Windays14 - How to (remote) control Office 365 with Azure
 
Microsoft365 from a Hacker's Perspective
Microsoft365 from a Hacker's PerspectiveMicrosoft365 from a Hacker's Perspective
Microsoft365 from a Hacker's Perspective
 
BlueHat Seattle 2019 || I'm in your cloud: A year of hacking Azure AD
BlueHat Seattle 2019 || I'm in your cloud: A year of hacking Azure ADBlueHat Seattle 2019 || I'm in your cloud: A year of hacking Azure AD
BlueHat Seattle 2019 || I'm in your cloud: A year of hacking Azure AD
 
May 2023 CIAOPS Need to Know Webinar
May 2023 CIAOPS Need to Know WebinarMay 2023 CIAOPS Need to Know Webinar
May 2023 CIAOPS Need to Know Webinar
 
Microsoft Graph API - A Single Stop For Your Cloud Solution
Microsoft Graph API - A Single Stop For Your Cloud SolutionMicrosoft Graph API - A Single Stop For Your Cloud Solution
Microsoft Graph API - A Single Stop For Your Cloud Solution
 
SharePoint Fest DC - Everything your need to know about the Microsoft Graph a...
SharePoint Fest DC - Everything your need to know about the Microsoft Graph a...SharePoint Fest DC - Everything your need to know about the Microsoft Graph a...
SharePoint Fest DC - Everything your need to know about the Microsoft Graph a...
 
M365 Teams Automation
M365 Teams AutomationM365 Teams Automation
M365 Teams Automation
 
Microsoft graph and power platform champ
Microsoft graph and power platform   champMicrosoft graph and power platform   champ
Microsoft graph and power platform champ
 
Azure sentinel
Azure sentinelAzure sentinel
Azure sentinel
 
hackcon2013-Dirty Little Secrets They Didn't Teach You In Pentesting Class v2
hackcon2013-Dirty Little Secrets They Didn't Teach You In Pentesting Class v2hackcon2013-Dirty Little Secrets They Didn't Teach You In Pentesting Class v2
hackcon2013-Dirty Little Secrets They Didn't Teach You In Pentesting Class v2
 
How to measure your security response readiness?
How to measure your security response readiness?How to measure your security response readiness?
How to measure your security response readiness?
 
Office365 from a hacker's perspective: Real-life Threats, Tactics and Remedies
Office365 from a hacker's perspective: Real-life Threats, Tactics and Remedies Office365 from a hacker's perspective: Real-life Threats, Tactics and Remedies
Office365 from a hacker's perspective: Real-life Threats, Tactics and Remedies
 
July 2021 Microsoft 365 Need to Know Webinar
July 2021 Microsoft 365 Need to Know WebinarJuly 2021 Microsoft 365 Need to Know Webinar
July 2021 Microsoft 365 Need to Know Webinar
 
TechNet Conference 2013 Berlin-Wie Sie Office 365 mit Windows Azure steuern b...
TechNet Conference 2013 Berlin-Wie Sie Office 365 mit Windows Azure steuern b...TechNet Conference 2013 Berlin-Wie Sie Office 365 mit Windows Azure steuern b...
TechNet Conference 2013 Berlin-Wie Sie Office 365 mit Windows Azure steuern b...
 
SharePoint Fest Seattle 2017 - Everything your need to know about the Microso...
SharePoint Fest Seattle 2017 - Everything your need to know about the Microso...SharePoint Fest Seattle 2017 - Everything your need to know about the Microso...
SharePoint Fest Seattle 2017 - Everything your need to know about the Microso...
 
Catching Multilayered Zero-Day Attacks on MS Office
Catching Multilayered Zero-Day Attacks on MS OfficeCatching Multilayered Zero-Day Attacks on MS Office
Catching Multilayered Zero-Day Attacks on MS Office
 
October 2022 CIAOPS Need to Know Webinar
October 2022 CIAOPS Need to Know WebinarOctober 2022 CIAOPS Need to Know Webinar
October 2022 CIAOPS Need to Know Webinar
 
SharePoint Saturday Ottawa - How secure is my data in office 365?
SharePoint Saturday Ottawa - How secure is my data in office 365?SharePoint Saturday Ottawa - How secure is my data in office 365?
SharePoint Saturday Ottawa - How secure is my data in office 365?
 
Azure Sentinel
Azure SentinelAzure Sentinel
Azure Sentinel
 

Recently uploaded

Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service NashikLow Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Thane Escorts, (Pooja 09892124323), Thane Call Girls
Thane Escorts, (Pooja 09892124323), Thane Call GirlsThane Escorts, (Pooja 09892124323), Thane Call Girls
Thane Escorts, (Pooja 09892124323), Thane Call GirlsPooja Nehwal
 
Call Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...nagunakhan
 
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...Pooja Nehwal
 
《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...
《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...
《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...ur8mqw8e
 
Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...
Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...
Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...anilsa9823
 
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...Pooja Nehwal
 
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...Suhani Kapoor
 
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...Call Girls in Nagpur High Profile
 
(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...
(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...
(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...ranjana rawat
 
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai GapedCall Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gapedkojalkojal131
 
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...nagunakhan
 
Alambagh Call Girl 9548273370 , Call Girls Service Lucknow
Alambagh Call Girl 9548273370 , Call Girls Service LucknowAlambagh Call Girl 9548273370 , Call Girls Service Lucknow
Alambagh Call Girl 9548273370 , Call Girls Service Lucknowmakika9823
 
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样qaffana
 
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一ga6c6bdl
 

Recently uploaded (20)

Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service NashikLow Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
 
(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(ANIKA) Wanwadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Thane Escorts, (Pooja 09892124323), Thane Call Girls
Thane Escorts, (Pooja 09892124323), Thane Call GirlsThane Escorts, (Pooja 09892124323), Thane Call Girls
Thane Escorts, (Pooja 09892124323), Thane Call Girls
 
Call Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Sakshi Call 7001035870 Meet With Nagpur Escorts
 
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
Russian Call Girls In South Delhi Delhi 9711199012 💋✔💕😘 Independent Escorts D...
 
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service -  Bandra F...
WhatsApp 9892124323 ✓Call Girls In Khar ( Mumbai ) secure service - Bandra F...
 
《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...
《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...
《伯明翰城市大学毕业证成绩单购买》学历证书学位证书区别《复刻原版1:1伯明翰城市大学毕业证书|修改BCU成绩单PDF版》Q微信741003700《BCU学...
 
Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...
Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...
Lucknow 💋 Call Girls Adil Nagar | ₹,9500 Pay Cash 8923113531 Free Home Delive...
 
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
 
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
 
Low rate Call girls in Delhi Justdial | 9953330565
Low rate Call girls in Delhi Justdial | 9953330565Low rate Call girls in Delhi Justdial | 9953330565
Low rate Call girls in Delhi Justdial | 9953330565
 
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
VVIP Pune Call Girls Warje (7001035870) Pune Escorts Nearby with Complete Sat...
 
(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...
(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...
(MEGHA) Hinjewadi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune E...
 
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai GapedCall Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
 
young call girls in Sainik Farm 🔝 9953056974 🔝 Delhi escort Service
young call girls in Sainik Farm 🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Sainik Farm 🔝 9953056974 🔝 Delhi escort Service
young call girls in Sainik Farm 🔝 9953056974 🔝 Delhi escort Service
 
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
Slim Call Girls Service Badshah Nagar * 9548273370 Naughty Call Girls Service...
 
Alambagh Call Girl 9548273370 , Call Girls Service Lucknow
Alambagh Call Girl 9548273370 , Call Girls Service LucknowAlambagh Call Girl 9548273370 , Call Girls Service Lucknow
Alambagh Call Girl 9548273370 , Call Girls Service Lucknow
 
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
哪里办理美国宾夕法尼亚州立大学毕业证(本硕)psu成绩单原版一模一样
 
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
 

Office 365 - Attacks and References.pptx

  • 1. Office 365 Attacks Prepared by @JohnLaTwC v1.06
  • 3. Recon Compromise Persistence Expansion Actions on Intent AAD • Dump users and groups with Azure AD • Password Spray: MailSniper • Password Spray: CredKing O365 • Get Global Address List: MailSniper • Find Open Mailboxes: MailSniper • User account enumeration with ActiveSync • Harvest email addresses • Verify target is on O365, [DNS], [urls], [list], [getuserrealm] • Enumerate usernames, 2FA status via ActiveSync [o365userenum] • Role, group, admin enumeration with Get-MsolRoleMember [RainDance] • Bruteforce of Autodiscover: SensePost Ruler • Phishing for credentials • Phishing using OAuth app • 2FA MITM Phishing: evilginx2 [github] • Add Mail forwarding rule • Add Global Admin Account • Delegate Tenant Admin • MailSniper: Search Mailbox for credentials • Search for Content with eDiscovery • Account Takeover: Add- MailboxPermission • Pivot to On-Prem host: SensePost Ruler • Exchange Tasks for C2: MWR • Send Internal Email • MailSniper: Search Mailbox for content • Search for Content with eDiscovery • Exfil email using EWS APIs with PowerShell • Download documents and email • Financial/wire fraud End Point • Search host for Azure credentials: SharpCloud • Persistence through Outlook Home Page: SensePost Ruler • Persistence through custom Outlook Form • Create Hidden Mailbox Rule [tool] On-Prem Exchange • Portal Recon • Enumerate domain accounts using Skype4B, [LyncSmash] • Enumerate domain accounts: OWA & Exchange • Enumerate domain accounts: OWA: FindPeople • OWA version discovery • Password Spray using Invoke- PasswordSprayOWA, EWS, Atomizer • Bruteforce of Autodiscover: SensePost Ruler • PasswordSpray Lync/S4B [LyncSniper] • Exchange MTA • Search Mailboxes with eDiscovery searches (EXO, Teams, SPO, OD4B, Skype4B) • Delegation Prepared by @JohnLaTwC, May 2019, v1.06
  • 4. Public Tools and Techniques What follows is a list of attack techniques for O365, on-prem exchange/OWA, and some Office application layer client-and-cloud techniques
  • 6. Recon: Verifying Target is on O365 Microsoft Confidential https://www.trustedsec.com/2019/05/owning-o365-through-better-brute-forcing/
  • 7. Recon: Enumerate users with LyncSmash Microsoft Confidential https://github.com/nyxgeek/lyncsmash
  • 8. Recon: Find Open mailboxes • Mailboxes with relaxed permissions allow attackers to gain access • Attacker can search emails for credentials or victim information that facilitates targeting • Off-the-shelf tools exist to automate discovery https://www.blackhillsinfosec.com/abusing-exchange-mailbox-permissions-mailsniper/
  • 10. Recon: O365Recon via ActiveSync Microsoft Confidential https://grimhacker.com/2017/07/24/office365-activesync-username-enumeration/ https://www.trustedsec.com/2019/05/owning-o365- through-better-brute-forcing/
  • 11. Recon: Enumeration with RainDance https://github.com/True-Demon/raindance https://www.youtube.com/watch?v=VHPZ2YU351M
  • 12. Find users with Hunter.IO https://hunter.io/
  • 14. Phishing: 2FA bypass with OAuth Phishing Step 1: Attacker registers an app with AAD with permission to read user mailbox Step 2: Attacker crafts a mail with a link to authorize the app Note: the URL is entirely hosted at Microsoft making it trickier to know it is a phishing site Step 3: User tricked into consenting to app permission request NO USER CREDENTIALS REQUIRED. ATTACKER ACCESS PERSISTS AFTER CREDENTIAL RESET Gmail OAuth example: https://content.fireeye.com/m-trends/rpt-m-trends-2017 , Bypassing Multi-Factor Authentication for Corporate Email Theft
  • 15. Phishing: 2FA Bypass with MITM Evilginx2 https://breakdev.org/evilginx-2-next-generation-of-phishing-2fa-tokens/ Cookie is intercepted by Evilginx Victim receive the 2FA code
  • 16. Password Spray (on steroids)
  • 17. Password spraying and brute forcing of Lync and Skype for Business https://github.com/mdsecresearch/LyncSniper
  • 18. Password sprayer for Lync/Skype For Business and OWA https://github.com/byt3bl33d3r/SprayingToolkit
  • 20. Actions on Intent: Searching Inbox for Content
  • 21. Actions on Intent: Forwarding email https://content.fireeye.com/m-trends/rpt-m-trends-2019
  • 22. Actions on Intent: Exfiltrate e-mail https://twitter.com/matthewdunwoody/status/1091786455851167749 (the whole thread is a gem)
  • 24. Endpoint: Outlook Tasks for C2 https://labs.mwrinfosecurity.com/blog/tasking-office-365-for-cobalt-strike-c2/
  • 25. Command and Control: OneDrive & Graph API https://github.com/EmpireProject/Empire/blob/e37fb2eef8ff8f5a0a689f1589f424906fe13055/lib/listeners/onedrive.py https://gist.github.com/mr64bit/3fd8f321717c9a6423f7949d494b6cd9
  • 26. Creating malicious outlook rules https://github.com/mwrlabs/XRulez
  • 28. Reading List • https://www.blackhillsinfosec.com/red-teaming-microsoft-part-1-active-directory-leaks-via-azure/ • https://www.trustedsec.com/2017/08/attacking-self-hosted-skype-businessmicrosoft-lync-installations/ • CAS Authentication Timing Attack http://h.foofus.net/?p=784 • https://investors.fireeye.com/static-files/b7dcb16f-44a8-4cfb-927f-efeed397dd52 • https://www.slideshare.net/DouglasBienstock/shmoocon-2019-becs-and-beyond-investigating-and-defending-office-365 (youtube) • https://www.splunk.com/blog/2018/08/31/i-azure-you-this-will-be-useful.html • https://docs.microsoft.com/en-us/office365/securitycompliance/detailed-properties-in-the-office-365-audit-log • https://www.splunk.com/blog/2018/08/27/the-future-is-cloudy-with-a-chance-of-microsoft-office-365.html • https://www.splunk.com/blog/2017/07/27/splunking-microsoft-cloud-data-part-1.html • https://twitter.com/matthewdunwoody/status/1091786455851167749 • https://labs.mwrinfosecurity.com/blog/tasking-office-365-for-cobalt-strike-c2/ • DEF CON 25 - Gerald Steere, Sean Metcalf - Hacking the Cloud (youtube, slides) • Business Email Compromise on O365 (https://www.youtube.com/watch?v=JMFB4TodjkE) • https://blogs.technet.microsoft.com/cloudready/2018/10/14/email-phishing-protection-guide-part-14-prevent-brute-force-and-spray-attacks-in-office-365/ • Andrew Johnson / Sacha Faust - Cloud Post Exploitation Techniques @ Infiltrate 2017, https://vimeo.com/214855977 • https://www.mdsec.co.uk/2017/04/penetration-testing-skype-for-business-exploiting-the-missing-lync/ • When Clouds Collide (slides) • Proofpoint: Threat actors leverage credential dumps, phishing, and legacy email protocols to bypass MFA and breach cloud accounts worldwide • Bypassing inline filtering by security services [O365 user voice] • Hiding in Plain Sight: Using the Office 365 Activities API to Investigate Business Email Compromises by CrowdStrike • Using O365 Activities API for Incident Response • OFFICE365 ACTIVESYNC USERNAME ENUMERATION by GrimHacker • Extracting Sign-in data from O365 • eDiscovery Search https://docs.microsoft.com/en-us/Exchange/policy-and-compliance/ediscovery/create-searches?view=exchserver-2019 • https://adsecurity.org/wp-content/uploads/2019/04/2019-BSidesCharm-YouMovedtoOffice365NowWhat-Metcalf.pdf • 2FA MITM Phishing Toolkit Evilginx2 Tools • https://www.trustedsec.com/2019/05/owning-o365-through-better-brute-forcing/ • https://github.com/nyxgeek/lyncsmash [slides] • RainDance: O365 User Enumeration tool [tool] Researchers to follow: • https://twitter.com/fullmetalcache • https://twitter.com/doughsec/ • https://twitter.com/MadeleyJosh • https://twitter.com/matthewdunwoody/ • https://twitter.com/mwrlabs • https://twitter.com/meansec • https://twitter.com/domchell • https://twitter.com/vysecurity • https://twitter.com/dafthack • https://twitter.com/PyroTek3 • https://twitter.com/_staaldraad • https://twitter.com/byt3bl33d3r • https://twitter.com/nyxgeek • https://twitter.com/grimhacker • https://twitter.com/TRUExDEMON [RainDance]