Directory Service Restore Mode(DSRM) Registry Value Tampering

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects changes to "DsrmAdminLogonBehavior" registry value. During a Domain Controller (DC) promotion, administrators create a Directory Services Restore Mode (DSRM) local administrator account with a password that rarely changes. The DSRM account is an “Administrator” account that logs in with the DSRM mode when the server is booting up to restore AD backups or recover the server from a failure. Attackers could abuse DSRM account to maintain their persistence and access to the organization's Active Directory. If the "DsrmAdminLogonBehavior" value is set to "0", the administrator account can only be used if the DC starts in DSRM. If the "DsrmAdminLogonBehavior" value is set to "1", the administrator account can only be used if the local AD DS service is stopped. If the "DsrmAdminLogonBehavior" value is set to "2", the administrator account can always be used.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Registry value modified" AND (OBJECTNAME endswith "\Control\Lsa\DsrmAdminLogonBehavior" OR (OBJECTNAME endswith "\Control\Lsa" AND OBJECTVALUENAME = "DsrmAdminLogonBehavior")) AND (INFORMATION != "DWORD (0x00000000)" AND (CHANGES != 0 OR NEWTYPE != "REG_DWORD")) select Action1.HOSTNAME,Action1.MESSAGE,Action1.OBJECTNAME,Action1.PROCESSNAME,Action1.PREVVAL,Action1.CHANGES

Detection

Execution Mode

realtime

Log Sources

Active Directory

Author

Nischal Khadgi