Sigma rule: Azure AD Health Service Agents Registry Keys Access

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-1b37b0f72ec5, updated 2022-10-09T00:00:00.000Z.

Rule

Title
Azure AD Health Service Agents Registry Keys Access
Status
test
Level
medium
Author
Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research), MSTIC
Date
2021-08-26
Modified
2022-10-09
File
rules/windows/builtin/security/win_security_aadhealth_svc_agent_regkey_access.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

This detection uses Windows security events to detect suspicious access attempts to the registry key values and sub-keys of Azure AD Health service agents (e.g AD FS).
Information from AD Health service agents can be used to potentially abuse some of the features provided by those services in the cloud (e.g. Federation).
This detection requires an access control entry (ACE) on the system access control list (SACL) of the following securable object: HKLM:\SOFTWARE\Microsoft\ADHealthAgent.
Make sure you set the SACL to propagate to its sub-keys.

Log source

product
windows
service
security

Detection

selection:
    EventID:
        - 4656
        - 4663
    ObjectType: 'Key'
    ObjectName: '\REGISTRY\MACHINE\SOFTWARE\Microsoft\ADHealthAgent'
filter:
    ProcessName|contains:
        - 'Microsoft.Identity.Health.Adfs.DiagnosticsAgent.exe'
        - 'Microsoft.Identity.Health.Adfs.InsightsService.exe'
        - 'Microsoft.Identity.Health.Adfs.MonitoringAgent.Startup.exe'
        - 'Microsoft.Identity.Health.Adfs.PshSurrogate.exe'
        - 'Microsoft.Identity.Health.Common.Clients.ResourceMonitor.exe'
condition: selection and not filter

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.discovery
  • attack.t1012

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/builtin/security/win_security_aadhealth_svc_agent_regkey_access.yml

Sources and licences

  • SigmaHQ

    "Azure AD Health Service Agents Registry Keys Access" by Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research), MSTIC (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/builtin/security/win_security_aadhealth_svc_agent_regkey_access.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Azure AD Health Service Agents Registry Keys Access",
entity page, dataset version ref-1b37b0f72ec5, updated 2022-10-09T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/1d2ab8ac-1a01-423b-9c39-001510eae8e8 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 1d2ab8ac-1a01-423b-9c39-001510eae8e8, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.