Title:
Possible Shadow Credentials Added
Status:
test
Description:Detects possible addition of shadow credentials to an active directory object.
References:
-https://www.elastic.co/guide/en/security/8.4/potential-shadow-credentials-added-to-ad-object.html
-https://cyberstoph.org/posts/2022/03/detecting-shadow-credentials/
-https://twitter.com/SBousseaden/status/1581300963650187264?
Author: Nasreddine Bencherchali (Nextron Systems), Elastic (idea)
Date: 2022-10-17
modified:None
Tags:
- -'attack.persistence'
- -'attack.credential-access'
- -'attack.defense-impairment'
- -'attack.t1556'
Logsource:
- product: windows
- service: security
- definition: The "Audit Directory Service Changes" logging policy must be configured in order to receive events. Audit events are generated only for objects with configured system access control lists (SACLs). Audit events are generated only for objects with configured system access control lists (SACLs) and only when accessed in a manner that matches their SACL settings. This policy covers the following events ids - 5136, 5137, 5138, 5139, 5141. Note that the default policy does not cover User objects. For that a custom AuditRule need to be setup (See https://github.com/OTRF/Set-AuditRule)
Detection:
selection:
EventID:
'5136'
AttributeLDAPDisplayName:
'msDS-KeyCredentialLink'
condition:
selection
Falsepositives:
-Modifications in the msDS-KeyCredentialLink attribute can be done legitimately by the Azure AD Connect synchronization account or the ADFS service account. These accounts can be added as Exceptions. (From elastic FP section)
Level:
high