Skip to content

Commit cbc4fa6

Browse files
committed
[Rule Tuning] Account Configured with Never-Expiring Password
1 parent 5155f47 commit cbc4fa6

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

rules/windows/persistence_dontexpirepasswd_account.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
creation_date = "2022/02/22"
33
integration = ["system", "windows"]
44
maturity = "production"
5-
updated_date = "2025/01/22"
5+
updated_date = "2025/02/12"
66
min_stack_version = "8.14.0"
77
min_stack_comments = "Breaking change at 8.14.0 for the Windows Integration."
88

@@ -80,10 +80,16 @@ type = "eql"
8080
query = '''
8181
any where host.os.type == "windows" and
8282
(
83-
(event.code == "4738" and winlog.event_data.NewUACList == "USER_DONT_EXPIRE_PASSWORD") or
83+
(
84+
event.code == "4738" and winlog.event_data.NewUACList == "USER_DONT_EXPIRE_PASSWORD" and not user.id == "S-1-5-18"
85+
) or
8486
(
8587
event.code == "5136" and winlog.event_data.AttributeLDAPDisplayName == "userAccountControl" and
86-
winlog.event_data.AttributeValue in ("66048", "66080")
88+
winlog.event_data.AttributeValue in ("66048", "66080") and winlog.event_data.OperationType == "%%14674" and
89+
not (
90+
winlog.event_data.SubjectUserName : "*svc*" or
91+
winlog.event_data.ObjectDN : "*Service*"
92+
)
8793
)
8894
)
8995
'''

0 commit comments

Comments
 (0)