-
Create an App Registration with a secret. Note down the following
- Application Id
- Application Tenant Id
- Application Secret Value
- Enterprise Object Id of the Application
-
Deploy the following template to Azure. Ensure you enter all the parameters. If using any existing resources, ensure they are all in the same resource group, location and their names are entered in the paramter field.
-
Once completed, get the following from the script output
- Data Collection Rule Immutable Id
- Data Collection Endpoint Uri
-
Update the following code with the relevant parameters already collection
$IngestAPT29DataToDataCollectionEndpointParams = @{
DataSetUri = "https://raw.githubusercontent.com/OTRF/detection-hackathon-apt29/master/datasets/day1/apt29_evals_day1_manual.zip"
DceURI = ""
DcrImmutableId = ""
appId = ""
TenantId = ""
appSecret = ""
}
$scriptUri = "https://raw.githubusercontent.com/TheAlistairRoss/Hunting-KQLAdv/main/Scripts/IngestAPT29DataToDataCollectionEndpoint.ps1"
$scriptName = "IngestAPT29DataToDataCollectionEndpoint.ps1"
Invoke-RestMethod -Uri $scriptUri | Out-File $scriptName
.\IngestAPT29DataToDataCollectionEndpoint.ps1 @IngestAPT29DataToDataCollectionEndpointParams -ShowProgressBar
- The script should run automatically. It will take apporximatly an hour.