Sensitive Privilege SeEnableDelegationPrivilege assigned to a User

edit

Sensitive Privilege SeEnableDelegationPrivilege assigned to a User

edit

Identifies the assignment of the SeEnableDelegationPrivilege sensitive "user right" to a user. The SeEnableDelegationPrivilege "user right" enables computer and user accounts to be trusted for delegation. Attackers can abuse this right to compromise Active Directory accounts and elevate their privileges.

Rule type: query

Rule indices:

  • winlogbeat-*
  • logs-system.*

Severity: high

Risk score: 73

Runs every: 5m

Searches indices from: now-9m (Date Math format, see also Additional look-back time)

Maximum alerts per execution: 100

References:

Tags:

  • Elastic
  • Host
  • Windows
  • Threat Detection
  • Credential Access
  • Active Directory

Version: 2

Rule authors:

  • Elastic

Rule license: Elastic License v2

Investigation guide

edit
## Triage and analysis

### Investigating Sensitive Privilege SeEnableDelegationPrivilege assigned to a User

Kerberos delegation is an Active Directory feature that allows user and computer accounts to impersonate other accounts,
act on their behalf, and use their privileges. Delegation (constrained and unconstrained) can be configured
for user and computer objects.

Enabling unconstrained delegation for a computer causes the computer to store the ticket-granting ticket
(TGT) in memory at any time an account connects to the computer, so it can be used by the computer for impersonation
when needed. Risk is heightened if an attacker compromises computers with unconstrained delegation enabled, as they
could extract TGTs from memory and then replay them to move laterally on the domain. If the attacker coerces a privileged
user to connect to the server, or if the user does so routinely, the account will be compromised and the attacker will
be able to pass-the-ticket to privileged assets.

SeEnableDelegationPrivilege is a user right that is controlled within the Local Security Policy of a domain controller
and is managed through Group Policy. This setting is named **Enable computer and user accounts to be trusted for
delegation**.

It is critical to control the assignment of this privilege. A user with this privilege and write access to a computer
can control delegation settings, perform the attacks described above, and harvest TGTs from any user that connects to
the system.

#### Possible investigation steps

- Investigate how the privilege was assigned to the user and who assigned it.
- Investigate other potentially malicious activity that was performed by the user that assigned the privileges using the
`user.id` and `winlog.activity_id` fields as a filter during the past 48 hours.
- Investigate other alerts associated with the involved accounts during the past 48 hours.

### False positive analysis

- The SeEnableDelegationPrivilege privilege should not be assigned to users. If this rule is triggered in your
environment legitimately, the security team should notify the administrators about the risks of using it.

### Related rules

- KRBTGT Delegation Backdoor - e052c845-48d0-4f46-8a13-7d0aba05df82

### Response and remediation

- Immediate response should be taken to validate, investigate, and potentially contain the activity to prevent further
post-compromise behavior.

## Config

The 'Audit Authorization Policy Change' logging policy must be configured for (Success, Failure).
Steps to implement the logging policy with Advanced Audit Configuration:

```
Computer Configuration >
Windows Settings >
Security Settings >
Advanced Audit Policy Configuration >
Audit Policies >
Policy Change >
Audit Authorization Policy Change (Success,Failure)
```

Rule query

edit
event.action: "Authorization Policy Change" and event.code:4704 and winlog.event_data.PrivilegeList:"SeEnableDelegationPrivilege"

Framework: MITRE ATT&CKTM