[PSM] - PSM-RDP Session Disconnects or Hangs at "Please wait for the Local Session Manager"

[PSM] - PSM-RDP Session Disconnects or Hangs at "Please wait for the Local Session Manager"

412
Created On 11/12/26 15:37 PM - Last Modified 11/12/26 16:28 PM


Symptom


When launching a target connection via PSM-RDP:


1. The remote session window opens.
2. The session displays: "Please wait for the Local Session Manager".
3. After several moments, the session freezes, terminates, or automatically logs off without reaching the desktop.
4. Windows Event Viewer on the PSM server logs Event ID 8004 under:
   Applications and Services Logs > Microsoft > Windows > AppLocker > EXE and DLL
   (Indicating a third-party security or monitoring DLL was prevented from running).



Environment


14.2;14.6;15.0;14.7;14.8;15.2 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Privileged Session Management (PSM);Privilege Cloud PSM

- Products: Privileged Access Manager (PAM, self-hosted), Privilege Cloud
- Components: Privileged Session Manager (PSM), PSM-RDP
- Security Feature: Windows AppLocker (DLL Enforcement), Third-Party EDR/Antivirus
- Supported Versions: PAM Self-Hosted v14.x v15.x

 



Cause


Many Endpoint Detection and Response (EDR) or Antivirus agents inject DLL hooks into Windows system processes (such as `winlogon.exe` or `lsm.exe`) during session initialization. 

 

When PSM AppLocker DLL enforcement is active, any DLL not explicitly whitelisted in `PSMConfigureAppLocker.xml` is blocked. Because the injected security DLL is denied execution, the Windows Local Session Manager hangs and aborts the session.

 

sentinel1.PNG



Resolution


Step 1: Identify the Blocked DLL
1. Log on to the PSM server as an Administrator.
2. Open Windows Event Viewer (`eventvwr.msc`).
3. Navigate to: Applications and Services Logs > Microsoft > Windows > AppLocker > EXE and DLL.
4. Look for recent **Event ID 8004** errors recorded during the connection attempt.
5. Identify the exact file path and binary name of the blocked DLL (e.g., SentinelOne, CrowdStrike, or other agent hooks).

 

Step 2: Whitelist the DLL in AppLocker
1. Navigate to: `C:\Program Files (x86)\CyberArk\PSM\Hardening`
2. Open `PSMConfigureAppLocker.xml` in an elevated text editor.
3. Locate the `<Libraries>` or `<AllowedDLLs>` section.
4. Add an entry for the blocked vendor DLL path. 
   
   Example (Path or Directory rule):
   <Library Name="SecurityAgentHook" Type="Dll" Path="C:\Program Files\VendorAgent\*\*.dll" Method="Path" />

5. Save and close `PSMConfigureAppLocker.xml`.

 

Step 3: Re-Apply AppLocker Policy
1. Open PowerShell as an Administrator.
2. Navigate to the hardening folder:
   cd "C:\Program Files (x86)\CyberArk\PSM\Hardening"
3. Execute the script:
   .\PSMConfigureAppLocker.ps1
4. Test the PSM-RDP connection. (If the hook resides deep in the kernel/session manager, a PSM server restart may be required).



Actions
  • Print
  • Copy Link

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