- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
08-19-2026 12:57 AM
Hello,
I am working on a Playbook to detect RDP/SSH communications between servers and automatically terminate the corresponding process when such communication is detected.
As a preliminary test, I have configured a small-scale test to verify that the process can be automatically terminated. My current configuration is as follows.
dataset = xdr_data
| filter event_type = ENUM.NETWORK
| filter action_remote_port = 22
and actor_process_image_path contains "D:\Program\MobaXterm_Portable_v26.0"
The above BIOC Rule is designed to detect SSH communication generated by MobaXterm.
The Playbook receives the following values from the Issue Event generated by the BIOC Rule:
${issue.agentid}${issue.actorprocessinstanceid}I am using the following action to terminate the process:
Cortex Core - IR | core-terminate-process
I also tested the Playbook through the Debugger Panel by specifying a generated Issue, and confirmed that the target process was successfully terminated.
When I actually establish an SSH connection for testing, the Issue Event generated by the BIOC Rule is created approximately 1–5 minutes after the SSH session has already been terminated.
Therefore, the Playbook is executed only after the session has already ended, which does not meet the intended purpose of terminating the process while the remote session is still active.
The current flow is:
SSH session established
↓
SSH communication occurs
↓
SSH session terminated
↓
BIOC Issue generated after approximately 1–5 minutes
↓
Playbook executed
↓
Process terminated
What I would like to achieve is:
SSH/RDP session established
↓
Communication detected in real time
↓
BIOC Issue generated
↓
Playbook executed
↓
Corresponding SSH/RDP process terminated
My question is:
Is there a way to configure a BIOC Rule so that an Issue Event is generated in real time while the SSH/RDP session is still active?
Currently, I am using event_type = ENUM.NETWORK for the detection. Is the delayed Issue generation after the session ends expected behavior for this type of network event?
Alternatively, is there another event type or field that I could use to detect the SSH/RDP session establishment or process initiation and trigger the Playbook while the session is still active?
Any guidance or recommendations would be greatly appreciated.
Thank you!
08-19-2026 06:49 AM
Hello @.522643 ,
Greetings for the day.
The delay is expected behavior based on the Cortex XDR EDR telemetry architecture. EDR data is collected locally, archived, and uploaded to the server in batches.
1. Explanation of the Delay:
The 1–5 minute delay occurs because:
2. Achieving Real-Time Termination:
For real-time blocking or termination, use a Custom Prevention Rule instead of a server-side Playbook.
event_type = ENUM.PROCESS to block the SSH client from starting, or ENUM.NETWORK if supported.Alternative Event Types
Summary:
If you feel this has answered your query, please let us know by clicking like and on "mark this as a Solution".
Thanks & Regards,
S. Subashkar Sekar
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

