This PowerShell module helps manage Azure Sentinel Threat Intelligence indicators by providing bulk deletion capabilities.
- Azure Subscription with Sentinel enabled
- Contributor permissions on the Azure Sentinel workspace
The module will automatically install these dependencies if needed:
- Az.Accounts (2.2.3 or higher)
- Az.OperationalInsights (2.3.0 or higher)
- Clone the repository:
git clone https://github.com/saggiehaim/Sentinel-Bulk-TI-Delete.git- Import the module:
Import-Module .\AzSentinelTI\AzSentinelTI.psd1Remove-AzSentinelTIIndicators `
-TIsource "MyThreatFeed" `
-SubscriptionId "12345678-1234-1234-1234-123456789012" `
-LogAnalyticsResourceGroup "my-sentinel-rg" `
-LogAnalyticsWorkspaceName "my-sentinel-workspace"Remove-AzSentinelTIIndicators `
-TIsource "MyThreatFeed" `
-SubscriptionId "12345678-1234-1234-1234-123456789012" `
-LogAnalyticsResourceGroup "my-sentinel-rg" `
-LogAnalyticsWorkspaceName "my-sentinel-workspace" `
-DaysOld 30TIsource: The source of the Threat Intelligence indicators to deleteSubscriptionId: Azure Subscription ID containing the Log Analytics workspaceLogAnalyticsResourceGroup: Resource group name containing the Log Analytics workspaceLogAnalyticsWorkspaceName: Name of the Log Analytics workspaceDaysOld(Optional): Remove only indicators older than specified number of days
The module supports two authentication methods:
- Device Code authentication (interactive)
- Regular Azure PowerShell authentication
If not already authenticated, you will be prompted to choose your preferred method.
All operations are logged to a CSV file in the execution directory:
TIIndicatorDeletion_YYYYMMDD_HHMMSS.log
- The module uses Azure REST API to perform bulk operations
- Maximum of 100 indicators can be fetched per API call
- Bulk deletion is performed in chunks of 20 indicators
- Progress and results are displayed in real-time
- Publish the module to PSGallery
- Add support for multiple TI sources in single operation
- Test the Days Old parameter
- Implement parallel processing for faster bulk deletions
- Add support for indicator type filtering
- Add progress bar for bulk operations
- Implement retry logic for failed deletions
Saggie Haim
This project is licensed under the MIT License - see the LICENSE file for details