CyberArkEPM
| where EventSubType != 'AttackAttempt'
| where ActingProcessCommandLine has_any ('-NoP -sta -NonI -W Hidden -Enc', '-noP -sta -w 1 -enc', '-NoP -NonI -W Hidden -enc')
| extend AccountCustomEntity = ActorUsername
relevantTechniques:
- T1204
name: CyberArkEPM - Possible execution of Powershell Empire
requiredDataConnectors:
- dataTypes:
- CyberArkEPM
connectorId: CyberArkEPM
entityMappings:
- fieldMappings:
- identifier: Name
columnName: AccountCustomEntity
entityType: Account
triggerThreshold: 0
id: eddfd1fd-71df-4cc3-b050-287643bee398
tactics:
- Execution
version: 1.0.0
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CyberArkEPM/Analytic Rules/CyberArkEPMPossibleExecutionOfPowershellEmpire.yaml
queryPeriod: 10m
kind: Scheduled
queryFrequency: 10m
severity: High
description: |
'Detects possible execution of Powershell Empire.'
query: |
CyberArkEPM
| where EventSubType != 'AttackAttempt'
| where ActingProcessCommandLine has_any ('-NoP -sta -NonI -W Hidden -Enc', '-noP -sta -w 1 -enc', '-NoP -NonI -W Hidden -enc')
| extend AccountCustomEntity = ActorUsername
triggerOperator: gt
{
"$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/eddfd1fd-71df-4cc3-b050-287643bee398')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/eddfd1fd-71df-4cc3-b050-287643bee398')]",
"properties": {
"alertRuleTemplateName": "eddfd1fd-71df-4cc3-b050-287643bee398",
"customDetails": null,
"description": "'Detects possible execution of Powershell Empire.'\n",
"displayName": "CyberArkEPM - Possible execution of Powershell Empire",
"enabled": true,
"entityMappings": [
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "AccountCustomEntity",
"identifier": "Name"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/CyberArkEPM/Analytic Rules/CyberArkEPMPossibleExecutionOfPowershellEmpire.yaml",
"query": "CyberArkEPM\n| where EventSubType != 'AttackAttempt'\n| where ActingProcessCommandLine has_any ('-NoP -sta -NonI -W Hidden -Enc', '-noP -sta -w 1 -enc', '-NoP -NonI -W Hidden -enc')\n| extend AccountCustomEntity = ActorUsername\n",
"queryFrequency": "PT10M",
"queryPeriod": "PT10M",
"severity": "High",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"Execution"
],
"techniques": [
"T1204"
],
"templateVersion": "1.0.0",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}