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 Plink SSH Tunnel Execution (via process_creation)
Suspicious Remote Desktop Enabled via fDenyTSConnections Registry by Sandworm
Suspicious RDP Shadow Session Started - Native (via rdp)
Malicious RDP BlueeKeep Connection Closed - CVE-2019-0708 (via rdp)
Obfuscated RDP Tunneling Configuration Enabled for Port Forwarding (via process_creation)
Malicious RDP Shadow Session Configuration Enabled - Registry (via registry_event)
Malicious RDP Tunneling (via rdp)
Suspicious Denied RDP Login with Valid Credentials (via security)
Malicious RDP Session Hijacking via tscon Command Line
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.