Credential Dumping Tools - Service Installation
Id | 4ebbb5c2-8802-11ec-a8a3-0242ac120002 |
Rulename | Credential Dumping Tools - Service Installation |
Description | This query detects the installation of a Windows service that contains artifacts from credential dumping tools such as Mimikatz. Ref: https://blueteamblog.com/darkside-ransomware-operations-preventions-and-detections |
Severity | High |
Tactics | CredentialAccess |
Techniques | T1003.001 |
Required data connectors | SecurityEvents |
Kind | Scheduled |
Query frequency | 1h |
Query period | 1h |
Trigger threshold | 0 |
Trigger operator | gt |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Attacker Tools Threat Protection Essentials/Analytic Rules/CredentialDumpingServiceInstallation.yaml |
Version | 1.0.1 |
Arm template | 4ebbb5c2-8802-11ec-a8a3-0242ac120002.json |
// Enter a reference list of decoy users (usernames) "Case Sensitive"
let MaliciousServiceArtifacts = dynamic (["fgexec","cachedump","mimikatz","mimidrv","wceservice","pwdump"]);
Event
| where Source == "Service Control Manager" and EventID == 7045
| parse EventData with * 'ServiceName">' ServiceName "<" * 'ImagePath">' ImagePath "<" *
| where ServiceName has_any (MaliciousServiceArtifacts) or ImagePath has_any (MaliciousServiceArtifacts)
| parse EventData with * 'AccountName">' AccountName "<" *
|summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by EventID, Computer, ServiceName, ImagePath, AccountName
queryFrequency: 1h
entityMappings:
- entityType: Account
fieldMappings:
- columnName: AccountName
identifier: FullName
- entityType: File
fieldMappings:
- columnName: ImagePath
identifier: Name
- entityType: Host
fieldMappings:
- columnName: Computer
identifier: FullName
severity: High
triggerThreshold: 0
relevantTechniques:
- T1003.001
query: |
// Enter a reference list of decoy users (usernames) "Case Sensitive"
let MaliciousServiceArtifacts = dynamic (["fgexec","cachedump","mimikatz","mimidrv","wceservice","pwdump"]);
Event
| where Source == "Service Control Manager" and EventID == 7045
| parse EventData with * 'ServiceName">' ServiceName "<" * 'ImagePath">' ImagePath "<" *
| where ServiceName has_any (MaliciousServiceArtifacts) or ImagePath has_any (MaliciousServiceArtifacts)
| parse EventData with * 'AccountName">' AccountName "<" *
|summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by EventID, Computer, ServiceName, ImagePath, AccountName
id: 4ebbb5c2-8802-11ec-a8a3-0242ac120002
triggerOperator: gt
version: 1.0.1
requiredDataConnectors:
- connectorId: SecurityEvents
dataTypes:
- Event
description: |
'This query detects the installation of a Windows service that contains artifacts from credential dumping tools such as Mimikatz.
Ref: https://blueteamblog.com/darkside-ransomware-operations-preventions-and-detections'
queryPeriod: 1h
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Attacker Tools Threat Protection Essentials/Analytic Rules/CredentialDumpingServiceInstallation.yaml
status: Available
name: Credential Dumping Tools - Service Installation
tactics:
- CredentialAccess
kind: Scheduled
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/4ebbb5c2-8802-11ec-a8a3-0242ac120002')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/4ebbb5c2-8802-11ec-a8a3-0242ac120002')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01",
"properties": {
"displayName": "Credential Dumping Tools - Service Installation",
"description": "'This query detects the installation of a Windows service that contains artifacts from credential dumping tools such as Mimikatz.\nRef: https://blueteamblog.com/darkside-ransomware-operations-preventions-and-detections'\n",
"severity": "High",
"enabled": true,
"query": "// Enter a reference list of decoy users (usernames) \"Case Sensitive\"\nlet MaliciousServiceArtifacts = dynamic ([\"fgexec\",\"cachedump\",\"mimikatz\",\"mimidrv\",\"wceservice\",\"pwdump\"]);\nEvent\n| where Source == \"Service Control Manager\" and EventID == 7045\n| parse EventData with * 'ServiceName\">' ServiceName \"<\" * 'ImagePath\">' ImagePath \"<\" *\n| where ServiceName has_any (MaliciousServiceArtifacts) or ImagePath has_any (MaliciousServiceArtifacts)\n| parse EventData with * 'AccountName\">' AccountName \"<\" *\n|summarize StartTime = min(TimeGenerated), EndTime = max(TimeGenerated) by EventID, Computer, ServiceName, ImagePath, AccountName\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"CredentialAccess"
],
"techniques": [
"T1003.001"
],
"alertRuleTemplateName": "4ebbb5c2-8802-11ec-a8a3-0242ac120002",
"customDetails": null,
"entityMappings": [
{
"entityType": "Account",
"fieldMappings": [
{
"identifier": "FullName",
"columnName": "AccountName"
}
]
},
{
"entityType": "File",
"fieldMappings": [
{
"identifier": "Name",
"columnName": "ImagePath"
}
]
},
{
"entityType": "Host",
"fieldMappings": [
{
"identifier": "FullName",
"columnName": "Computer"
}
]
}
],
"status": "Available",
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Attacker Tools Threat Protection Essentials/Analytic Rules/CredentialDumpingServiceInstallation.yaml",
"templateVersion": "1.0.1"
}
}
]
}