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

CyberArkEPM - Unexpected executable location

Back
Idc1fcbbd7-74f8-4f32-8116-0a533ebd3878
RulenameCyberArkEPM - Unexpected executable location
DescriptionDetects program run from unexpected location.
SeverityMedium
TacticsExecution
DefenseEvasion
TechniquesT1204
T1036
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/CyberArkEPMUnexpectedExecutableLocation.yaml
Version1.0.0
Arm templatec1fcbbd7-74f8-4f32-8116-0a533ebd3878.json
Deploy To Azure
let susp_exe_folders = dynamic([@'\tmp\', @'\TEMP\', @'/tmp/', @'\Users\Public\', @'\$Recycle.bin', @'\Windows\Fonts\', @'$']);
CyberArkEPM
| where EventSubType != 'AttackAttempt'
| where ActingProcessName has_any (susp_exe_folders)
| project EventEndTime, EventMessage, ActorUsername, ActingProcessFileInternalName
| extend AccountCustomEntity = ActorUsername
kind: Scheduled
triggerThreshold: 0
relevantTechniques:
- T1204
- T1036
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CyberArkEPM/Analytic Rules/CyberArkEPMUnexpectedExecutableLocation.yaml
requiredDataConnectors:
- dataTypes:
  - CyberArkEPM
  connectorId: CyberArkEPM
queryPeriod: 30m
tactics:
- Execution
- DefenseEvasion
severity: Medium
triggerOperator: gt
description: |
    'Detects program run from unexpected location.'
query: |
  let susp_exe_folders = dynamic([@'\tmp\', @'\TEMP\', @'/tmp/', @'\Users\Public\', @'\$Recycle.bin', @'\Windows\Fonts\', @'$']);
  CyberArkEPM
  | where EventSubType != 'AttackAttempt'
  | where ActingProcessName has_any (susp_exe_folders)
  | project EventEndTime, EventMessage, ActorUsername, ActingProcessFileInternalName
  | extend AccountCustomEntity = ActorUsername  
name: CyberArkEPM - Unexpected executable location
version: 1.0.0
id: c1fcbbd7-74f8-4f32-8116-0a533ebd3878
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/c1fcbbd7-74f8-4f32-8116-0a533ebd3878')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/c1fcbbd7-74f8-4f32-8116-0a533ebd3878')]",
      "properties": {
        "alertRuleTemplateName": "c1fcbbd7-74f8-4f32-8116-0a533ebd3878",
        "customDetails": null,
        "description": "'Detects program run from unexpected location.'\n",
        "displayName": "CyberArkEPM - Unexpected executable location",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "AccountCustomEntity",
                "identifier": "Name"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CyberArkEPM/Analytic Rules/CyberArkEPMUnexpectedExecutableLocation.yaml",
        "query": "let susp_exe_folders = dynamic([@'\\tmp\\', @'\\TEMP\\', @'/tmp/', @'\\Users\\Public\\', @'\\$Recycle.bin', @'\\Windows\\Fonts\\', @'$']);\nCyberArkEPM\n| where EventSubType != 'AttackAttempt'\n| where ActingProcessName has_any (susp_exe_folders)\n| project EventEndTime, EventMessage, ActorUsername, ActingProcessFileInternalName\n| extend AccountCustomEntity = ActorUsername\n",
        "queryFrequency": "PT30M",
        "queryPeriod": "PT30M",
        "severity": "Medium",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "DefenseEvasion",
          "Execution"
        ],
        "techniques": [
          "T1036",
          "T1204"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}