PSM and PSMP prompt detection does not work
171
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 13:04 PM
Symptom
When connecting via PSM-SSH or PSMP-SSH, sometimes the target password is expired and we are obligated to change it. There is no detection for the prompt: "Your password has expired."
WARNING: Your password has expired. You must change your password now and login again!
WARNING: Your password has expired. You must change your password now and login again!
Environment
10.5;10.6;10.7;10.8;12.2;12.6;13.0;13.2;14.6 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSM;PSMP;Privileged Session Management (PSM)
- Component: PSM and PSMP
- Functional Area: Networking & Connectivity
Cause
The default expect regex in the specific Connection Component TargetSettings > ShellPromptForAudit" Value="(.*)[>#\\$]$
Does not match the prompt.
For testing purposes, to temporarily bypass the prompt detection to confirm this is the issue, perform the following:
In PVWA go to Administration > Option > Connection Components > PSMP-SSH> TargetSettings > ShellPromptForAudit" set Value="(.*)
And apply changes
Then restart the PSMP or PSM service.
Does not match the prompt.
For testing purposes, to temporarily bypass the prompt detection to confirm this is the issue, perform the following:
In PVWA go to Administration > Option > Connection Components > PSMP-SSH> TargetSettings > ShellPromptForAudit" set Value="(.*)
And apply changes
Then restart the PSMP or PSM service.
Resolution
To ensure audit logging is only capturing commands being sent by the user, a proper regular expression should be applied to ShellPromptForAudit to match any expected prompts that is not handled by the default value.