← Back to SOC feed Coverage →

Non-local logons with -500 account

kql MEDIUM Azure-Sentinel
DeviceLogonEventsIdentityLogonEvents
backdoorhuntingmicrosoftofficial
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Azure-Sentinel →
Retrieved: 2026-05-23T11:00:00Z · Confidence: medium

Hunt Hypothesis

Non-local logons using the -500 account indicate potential unauthorized access or lateral movement by an adversary exploiting a privileged account. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify and mitigate potential compromise of critical system resources.

KQL Query

DeviceLogonEvents
| where AccountSid endswith '-500' and parse_json(AdditionalFields).IsLocalLogon != true
| join kind=leftanti IdentityLogonEvents on AccountSid // Remove the domain's built-in admin acccount

Analytic Rule Definition

id: 435fead8-a25e-44be-9508-1985f8d724e6
name: Non-local logons with -500 account
description: |
  Non-local logons with the built-in administrator (-500) account.
requiredDataConnectors:
- connectorId: MicrosoftThreatProtection
  dataTypes:
  - DeviceLogonEvents
  - IdentityLogonEvents
query: |
  DeviceLogonEvents
  | where AccountSid endswith '-500' and parse_json(AdditionalFields).IsLocalLogon != true
  | join kind=leftanti IdentityLogonEvents on AccountSid // Remove the domain's built-in admin acccount

Required Data Sources

Sentinel TableNotes
DeviceLogonEventsEnsure this data connector is enabled
IdentityLogonEventsEnsure this data connector is enabled

References

False Positive Guidance

Original source: https://github.com/Azure/Azure-Sentinel/blob/main/Hunting Queries/Microsoft 365 Defender/Lateral Movement/Non-local logons with -500 account.yaml