← All Threat Hunting ReportsThreat Hunting Exercise

This hunt uses a simulated Active Directory audit dataset (win_shadowcreds_2022-11-26T140000.json) capturing T1098.002: Account Manipulation: Additional Certificate/Key Credential, where an attacker with GenericWrite/WriteProperty rights on a target object writes an attacker-controlled public key to the msDS-KeyCredentialLink attribute, enabling passwordless authentication as that account via PKINIT (Kerberos certificate authentication).

Step 1: Hypothesis Formation

Hypothesis: A directory-object modification event shows the msDS-KeyCredentialLink attribute being written on a user or computer object by a principal that does not normally administer that object, followed shortly by a Kerberos PKINIT authentication (Event ID 4768 with certificate-based pre-authentication) for that same account, indicating shadow-credential injection was used to obtain silent, passwordless account takeover. Indicators:

Null Hypothesis: The attribute write is legitimate Windows Hello for Business (WHfB) key registration performed automatically by the account owner's device during normal enrollment. Invalidate by checking whether the modification aligns with a documented WHfB rollout/enrollment event and whether the modifying context is the user's own registered device via the expected enrollment service account.

Rationale: Shadow-credential attacks are stealthy because they never touch the account's password (no reset, no lockout, no password-change audit event), and they leverage legitimate PKINIT/WHfB infrastructure, so the only reliable detection signal is correlating unexpected msDS-KeyCredentialLink writes with the identity and prior baseline of both the modifying principal and the subsequent authentication method.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (4 shown) confirm the helpdesk-jsmith account - which holds unexpected GenericWrite rights on the service account due to a nested-group misconfiguration - wrote a new key credential to svc-backup-admin, followed nine minutes later by a certificate-based TGT request for that account from an unrelated host.

Timestamp (UTC)HostEventDetailIOC/Why Suspicious?
2022-11-26 14:01:03DC-CORP-02Windows Security (5136)AttributeLDAPDisplayName=msDS-KeyCredentialLink, ObjectDN=CN=svc-backup-admin,OU=ServiceAccounts, SubjectUserName=helpdesk-jsmithUnexpected-Modifier IOC: a help-desk-tier account, not a Tier-0 administrator or PKI-enrollment service, wrote a new key credential to a privileged backup service account.
2022-11-26 14:01:00WKS-HELPDESK-11(EDR process event)Process Whisker.exe-pattern command line: ... /target:svc-backup-admin /action:addTooling IOC: this command-line pattern matches the public Whisker/pyWhisker shadow-credential injection tool syntax, not a legitimate administrative or WHfB enrollment workflow.
2022-11-26 14:10:22DC-CORP-02Windows Security (4768)TargetUserName=svc-backup-admin, PreAuthType=16 (PKINIT), source 10.88.4.19 (not the account's normal service host)Certificate-Auth IOC: this is the account's first-ever certificate-based authentication, occurring nine minutes after the key-credential write, and from a host with no prior relationship to this service account.
--(ACL-baseline check)helpdesk-jsmith effective GenericWrite on svc-backup-admin traces to an unintended nested-group membership, not a documented delegationConfirms the write capability itself was an unpatched ACL misconfiguration being actively exploited, not sanctioned access.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - an over-privileged help-desk account exploited an unintended ACL misconfiguration to inject a shadow credential into a privileged backup service account, then authenticated as that account via PKINIT from an unrelated host nine minutes later!