Revoke-AzureADUserAllRefreshToken -ObjectId <UserGuid>
- Invalidates the refresh tokens issued to applications for a user
Revoke-SPOUserSession -User <UserSpn>
- Invalidates a user's O365 sessions across all their devices
Invalidates active O365 session and OAuth session refresh tokens
https://docs.microsoft.com/en-us/powershell/module/azuread/revoke-azureaduserallrefreshtoken
https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/Revoke-SPOUserSession
Designed to ease the burden on O365 administrators who are performing forensic analysis in their M365 tenant. It accelerates the gathering of data from multiple sources in the service.
Installation:
Install-Module -Name Hawk
Import-Module -Name Hawk
Getting Started:
Start-HawkTenantInvestigation
Start-HawkUserInvestigation -UserPrincipalName <UPN>
https://www.powershellgallery.com/packages/HAWK
https://github.com/Canthv0/hawk
Uses Python 3 and the AAD reporting API to retrieve Sign-In and Audit Logs, then store them in an S3 bucket
https://journeyofthegeek.com/2019/01/30/capturing-and-visualizing-office-365-security-logs-part-1/
https://github.com/mattfeltonma/lambda-azureadlogs
https://www.us-cert.gov/ncas/analysis-reports/AR19-133A