Extract DPAPI-protected secrets such as credentials and browser data offline and online.
中文简介正在准备中。当前显示原文说明。
Audit, detect, and remediate Shadow Credentials misconfigurations on msDS-KeyCredentialLink in Active Directory. Focuses on access-controls, monitoring Event ID 5136, and credential-management hygiene.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Security Advisory: This guide provides defense and audit procedures for identifying, monitoring, and remediating overly permissive write access to
msDS-KeyCredentialLink(Shadow Credentials) in Active Directory environments.
The Shadow Credentials attack vector stems from misconfigured Active Directory Access Control Lists (ACLs) where non-administrative principals possess write permissions over the msDS-KeyCredentialLink attribute of user or computer accounts. This attribute normally stores raw public keys ("Key Credentials") used by Windows Hello for Business and Microsoft Entra ID device registration for passwordless PKINIT Kerberos authentication.
When access permissions are too permissive — such as unconstrained GenericWrite, GenericAll, WriteProperty, or AddKeyCredentialLink Access Control Entries (ACEs) — an unauthorized principal could append a key credential to an account, bypass password controls, and obtain Kerberos tickets.
Defending against this vulnerability requires establishing strict access-controls, enabling granular directory service auditing, and maintaining proactive credential-management hygiene across all directory objects.
# Python ldap3 or pyWhisker for attribute enumeration
python3 -m pip install ldap3
# Certipy for certificate template and key credential auditing
pipx install certipy-ad
msDS-KeyCredentialLink.| Framework | ID | Category / Technique | Defense Application |
|---|---|---|---|
| MITRE ATT&CK | T1098.005 | Account Manipulation: Device Registration | Detect and block unauthorized modification of msDS-KeyCredentialLink |
| NIST CSF | PR.AC-01 | Access Control Management | Restrict write permissions over identity attributes to authorized registration agents |
| NIST CSF | DE.CM-01 | Network / Directory Monitoring | Monitor directory changes for anomalous key additions |
Identify which non-administrative principals have write access to sensitive user and computer objects. Query AD for dangerous ACEs (GenericAll, GenericWrite, WriteProperty targeting msDS-KeyCredentialLink schema GUID {5b47d60f-6090-40b2-9f37-2a4de45f306e}).
# Audit existing Key Credentials on target object without modifications
python3 pywhisker.py -d "corp.local" -u "auditor" -p "AuditPass!" \
--target "target-account" --action "list" --use-ldaps
Enable Advanced Audit Policy Configuration on all Domain Controllers to log attribute-level changes:
Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Advanced Audit Policy Configuration -> Audit Policies -> DS Access -> Audit Directory Service Changes (Set to Success and Failure).Configure the SACL on high-value Organizational Units (OUs) to generate Event ID 5136:
msDS-KeyCredentialLinkValue Added (indicates new credential registration)Set up SIEM alerts for Event ID 5136 where SubjectUserName is not a designated Azure AD Connect sync account or authorized device enrollment service principal.
If an unknown or stale Key Credential is discovered during the audit, remove it immediately to prevent unauthorized authentication:
# Remove specific unauthorized Key Credential by Device ID
python3 pywhisker.py -d "corp.local" -u "ad-admin" -p "AdminPass!" \
--target "target-account" --action "remove" --device-id "<DEVICE-ID>" --use-ldaps
# Alternatively, clear all non-compliant credentials using Certipy
certipy shadow clear -u 'ad-admin@corp.local' -p 'AdminPass!' \
-dc-ip 10.0.0.100 -account 'target-account'
Strip any non-system write permissions targeting msDS-KeyCredentialLink:
GenericAll, GenericWrite, and Write msDS-KeyCredentialLink permissions from all non-administrative users and groups.Protected Users security group, which restricts delegation and forces Kerberos hardening.title: Unauthorized msDS-KeyCredentialLink Modification (Shadow Credentials)
id: 5b47d60f-6090-40b2-9f37-2a4de45f306e
status: stable
description: Detects modification of the msDS-KeyCredentialLink attribute by non-whitelisted principals.
logsource:
product: windows
service: security
detection:
selection:
EventID: 5136
AttributeLDAPDisplayName: 'msDS-KeyCredentialLink'
OperationType: 'Value Added'
filter_sync_accounts:
SubjectUserName|endswith:
- '$'
- 'MSOL_*'
- 'AAD_*'
condition: selection and not filter_sync_accounts
level: high
msDS-KeyCredentialLink active and alerting.WriteProperty and GenericWrite ACEs removed.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Extract DPAPI-protected secrets such as credentials and browser data offline and online.
中文简介正在准备中。当前显示原文说明。
Prepare a defense-contractor environment for CMMC Level 2 certification: scope CUI and FCI, implement the 110 NIST SP 800-171 Rev 2 security requirements across 14 families, compute the SPRS score with the DoD Assessment Methodology, manage a compliant POA&M, and ready the organization for a C3PAO assessment. Use when an organization handles Controlled Unclassified Information (CUI) under a DoD contract, when a contract carries DFARS clause 252.204-7012/7019/7020/7021, when preparing for or responding to a CMMC assessment, when computing or improving an SPRS score, when building a System Security Plan or POA&M for 800-171, or when scoping which systems are in the CUI boundary. Keywords: CMMC, CMMC Level 2, NIST 800-171, SP 800-171 Rev 2, CUI, FCI, SPRS, DFARS 7012, C3PAO, POA&M, System Security Plan, DoD Assessment Methodology, 110 controls, defense industrial base, DIB, FedRAMP equivalency.
中文简介正在准备中。当前显示原文说明。
Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through hash verification.
中文简介正在准备中。当前显示原文说明。
Detect dangerous ACL misconfigurations in Active Directory using ldap3 to identify GenericAll, WriteDACL, and WriteOwner abuse paths
中文简介正在准备中。当前显示原文说明。
Perform static analysis of Android APK malware samples using apktool for decompilation, jadx for Java source recovery, and androguard for permission analysis, manifest inspection, and suspicious API call detection.
中文简介正在准备中。当前显示原文说明。
Parses API Gateway access logs (AWS API Gateway, Kong, Nginx) to detect BOLA/IDOR attacks, rate limit bypass, credential scanning, and injection attempts. Uses pandas for statistical analysis of request patterns and anomaly detection. Use when investigating API abuse or building API-specific threat detection rules.
中文简介正在准备中。当前显示原文说明。