Skip to content

Add Shadow Credentials module - #1368

Merged
NeffIsBack merged 13 commits into
mainfrom
neff-add-shadow-creds
Sep 2, 2026
Merged

NeffIsBack merged 13 commits into
mainfrom
neff-add-shadow-creds

Conversation

@NeffIsBack

@NeffIsBack NeffIsBack commented Aug 16, 2026 •

Copy link
Copy Markdown
Member

Description

Adds shadow credentials module, heavily inspired by pyWhisker: https://github.com/ShutdownRepo/pywhisker
Similar to pyWhisker you can:

  • list
  • add
  • remove
  • backup
  • revert
    keyCredentials of computers.

Related PRs: #936, #1234

AI disclosure: I got infected and started to use codex as well. Turns out to be quite decent when adding guard rails and properly review the output. Model that was used: gpt-5.6-sol high. Reviewed the module (and with that tested the stuff obviously).

Type of change

Insert an "x" inside the brackets for relevant items (do not delete options)

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Deprecation of feature or functionality
  • This change requires a documentation update
  • This requires a third party update (such as Impacket, Dploot, lsassy, etc)
  • This PR was created with the assistance of AI (list what type of assistance, tool(s)/model(s) in the description)

Setup guide for the review

Execute the module, e.g.:

poetry run nxc ldap 192.168.56.11 -u eddard.stark -p FightP3aceAndHonor! -M shadow-creds -o TARGET=testcomputer$ ACTION=add
poetry run nxc ldap 192.168.56.11 -u eddard.stark -p FightP3aceAndHonor! -M shadow-creds -o TARGET=testcomputer$ ACTION=list
...

Screenshots (if appropriate):

Add/list/remove:
image

Get the cred info:
image

Backup&Revert:
image

Checklist:

@NeffIsBack NeffIsBack added the enhancement New feature or request label Aug 16, 2026
@NeffIsBack NeffIsBack mentioned this pull request Aug 16, 2026
9 of 14 tasks
Comment thread nxc/modules/shadow-creds.py Resolved
Comment thread nxc/modules/shadow-creds.py Resolved
Comment thread nxc/modules/shadow-creds.py Resolved
Comment thread nxc/modules/shadow-creds.py Resolved
Comment thread nxc/modules/shadow-creds.py Resolved
@azoxlpf

azoxlpf commented Aug 22, 2026 •

Copy link
Copy Markdown
Collaborator

LGTM :

image

Info :

image

Comment thread nxc/modules/shadow-creds.py Dismissed
Comment thread nxc/modules/shadow-creds.py Fixed
@mpgn

mpgn commented Aug 30, 2026 •

Copy link
Copy Markdown
Collaborator

All good for me, very good adition to nxc but i even think it could have go core feature like this as the code will pretty much never move:

nxc ldap 10.10.10.10 -u user -p pass --shadow-credential --shadow-add target / --shadow-info target / --shadow-delete devide_id / --shadow-list

What do you think @NeffIsBack ?

otherwise i've tested with success the attack :)
image

image

@NeffIsBack

Copy link
Copy Markdown
Member Author

All good for me, very good adition to nxc but i even think it could have go core feature like this as the code will pretty much never move:

nxc ldap 10.10.10.10 -u user -p pass --shadow-credential --shadow-add target / --shadow-info target / --shadow-delete devide_id / --shadow-list

What do you think @NeffIsBack ?

To be honest I would like to keep it as a module since we have so many different options. Imo it is just a little bit more intuitive as a module and otherwise the options would drown in the help page.

@mpgn

mpgn commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

some people would have killed for having there own section in the help ^^

@NeffIsBack
NeffIsBack merged commit ee0e488 into main Sep 2, 2026
11 checks passed
@NeffIsBack
NeffIsBack deleted the neff-add-shadow-creds branch September 2, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants