Repository navigation
msInvader Access Methods
msInvader utilizes various methods of access to interact with Microsoft 365 and Azure, each serving distinct purposes and providing unique advantages for simulating attack scenarios.
The Graph API enables msInvader to access and interact with a wide array of Microsoft 365 services. It's used to simulate attacks that exploit data and functionalities available across Microsoft's cloud ecosystem.
Endpoint: https://graph.microsoft.com/
Scope: https://graph.microsoft.com/.default
Use Cases in msInvader:
- Email operations (reading, searching, sending)
- User and group enumeration
- Application and service principal management
- Directory role assignments
- OneDrive and SharePoint searches
EWS allows msInvader to specifically target and simulate attacks on Exchange Online services, focusing on email operations and data access. Using EWS, msInvader can simulate attackers exploiting this protocol to access and manipulate email-related data.
Endpoint: https://outlook.office365.com/EWS/Exchange.asmx
Scope: https://outlook.office365.com/.default
Use Cases in msInvader:
- Email reading and manipulation
- Inbox rule creation (forwarding and moving rules)
- Folder permission modifications
- Exchange impersonation scenarios
The Exchange Online PowerShell module, commonly abused by attackers, operates through a REST API located at https://outlook.office365.com/adminapi/beta/{tenant_id}/InvokeCommand. msInvader implements a Python client to interact with this REST API, simulating how adversaries might use PowerShell commands for malicious activities.
Endpoint: https://outlook.office365.com/adminapi/beta/{tenant_id}/InvokeCommand
Scope: https://outlook.office365.com/.default
Use Cases in msInvader:
- Email forwarding configuration
- Inbox rule creation via PowerShell commands
- Mailbox delegation and permission management
- Compliance search operations
- Transport rule (mail flow rule) creation
The Azure Resource Manager API provides comprehensive access to Azure infrastructure resources and management operations. msInvader leverages ARM APIs to simulate attacks targeting Azure subscriptions, resource groups, and various Azure services.
Endpoint: https://management.azure.com/
Scope: https://management.azure.com/.default
Use Cases in msInvader:
- Azure resource enumeration and discovery
- Role assignment enumeration and privilege escalation
- Key Vault discovery and access policy management
- Virtual machine management and extension deployment
- Subscription-level reconnaissance
The Azure Key Vault API enables direct interaction with Key Vault services for accessing secrets, keys, and certificates. msInvader uses this API to simulate attacks targeting sensitive data stored in Azure Key Vaults.
Endpoint: https://{keyvault-name}.vault.azure.net/
Scope: https://vault.azure.net/.default
Use Cases in msInvader:
- Secret, key, and certificate enumeration
- Direct access to Key Vault items and their values
- Key Vault item version management
- Credential harvesting from cloud storage
The Azure Compute API provides access to virtual machine management operations. msInvader utilizes specific compute endpoints for VM-based attack simulations.
Endpoint: https://management.azure.com/ (Compute resource provider)
Scope: https://management.azure.com/.default
Use Cases in msInvader:
- Remote command execution on Azure VMs
- VM extension management for persistence
- Password reset operations for lateral movement
- Custom script deployment and execution