Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

CyberArkEPM - MSBuild usage as LOLBin

Back
Ida11bf869-458e-49fd-be03-58021b14be15
RulenameCyberArkEPM - MSBuild usage as LOLBin
DescriptionDetects usage of msbuild tool as LOLBin.
SeverityMedium
TacticsDefenseEvasion
TechniquesT1127
Required data connectorsCyberArkEPM
KindScheduled
Query frequency30m
Query period30m
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CyberArkEPM/Analytic Rules/CyberArkEPMMSBuildLOLBin.yaml
Version1.0.0
Arm templatea11bf869-458e-49fd-be03-58021b14be15.json
Deploy To Azure
CyberArkEPM
| where EventSubType != 'AttackAttempt'
| where ActingProcessName endswith @'msbuild.exe'
| where ActingProcessCommandLine has_any ('xml', 'csproj', 'vcxproj', 'vbproj', 'fsproj')
| extend AccountCustomEntity = ActorUsername
kind: Scheduled
triggerThreshold: 0
relevantTechniques:
- T1127
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CyberArkEPM/Analytic Rules/CyberArkEPMMSBuildLOLBin.yaml
requiredDataConnectors:
- dataTypes:
  - CyberArkEPM
  connectorId: CyberArkEPM
queryPeriod: 30m
tactics:
- DefenseEvasion
severity: Medium
triggerOperator: gt
description: |
    'Detects usage of msbuild tool as LOLBin.'
query: |
  CyberArkEPM
  | where EventSubType != 'AttackAttempt'
  | where ActingProcessName endswith @'msbuild.exe'
  | where ActingProcessCommandLine has_any ('xml', 'csproj', 'vcxproj', 'vbproj', 'fsproj')
  | extend AccountCustomEntity = ActorUsername  
name: CyberArkEPM - MSBuild usage as LOLBin
version: 1.0.0
id: a11bf869-458e-49fd-be03-58021b14be15
queryFrequency: 30m
entityMappings:
- entityType: Account
  fieldMappings:
  - columnName: AccountCustomEntity
    identifier: Name
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2023-02-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",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "DefenseEvasion"
        ],
        "techniques": [
          "T1127"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}