CyberArkEPM
| where EventSubType != 'AttackAttempt'
| where ActingProcessName endswith @'msbuild.exe'
| where ActingProcessCommandLine has_any ('xml', 'csproj', 'vcxproj', 'vbproj', 'fsproj')
| extend AccountCustomEntity = ActorUsername
queryPeriod: 30m
version: 1.0.0
tactics:
- DefenseEvasion
queryFrequency: 30m
id: a11bf869-458e-49fd-be03-58021b14be15
triggerOperator: gt
requiredDataConnectors:
- dataTypes:
- CyberArkEPM
connectorId: CyberArkEPM
severity: Medium
entityMappings:
- entityType: Account
fieldMappings:
- columnName: AccountCustomEntity
identifier: Name
triggerThreshold: 0
relevantTechniques:
- T1127
query: |
CyberArkEPM
| where EventSubType != 'AttackAttempt'
| where ActingProcessName endswith @'msbuild.exe'
| where ActingProcessCommandLine has_any ('xml', 'csproj', 'vcxproj', 'vbproj', 'fsproj')
| extend AccountCustomEntity = ActorUsername
kind: Scheduled
name: CyberArkEPM - MSBuild usage as LOLBin
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CyberArkEPM/Analytic Rules/CyberArkEPMMSBuildLOLBin.yaml
description: |
'Detects usage of msbuild tool as LOLBin.'
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"apiVersion": "2024-01-01-preview",
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/a11bf869-458e-49fd-be03-58021b14be15')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/a11bf869-458e-49fd-be03-58021b14be15')]",
"properties": {
"alertRuleTemplateName": "a11bf869-458e-49fd-be03-58021b14be15",
"customDetails": null,
"description": "'Detects usage of msbuild tool as LOLBin.'\n",
"displayName": "CyberArkEPM - MSBuild usage as LOLBin",
"enabled": true,
"entityMappings": [
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "AccountCustomEntity",
"identifier": "Name"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CyberArkEPM/Analytic Rules/CyberArkEPMMSBuildLOLBin.yaml",
"query": "CyberArkEPM\n| where EventSubType != 'AttackAttempt'\n| where ActingProcessName endswith @'msbuild.exe'\n| where ActingProcessCommandLine has_any ('xml', 'csproj', 'vcxproj', 'vbproj', 'fsproj')\n| extend AccountCustomEntity = ActorUsername\n",
"queryFrequency": "PT30M",
"queryPeriod": "PT30M",
"severity": "Medium",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"DefenseEvasion"
],
"techniques": [
"T1127"
],
"templateVersion": "1.0.0",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}