Typed Passwords Showing in PSMP Session Keylogging

Typed Passwords Showing in PSMP Session Keylogging

111
Created On 11/10/26 11:03 AM - Last Modified 11/10/26 15:54 PM


Symptom


Passwords that are typed in PSMP sessions (by using commands like sudo) are being recorded like any other set of text in a PSMP session. This is not a desirable behavior because the text files could be viewed by people who should not know the password in question like auditors.



Environment


12.0;12.1;12.2

PSMP version 12.0 and above



Cause


Password hiding has not been configured at the general level in options found in the PVWA or has been configured incorrectly.



Resolution


1.      First configure the general password hiding settings as described:

1.      Click Administration > System Configuration > Options.

1.png

2.      Expand Privileged Session Management > General Settings

3.      Expand Connection Client Settings, right click on Capabilities and choose Add Capabilities

4.      Right click on the Capabilities and choose Add SSH Password Hiding

5.      Ensure the following properties are configured and click Apply:

   Description - SSHPasswordHiding

   Format – NA

   Id – SSHPasswordHiding

   IntegrationType - Embedded

   Type – PasswordProtection

2.png

 

    

If you wish to set the regular expression for hiding passwords for all platforms, do steps 6 and 7 then skip steps 8 through 13:

6.      Expand the SSH Password Hiding > Default Settings

7.      Edit the PasswordPrompts property and add <desired regular expression> to the end of the PasswordPrompts value

3.png

 

 

If you wish to configure the regular expression for hiding passwords for specific platforms do steps 8 through 13 for each platform as necessary:

8.      Click Administration > System Configuration page > Platform Management to display all platforms.

9.      Select the platform to configure > Edit

10.   Expand UI & Workflows > right-click Privileged Session Management

11.   From the pop-up menu, select Internal Capability Settings if it does not already exist

12.   Right-click Internal Capability Settings > Add SSH Password Hiding if it does not already exist

13.   Select SSH Password Hiding, then specify the following properties then click apply:

    Enabled – Determines whether passwords will be recorded during PSM for SSH sessions. The default value is Yes, indicating that this feature is enabled and passwords will not be recorded.

    PasswordPrompts – This is the regular expression that is used to identify password prompts. Add  <desired regular expression> here. When the system finds a match to this regular expression, it omits the password from the PSM session recording.

    InvalidPasswordChars – Defines characters that cannot be included in passwords. When the user specifies one of these characters, PSM resumes auditing and recording each keystroke. Add <desired delimiter characters> here.

 

This screenshot is just an example, not a recommendation:

4.png



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000v3GCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail