Trend Micro Apex One alerts regarding PAExec used by Medulla
Applies to: Medulla / Trend Micro Apex One / Vision One / Worry-Free Business Security
Version: All
Environment: Windows / On-Premise / SaaS
Category: Security / Antivirus / Behavior Monitoring / Remote Execution
Background
Medulla uses PAExec, an open-source equivalent of PsExec/Sysinternals, to perform remote actions on managed Windows workstations:
- Application deployment
- Running scheduled scripts
- Orchestrating tasks from the application Kiosk
- Maintenance or remediation actions
Important: Any security exclusions (EDR, antivirus, whitelists) must be regularly reassessed to ensure they remain relevant given the context, software versions, and your security policy. It is recommended to apply the most restrictive exclusions possible.
In Medulla, this mechanism is notably used by the following component:
scheduling_launch_kiosk.py
PAExec intentionally behaves similarly to PsExec, a legitimate tool widely used by system administrators but also known as a vector for lateral movement in certain attack scenarios.
Modern EDR solutions, including Trend Micro Apex One, therefore monitor this type of behavior by default and may trigger an alert or even block the process, depending on the mode of the applied policy (detection or protection).
Why does Trend Micro detect PAExec?
When a remote action is executed by Medulla, PAExec typically follows this cycle:
- The PAExec binary is called from the Medulla agent.
- A temporary copy is placed on the target workstation in
C:\Windows. - This copy is executed as a temporary Windows service.
- The temporary file is deleted after execution.
Therefore, the file detected by the EDR is generally not the Medulla source binary, but its temporary copy.
Example:
C:\Windows\PAExec-2124-NOMPOSTE.exe
The source binary remains:
C:\Program Files\Medulla\bin\paexec.exe
Note:
The EDR primarily detects the temporary copy placed in C:\Windows\, not the Medulla source binary.
Why does PAExec run under the SYSTEM account?
This behavior is expected.
PAExec temporarily installs a Windows service to execute the remote action.
It therefore runs with:
NT AUTHORITY\SYSTEM
with the argument:
-service
This behavior is necessary for Medulla remote administration to function.
What behaviors can trigger an EDR alert?
Trend Micro can monitor the following:
|
ID |
Log |
Description |
Expected |
|
7045 |
System |
Installing the temporary PAExec service |
Yes |
|
7036 |
System |
Starting the PAExec service |
Yes |
|
5145 |
Security |
Access to the |
Yes |
|
5145 |
Security |
Access to |
Yes |
|
4648 |
Security |
Authentication with explicit credentials |
Possible |
Events on named pipes:
*-stdin *-stdout *-stderr
are closely monitored by EDRs because they are characteristic of PsExec/PAExec operations.
This behavior is legitimate in the Medulla context, but similar to that used by certain lateral movement tools.
Can I exclude only paexec.exe?
No.
The following exclusion alone is generally not sufficient:
C:\Program Files\Medulla\bin\paexec.exe
In fact, the EDR primarily detects the temporary copy created during remote execution:
C:\Windows\PAExec-*.exe
and not just the source binary.
What exclusions should I apply in Trend Micro?
It is recommended to use the most restrictive exclusion possible to maintain optimal security.
Exclusions should ideally be limited:
- To workstations equipped with the Medulla agent
- To the PAExec binary used by Medulla
- To the expected execution context
Option A — Exclusion via SHA256 hash (recommended)
Preferred method.
Add an authorization rule based on the SHA256 hash of the binary:
C:\Program Files\Medulla\bin\paexec.exe
The hash also matches the temporary copy:
C:\Windows\PAExec-*.exe
since the file is copied exactly as-is.
Retrieving the hash:
Get-FileHash "C:\Program Files\Medulla\bin\paexec.exe" -Algorithm SHA256
Advantages:
- Verifies the exact integrity of the binary
- Reduces the risk of allowing another executable with the same name
- Suitable for strict EDR policies
Option B — Path-based exclusion with conditions
If exclusion by hash is not possible, use exclusion by path with restrictions.
Recommended path:
C:\Windows\PAExec-*.exe
Recommended conditions:
| Parameter | Value |
| Execution account | NT AUTHORITY\SYSTEM |
| Argument | -service |
| Expected parent process | Medulla agent |
This method is less restrictive than a hash-based exclusion.
List of recommended exclusions
Processes / files
| Component | Path |
| Medulla agent | medulla.exe |
| Medulla agent | C:\Program Files\Medulla\ |
| PAExec binary | C:\Program Files\Medulla\bin\paexec.exe |
| PAExec temporary copy | C:\Windows\PAExec-*.exe |
| Medulla agent Python | C:\Program Files\Medulla\bin\python*.exe |
| Scheduler / Kiosk | C:\Program Files\Medulla\bin\python*.exe |
| SSH client (remote maintenance) | scheduling_launch_kiosk.py |
Folders
Possible exclusions:
C:\Program Files\Medulla\
C:\ProgramData\Medulla\
C:\Windows\PAExec-*.exe
Does the SHA256 hash change after a Medulla update?
Yes.
When a new version of PAExec is integrated into Medulla, its SHA256 hash may change.
After each major update to the Medulla agent:
- Verify the hash of the new binary.
- Update the Trend Micro authorization rule if necessary.
- Verify that the agents are correctly retrieving the new policy.
Summary of technical elements
| Element | Value |
| Agent process | medulla.exe |
| Source binary | C:\Program Files\Medulla\bin\paexec.exe |
| File detected by the EDR | C:\Windows\PAExec-<PID>-<ComputerName>.exe |
| Mechanism | Temporary copy via remote administration |
| Execution account | NT AUTHORITY\SYSTEM |
| Expected argument | -service |
| Affected Medulla component | scheduling_launch_kiosk.py |
| Recommended exclusion | SHA256 hash + execution context |
| Exclusion to avoid on its own | Only C:\Program Files\Medulla\bin\paexec.exe |
Best practices
- Prefer a hash-based exclusion whenever possible.
- Avoid global exclusions on
C:\Windows\. - Document each exclusion rule:
- Reason
- Creation date
- Affected Medulla version
- Allowed hash
- Regularly review exclusions in accordance with the current security policy.
How do I add a file exclusion in Trend Micro?
This section describes the procedure for adding the necessary exclusions to prevent false positives for PAExec used by Medulla.
Trend Micro exclusions can be applied to:
- Folders
- Specific files
- File extensions
These exclusions can be used for the following scans:
- Real-Time Scan
- Scheduled Scan
- Manual Scan
Access the exclusions settings
- Log in to the Trend Micro administration console.
- Access policy settings:
Classic mode
Security Agents → Select the relevant group → Configure Policy
Advanced mode
Policies → Policy Management → Select an existing policy or create a new policy
Open the Windows configuration: Windows → Scan Exclusions
Enable exclusions
In the section:
Real-Time Scan / Scheduled Scan / Manual Scan
Enable exclusions if necessary.