Detection rules › Elastic
Account Configured with Never-Expiring Password
Detects the creation and modification of an account with the "Don't Expire Password" option Enabled. Attackers can abuse this misconfiguration to persist in the domain and maintain long-term access using compromised accounts with this property.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Persistence | T1098 Account Manipulation |
| Privilege Escalation | T1098 Account Manipulation |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Security-Auditing | 4738 | A user account was changed. |
| Security-Auditing | 5136 | A directory service object was modified. |
Stages and Predicates
Stage 1: eql:any
((not (winlog.event_data.ObjectDN:"Service" or winlog.event_data.SubjectUserName:"svc") and winlog.event_data.AttributeLDAPDisplayName:"userAccountControl" and winlog.event_data.AttributeValue:(66048 or 66080) and winlog.event_data.OperationType:"%%14674") or (not user.id:"S-1-5-18" and winlog.event_data.NewUACList:"USER_DONT_EXPIRE_PASSWORD"))Indicators
Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.
| Field | Kind | Values |
|---|---|---|
user.id | ne |
|
winlog.event_data.AttributeLDAPDisplayName | eq |
|
winlog.event_data.AttributeValue | in |
|
winlog.event_data.NewUACList | eq |
|
winlog.event_data.OperationType | eq |
|
Neighbors
Broader alternatives (more inclusive than this rule)
These rules match a superset of what this rule catches. They cover the same events plus more. Use them if you want wider coverage and can absorb more false positives.
- Active Directory User Backdoors (drops 1 filter this rule applies)
Share event IDs (chain-detection candidates)
Rules that observe the same Windows event-ID pairs as this one. If you're authoring a multi-stage / sequence rule that spans these events, these are the existing detections that already cover one or both endpoints.