sequence by winlog.computer_name with maxspan=5m
[authentication where
/* event 4624 need to be logged */
event.action == "logged-in" and event.outcome == "success" and winlog.event_data.ElevatedToken == "%%1843" and process.pid == 0 and
/* authenticate locally using relayed kerberos Ticket */
winlog.event_data.AuthenticationPackageName :"Kerberos" and winlog.logon.type == "Network" and cidrmatch(source.ip, "127.0.0.0/8", "::1")] by winlog.event_data.TargetLogonId
[any where
/* event 4697 need to be logged */
event.action : "service-installed"] by winlog.event_data.SubjectLogonId
Install detection rules in Elastic Security
Detect Service Creation via Local Kerberos Authentication in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).