DeviceProcessEvents
| where InitiatingProcessFileName =~ "wsreset.exe"
| where ProcessIntegrityLevel == "High"
version: 1.0.0
status: Available
queryFrequency: 1h
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
dataTypes:
- DeviceProcessEvents
entityMappings:
- fieldMappings:
- columnName: DeviceName
identifier: FullName
entityType: Host
- fieldMappings:
- columnName: AccountSid
identifier: Sid
- columnName: AccountName
identifier: Name
- columnName: AccountDomain
identifier: NTDomain
entityType: Account
- fieldMappings:
- columnName: ProcessCommandLine
identifier: CommandLine
entityType: Process
kind: Scheduled
queryPeriod: 1h
severity: Medium
query: |
DeviceProcessEvents
| where InitiatingProcessFileName =~ "wsreset.exe"
| where ProcessIntegrityLevel == "High"
triggerOperator: gt
id: 8b8fbf9c-35d4-474b-8151-a40173521293
description: |
This query identifies modification a specific registry key and then launching wsreset.exe that resets the Windows Store settings.
triggerThreshold: 0
name: Detecting UAC bypass - modify Windows Store settings
relevantTechniques:
- T1490
tactics:
- Impact
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/FalconFriday/Analytic Rules/UACBypass-2-modify-ms-store.yaml
{
"$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/8b8fbf9c-35d4-474b-8151-a40173521293')]",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/8b8fbf9c-35d4-474b-8151-a40173521293')]",
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules",
"kind": "Scheduled",
"apiVersion": "2022-11-01",
"properties": {
"displayName": "Detecting UAC bypass - modify Windows Store settings",
"description": "This query identifies modification a specific registry key and then launching wsreset.exe that resets the Windows Store settings.\n",
"severity": "Medium",
"enabled": true,
"query": "DeviceProcessEvents\n| where InitiatingProcessFileName =~ \"wsreset.exe\"\n| where ProcessIntegrityLevel == \"High\"\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0,
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"Impact"
],
"techniques": [
"T1490"
],
"alertRuleTemplateName": "8b8fbf9c-35d4-474b-8151-a40173521293",
"customDetails": null,
"entityMappings": [
{
"entityType": "Host",
"fieldMappings": [
{
"identifier": "FullName",
"columnName": "DeviceName"
}
]
},
{
"entityType": "Account",
"fieldMappings": [
{
"identifier": "Sid",
"columnName": "AccountSid"
},
{
"identifier": "Name",
"columnName": "AccountName"
},
{
"identifier": "NTDomain",
"columnName": "AccountDomain"
}
]
},
{
"entityType": "Process",
"fieldMappings": [
{
"identifier": "CommandLine",
"columnName": "ProcessCommandLine"
}
]
}
],
"status": "Available",
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/FalconFriday/Analytic Rules/UACBypass-2-modify-ms-store.yaml",
"templateVersion": "1.0.0"
}
}
]
}