[PSM] - Chrome Web Sessions Fail to Download Files with "Failed - Virus scan failed"

[PSM] - Chrome Web Sessions Fail to Download Files with "Failed - Virus scan failed"

273
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 16:04 PM


Symptom


During a PSM session involving Google Chrome:


1. A user attempts to download an attachment or report from a target web application.
2. The Chrome download bar reports: "Failed - Virus scan failed".
3. The downloaded file cannot be opened or saved to mapped drives.
4. (Optional) Windows Event Viewer logs AppLocker Event ID 8004 under `EXE and DLL` for an antivirus or defender DLL.



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), WebApp Dispatcher, PSM Shadow Users
- Applications: Google Chrome Browser
- Supported Versions: PAM Self-Hosted v14.x, v15.x



Cause


When files are downloaded in Windows, the browser hands the file to the **Windows Attachment Manager**, which invokes registered antivirus scanning components (such as Microsoft Defender or third-party AV) before releasing the file. 

 

This fails in PSM environments due to one of two reasons:


1. **AppLocker DLL Block:** The antivirus DLL hooked by the Attachment Manager is blocked by PSM AppLocker rules (Event ID 8004).
2. **Shadow User Restriction:** Ephemeral PSM Shadow Users have restricted execution contexts and cannot interact with the scanning interface.



Resolution


Method A: Whitelist the Blocked Antivirus DLL in AppLocker (Recommended)
1. Open Event Viewer on the PSM server and navigate to:
   Applications and Services Logs > Microsoft > Windows > AppLocker > EXE and DLL
2. Look for Event ID 8004 recorded at the time of the download failure.
3. If an AV/Defender DLL is listed as blocked, open `C:\Program Files (x86)\CyberArk\PSM\Hardening\PSMConfigureAppLocker.xml`.
4. Add the DLL path to the allowed libraries section.
5. Run `.\PSMConfigureAppLocker.ps1` in an elevated PowerShell session.

 

Method B: Adjust Windows Attachment Manager Registry Policy
If no AppLocker events are found or if the Shadow User profile continues to fail attachment validation:
1. Log on to the PSM server as an Administrator and open `regedit.exe`.
2. Browse to:
   `HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments`
   *(If the `Attachments` key does not exist, right-click `Policies` > New > Key and name it `Attachments`)*.
3. Inside `Attachments`, create or modify the DWORD (32-bit) value:
   - Name: `ScanWithAntiVirus`
   - Value: `1` *(Value 1 = Off / Do not invoke external virus scan; Value 3 = Mandatory)*
4. Run `gpupdate /force` from an elevated command prompt.
5. Test the file download in a new PSM Chrome session.



Actions
  • Print
  • Copy Link

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