Check Office 365 account emails against Have I Been Pwned breaches
Blog - Link
Blog Post - Link
Download - Link (copy text from the page and save)
Have I been Pwned is a great initiative run by Troy Hunt, a renowned security professional. The Have I been Pwned site helps you check whether your account details have been exposed in a data breach. The site also has an easy to use API that you can query from your own applications and scripts.
The following scripts will check your Office 365 accounts and their aliases against the Have I been Pwned API. If a breach is found to be associated with an email address in Office 365, the relevant details are exported to a CSV.