Rapid7 Vulnerability & Exploit Database

Shadow Credentials

Back to Search

Shadow Credentials



This module can read and write the necessary LDAP attributes to configure a particular account with a Key Credential Link. This allows weaponising write access to a user account by adding a certificate that can subsequently be used to authenticate. In order for this to succeed, the authenticated user must have write access to the target object (the object specified in TARGET_USER).


  • Elad Shamir
  • smashery


Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/admin/ldap/shadow_credentials
msf auxiliary(shadow_credentials) > show actions
msf auxiliary(shadow_credentials) > set ACTION < action-name >
msf auxiliary(shadow_credentials) > show options
    ...show and set options...
msf auxiliary(shadow_credentials) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security