Tooluck logoTooluck
SKILL.md

abusing-shadow-credentials-for-privesc

Agent skill frommukul975/Anthropic-Cybersecurity-Skills

Take over Active Directory accounts by writing attacker-controlled public keys to msDS-KeyCredentialLink (Shadow Credentials) with pyWhisker, Whisker, or Certipy, then authenticate via PKINIT to recover the target's NT hash without a password reset. Use when BloodHound shows GenericWrite/GenericAll/AddKeyCredentialLink over a target, as a stealthier alternative to ForceChangePassword, during authorized red-team engagements.

How to install abusing-shadow-credentials-for-privesc

install abusing-shadow-credentials-for-privesc
# install the Anthropic-Cybersecurity-Skills pack with the skills CLI
npx skills add mukul975/Anthropic-Cybersecurity-Skills

# or add only this skill to Claude Code: copy the folder

skills/abusing-shadow-credentials-for-privesc/

# into

~/.claude/skills/abusing-shadow-credentials-for-privesc/ (all projects)

.claude/skills/abusing-shadow-credentials-for-privesc/ (one project)

skills/abusing-shadow-credentials-for-privesc/SKILL.md

Apache-2.0Full file
1# Abusing Shadow Credentials for Privilege Escalation
2
3> **Legal Notice:** This skill is for authorized security testing and educational purposes only. Shadow Credentials grant full takeover of the targeted account. Use only against systems you own or are explicitly authorized in writing to test. Unauthorized access is a crime.
4
5## Overview
6
7The **Shadow Credentials** technique abuses the `msDS-KeyCredentialLink` attribute of Active Directory user and computer objects. This attribute stores raw public keys ("Key Credentials") used by Windows Hello for Business and Azure AD device registration for passwordless certificate-based logon via PKINIT (Public Key Cryptography for Initial Authentication in Kerberos). If an attacker has write permission over a target object's `msDS-KeyCredentialLink` — typically granted by `GenericWrite`, `GenericAll`, `WriteProperty`, or `AddKeyCredentialLink` ACEs surfaced in BloodHound — they can append their own attacker-generated public key. They then request a TGT for the target via PKINIT using the matching private key and recover the target's NT hash, achieving complete account takeover **without resetting the password**, which is far stealthier than a forced password reset.
8…

Excerpt shown under the repository's Apache-2.0 license.

More skills in Anthropic-Cybersecurity-Skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates