Suspicious Replacement of termsrv DLL to Enable Concurrent RDP via file_event

PremiumReviewedSigma · Medium · v1
Product
windows
Category
file_event
Author
HuntRule
Published
2026-07-12
Updated
2026-08-28

ATT&CK techniques

Lateral Movement
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Collection

  11. C2

  12. Exfiltration

  13. Impact

What it detects

This rule detects a write to the Terminal Services termsrv.dll in System32, the technique OkoBot uses to patch the RDP service and allow multiple concurrent sessions. The genuine termsrv.dll changes only through Windows servicing. An out-of-band modification indicates tampering to enable stealthy remote access.

Related detections9 linkedT1021.001 — drag to rearrange
Suspicious RDP Connection File Opened From Download or Mail Directory via Process Creation
Suspicious Firewall Rule Allowing SSH via New-NetFirewallRule During Ransomware
Malicious RDP Tunneling via ngrok (via process_creation)
Suspicious Remote Desktop Enablement via Registry By Ransomware
Suspicious Remote Desktop Enablement via netsh Firewall Rule (via process_creation)
Suspicious RDP Enablement via netsh Firewall Rule
Suspicious RDP Enablement via fDenyTSConnections Registry Modification
Suspicious RDP Enablement via fDenyTSConnections Registry Modification [Huntress] #2
Suspicious Firewall Rule Added to Open RDP Port 3389 via netsh
Suspicious Replacement of termsrv DLL to Enable Concurrent RDP via file_event
Pivot detection · T1021.001 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.