SQL Server Management Studio (SSMS) crashes mid-session
Symptom
SSMS (and a wide variety of other connection components) could experience the following behavior. While mid-session, end user tries to perform a specific task, and the session dies without explanation.
If you check Event Viewer's AppLocker logs right after, you see errors related to DLL's or EXE's being blocked.
Environment
12.2;12.4;12.3;12.5;12.6;12.7;13.0;13.2;13.1;14.0;13.3;14.2;14.3 Privileged Access Manager (PAM, self-hosted);Privilege Cloud Privileged Session Management (PSM)
SSMS, PSM, AppLocker enforced
Cause
AppLocker is blocking a DLL or EXE that is critical to the mid-session functionality. When the DLL or EXE fails to load/launch, the session crashes.
Resolution
When AppLocker is set to audit only, the issue disappears.
How to set AppLocker to audit only:
- Open Secpol.msc on the PSM.
- Application Control Policies
- Right-click AppLocker, and then click Properties.
- Click on the Drop down that says, "Enforce rules" and change it to "Audit only".
- Repeat the above step to configure the enforcement setting to Audit only for all sections
- Click OK.
Proper solution is to follow this article to find and whitelist the offending DLL's/EXE's:
https://community.cyberark.com/s/article/How-do-you-add-DLLs-to-the-Applocker-script