invictus-ir/Microsoft-Extractor-Suite
À propos
Module PowerShell permettant de collecter des données depuis Microsoft 365 et Azure à des fins de réponse aux incidents et de cybersécurité.
Sécurité et confidentialitéProgression mesurée des étoiles
- in 24h
- +1
- in 7 days
- +3
- in 15 days
- +5
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalGetting started with the Microsoft-Extractor-Suite
To get started with the Microsoft-Extractor-Suite, check out the Microsoft-Extractor-Suite docs.
About Microsoft-Extractor-Suite
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:
- Unified Audit Log
- Admin Audit Log
- Mailbox Audit Log
- Mailbox Rules
- Transport Rules
- Message Trace Logs
- Entra ID Sign-In Logs
- Entra ID Audit Logs
- Azure Activity Logs
- Azure Directory Activity Logs
In addition to the log sources above the tool is also able to retrieve other relevant information:
- Registered OAuth applications in Entra ID
- The MFA status for all users
- The creation time and date of the last password change for all users
- The risky users
- The risky detections
- The conditional access policies
- Administrator directory roles and their users
- A specific or list of e-mail(s) or attachment(s)
- Delegated permissions for all mailboxes in Microsoft 365
- Information about all devices registered in Entra ID
- Audit status and settings for all mailboxes in Microsoft 365
- Functions designed to gather information about groups
- Functions designed to gather information about licenses
- Retrieve Role Activity Information
- Generates an overview of all Privileged Identity Management (PIM) role assignments
- Security alerts
- Microsoft Secure Score recommendations and control status
Microsoft-Extractor-Suite was created by Joey Rentenaar and Korstiaan Stam and is maintained by the Invictus IR team.
Usage
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
Available Functions
Unified Audit Log
Get-UAL- Collect all Unified Audit LogsGet-MailboxAuditLog- Collect Mailbox Audit LogsGet-AdminAuditLog- Collect Admin Audit Logs
Mailbox & Transport Rules
Show-MailboxRules- Shows mailbox rulesGet-MailboxRules- Export mailbox rulesGet-MailboxRulesGraph- Export mailbox rules via Graph APIGet-TransportRules- Export transport rulesShow-TransportRules- Shows transport rules
Mail and Message Tracking
Get-MessageTraceLog- Collect message tracking logsGet-Email- Download specific or bulk emailsShow-Email- Show email contentGet-Attachment- Download email attachmentsGet-Sessions- Collect session information related to MailItemsAccessed eventsGet-MessageIDs- Extract message IDs from MailItemsAccessed events
Sign-In & Audit Logging
Get-GraphEntraSignInLogs- Collect sign-in logsGet-GraphEntraAuditLogs- Collect audit logs
Activity Logging
Get-ActivityLogs- Collect activity logsGet-DirectoryActivityLogs- Collect directory activity logs
OAuth apps
Get-OAuthPermissionsGraph- Collect OAuth application permissions via Graph API
User Related
Get-Users- Collect user informationGet-AdminUsers- Collect users with administrative privilegesGet-MFA- Collect MFA status for usersGet-RiskyUsers- Collect risky usersGet-RiskyDetections- Collect risky detection events
Conditional Access Policies
Get-ConditionalAccessPolicies- Collect conditional access policies
Device Management
Get-Devices- Collect device registration information
Permissions and Audit Settings
Get-MailboxAuditStatus- Collect the mailbox audit configurationsGet-MailboxPermissions- Collect delegated mailbox permissions
License Management
Get-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 tenant
Group Management
Get-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 rules
Role Management
Get-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.
Security Management
Get-SecurityAlerts- Retrieves security alertsGet-SecureScore- Retrieves Microsoft Secure Score recommendations and current status
Automatically collect everything you want
Get-AllEvidence- Collect all (almost) available evidence types automaticallyStart-MESTriage- Performs quick triage for specific users using customizable templates
Authentication & Session Management
Connect-M365- Connect to Microsoft 365 servicesConnect-AzureAZ- Connect using Az moduleDisconnect-M365- Disconnect from Microsoft 365 servicesDisconnect-AzureAZ- Disconnect from Az module session
Related Projects
To 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.
Explorer des projets similaires
Chargement…