Deploy windows audit agent for non-privileged Windows accounts

Deploy windows audit agent for non-privileged Windows accounts

289
Created On 11/10/26 10:56 AM - Last Modified 11/10/26 15:59 PM


Symptom


It is possible to deploy PSM windows audit local agent on target machines to allow the PSM server to obtain full Windows audit & recording during PSM-RDP sessions without providing administrative privileges to the logged-on user and SMB access via port 445 on the target machine.

 

The marketplace plugin (community support) is available for download at :

https://community.cyberark.com/marketplace/s/#a352J000000kuzvQAA-a392J000001eK4lQAE

 

When following the instructions to deploy the PSM windows audit local agent at the PSM server, you may encounter an error below:

----------------------------------------

Failed to create process C:\Program Files (x86)\CyberArk\PSM\Components\PSMRdpWLA.exe. Code: 1260 (Codes: -1, -1)

----------------------------------------

 

The error above will terminate the PSM-RDP session in error.

 



Environment


11.6;11.7;12.0;12.1;12.2;11.9;11.8;14.6 Privileged Access Manager (PAM, self-hosted) PSM PSM PSM and PTA integration

Cause


Missing step in the implementation guide resulting in AppLocker blocking the PSMRdpWLA.exe for execution.



Resolution


PSM Server:

----------

1) Login to the PSM server

  Copy PSMRdpWLA.exe file from the PSMComponents folder in the zip file to the PSM installation folder\Components on the PSM server. (e.g. C:\Program Files\CyberArk\PSM\Components)

 

2) Configure AppLocker:

Open Powershell as Administrator from C:\Program Files (x86)\Cyberark\PSM\Hardening

Run notepad PSMConfigureAppLocker.xml

 

Under <InternalApplications> tag, add the following rule:

--------------------

  <Application Name="PSMRdpWLA" Type="Exe" SessionType="*" Path="C:\Program Files (x86)\CyberArk\PSM\Components\PSMRdpWLA.exe" Method="Path" />

--------------------  

 

Under the <AllowedApplications> tag, add the following lines:

--------------------

   <Application Name="PSMRdpWLA" Type="Exe" Path="C:\Program Files (x86)\CyberArk\PSM\Components\PSMRdpWLA.exe" Method="Path" />

--------------------

Set-PSDebug -strict:$false to unset strict mode (Set by PS Hardening) 
In the same Powershell window run PSMConfigureAppLocker.ps1

 

 

Target Server: 

-------------

1)Login to the target server

 Copy the files from the LocalAgent folder in the zip file to the target server and run the PSMLAInstaller.exe as administrator

 

 

PVWA:

-------------

Login to the PVWA website

Go to Administration > Configuration Options> Options > Connection Components

Locate the PSM-RDP component

Duplicate the PSM-RDP component by right clicking on it > Copy

Right click on Connection Components > Paste Connection Component

Navigate to the duplicated connection component and select it

Change the ID value-> ID: PSM-RDP-LA

Expand the connection component and select: Target Settings

Change Target Settings ClientDispatcher value-> ClientDispatcher: PSMRdpWLA.exe

Assign this connection component to the relevant platform by navigating to Administration > Configuration Options > Platform Management > Locate the relevant platform and select it > Click on Edit > UI & Workflows > Connection Components > Right click on Connection Components > Add Connection Component > Assign the ID: PSM-RDP-LA

Click on Save



Actions
  • Print
  • Copy Link

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