
A PowerShell module for acquisition of data from Microsoft 365 and Azure for Incident Response and Cyber Security purposes.
To get started with the Microsoft-Extractor-Suite, check out the Microsoft-Extractor-Suite docs.
Microsoft-Extractor-Suite is a fully-featured, actively-maintained, Powershell tool designed to streamline the process of collecting all necessary data and information from various sources within Microsoft.
The following Microsoft data sources are supported:
In addition to the log sources above the tool is also able to retrieve other relevant information:
Microsoft-Extractor-Suite was created by Joey Rentenaar and Korstiaan Stam and is maintained by the Invictus IR team.
To get started with the Microsoft-Extractor-Suite tool, make sure the requirements are met. If you do not have the Connect-ExchangeOnline, AZ module or/and connect-mggraph installed check the installation guide.
Install the Microsoft-Extractor-Suite toolkit:
Install-Module -Name Microsoft-Extractor-Suite
To import the Microsoft-Extractor-Suite:
Import-Module .\Microsoft-Extractor-Suite.psd1
You must sign-in to Microsoft 365 or Azure depending on your use case before running the functions. To sign in, use one of the cmdlets:
Connect-M365 or connect-exchangeonline
connect-mggraph
Connect-AzureAZ or Connect-AzAccount
Get-UAL - Collect all Unified Audit LogsGet-MailboxAuditLog - Collect Mailbox Audit LogsGet-AdminAuditLog - Collect Admin Audit LogsShow-MailboxRules - Shows mailbox rulesGet-MailboxRules - Export mailbox rulesGet-MailboxRulesGraph - Export mailbox rules via Graph APIGet-TransportRules - Export transport rulesShow-TransportRules - Shows transport rulesGet-MessageTraceLog - Collect message tracking logsGet-Email - Download specific or bullk emailsShow-Email - Show email contentGet-Attachment - Download email attachmentsGet-Sessions - Collect session information related to MailItemsaccessed eventsGet-MessageIDs - Extract message IDs from MailItemsaccessed eventsGet-GraphEntraSignInLogs - Collect sign-in logsGet-GraphEntraAuditLogs - Collect audit logsGet-ActivityLogs - Collect activity logsGet-DirectoryActivityLogs - Collect directory activity logsGet-OAuthPermissionsGraph - Collect OAuth application permissions via Graph APIGet-Users - Collect user informationGet-AdminUsers - Collect users with administrative privilegesGet-MFA - Collect MFA status for usersGet-RiskyUsers - Collect risky usersGet-RiskyDetections - Collect risky detection eventsGet-ConditionalAccessPolicies - Collect conditional access policiesGet-Devices - Collect device registration informationGet-MailboxAuditStatus - Collect the mailbox audit configurationsGet-MailboxPermissions - Collect delegated mailbox permissionsGet-Licenses - Collect all licenses in the tenant with retention times and premium license indicatorsGet-LicenseCompatibility - Checks the presence of E5, P2, P1, and E3 licenses and informs about functionality limitationsGet-EntraSecurityDefaults - Checks the status of Entra ID security defaultsGet-LicensesByUser - Collect license assignments for all users in the tenantGet-Groups - Collect all groups in the organization including details such as group ID and display nameGet-GroupMembers - Collect all members of each group and their relevant detailsGet-DynamicGroups - Collect all dynamic groups and their membership rulesGet-PIMAssignments - Generates a report of all Privileged Identity Management (PIM) role assignments in Entra ID.Get-AllRoleActivity - Retrieves all directory role memberships with last login information for users.Get-SecurityAlerts - Retrieves security alertsGet-SecureScore - Retrieves Microsoft Secure Score recommendations and current statusGet-AllEvidence - Collect all (almost) available evidence types automaticallyStart-MESTriage - Performs quick triage for specific users using customizable templatesConnect-M365 - Connect to Microsoft 365 servicesConnect-AzureAZ - Connect using Az moduleDisconnect-M365 - Disconnect from Microsoft 365 servicesDisconnect-AzureAZ - Disconnect from Az module sessionTo enhance your analysis, consider exploring the Microsoft-Analyzer-Suite developed by LETHAL FORENSICS. This suite offers a collection of PowerShell scripts specifically designed for analyzing Microsoft 365 and Microsoft Entra ID data, which can be extracted using the Microsoft-Extractor-Suite.