What happens when we run PSM-RDP on the target machine?

What happens when we run PSM-RDP on the target machine?

117
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 13:04 PM


Question


What happens when we run PSM-RDP on the target machine?



Environment


v9.2;9.3;9.5;9.6;9.7;10.2;10.3;10.4;10.5;10.6;10.7;10.8;10.9;10.10;11.1;11;11.2;11.3;11.4;11.5;11.6;11.7;12.0;14.2;14.5;14.6

Answer


When using PSM-RDP connection client, we have some files that are copied and executed on the target machine in order to have the features: WinAudit and KeystrokesLogger to work. 

Regarding KeystrokesLogger feature - We run exe on the target machine only when there is a need to use multiple languages. 

If these two features are turned off, there will be nothing that will be copied or executed to the target machine. 

Both features use the: 

  • CAInvokerService.exe 
    This executable is installed as a service on the target machine, in order to run other executabls on the target 
    (The other executables are described below, this is according to the wanted feature). 
    (This file is called PSMWinAgentInvoker.exe on the PSM machine)
    It runs only during the time of an initialization of a new session. 
  • Microsoft C Runtime Libraries
    The library files msvcr120.dll and msvcp120.dll are also copied to the target.
     

     
  • WinAudit: 
    Runs the following executables on the target: 
    - PSMWinAgent.exe 
    It checks for new windows on the target and sends their titles to PSM.

 

  • KeystrokesLogger: 
    The following executables and dlls are used on the target: 
    - PSMKeystrokesLogger32.exe 
    - PSMKeystrokesLogger64.exe 
    - PSMKeystrokesLogger32.dll 
    - PSMKeystrokesLogger64.dll 

Those executables gets all keys that are pressed on the target and sends them to PSM.

  1. Everything that is done on the target uses the account's credential (The administrator user that logs on the target machine). 
  2. We leave zero footprint by the end of the session - Nothing will be running if there is no open session. 
  3. Moreover, the customer doesn't have to install an agent on each of the target machines because this is done by PSM when each session begins. 

Note:

The user on the target machine must belong to the Administrators group on that machine

----

To enable PSM monitoring on a hardened server, you will need to enable the Admin$ share on it. For example:
The Admin$ share is disabled by PVWA hardening (PVWA_IIS_Regitry_Shares.psm1), and having it enabled is not in line with our security best practices.

Admin$ share is required on PSM Windows targets so PSM can copy the audits over.
 
Step-by-step instructions

To enable auditing, "PSMWinAgent.exe" should be copied and executed on target's machine. For this to happen, there are some prerequisites: 

* A share called "admin" must be available on the target server. 
* Make sure the “SERVER” Windows service is running. 
* In the firewall, open TCP port 445. 
* The account used to access the target machine must belong to the Administrators Group 

 



Additional Information


Details

Q:

What happens when we run PSM-RDP on the target machine?

 

A:

When using PSM-RDP connection client, we have some files that are copied and executed on the target machine in order to have the features: WinAudit and KeystrokesLogger to work. 

Regarding KeystrokesLogger feature - We run exe on the target machine only when there is a need to use multiple languages. 
If these two features are turned off, there will be nothing that will be copied or executed to the target machine. 

Both features uses the: 

  • CAInvokerService.exe 
    This executable is installed as a service on the target machine, in order to run other executabls on the target 
    (The other executables are described below, this is according to the wanted feature). 
    It runs only during the time of an initialization of a new session. 

 

  • WinAudit: 
    Runs the following executables on the target: 
    - PSMWinAgent.exe 
    It checks for new windows on the target and sends their titles to PSM.

 

  • KeystrokesLogger: 
    The following executables and dlls are used on the target: 
    - PSMKeystrokesLogger32.exe 
    - PSMKeystrokesLogger64.exe 
    - PSMKeystrokesLogger32.dll 
    - PSMKeystrokesLogger64.dll 

Those executables gets all keys that are pressed on the target and sends them to PSM.

 

  1. Everything that is done on the target uses the account's credential (The administrator user that logs on the target machine). 
  2. We leave zero footprint by the end of the session - Nothing will be running if there is no open session. 
  3. Moreover, the customer doesn't have to install an agent on each of the target machines because this is done by PSM when each session begins. 

 

Note:

The user on the target machine must belong to the Administrators group on that machine




Actions
  • Print
  • Copy Link

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