T1210 Elastic Security · Elastic

Detect Exploitation of Remote Services in Elastic Security

Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network. Exploitation occurs when an adversary takes advantage of a programming error in a program, service, or OS kernel to execute adversary-controlled code. Common targets include SMB (EternalBlue/MS17-010 — used by WannaCry, NotPetya, Emotet, QakBot, Bad Rabbit, APT28, Ember Bear), RDP (BlueKeep CVE-2019-0708 — used by InvisiMole, Fox Kitten), Active Directory Netlogon (ZeroLogon CVE-2020-1472 — used by Wizard Spider, Earth Lusca), Windows Print Spooler (PrintNightmare CVE-2021-1675/CVE-2021-34527 — used in ransomware operations), and VMware vCenter (VMSA-2024-0019 — ESXi hypervisor takeover). Post-exploitation typically manifests as unexpected child processes spawned from the exploited service (e.g., spoolsv.exe spawning cmd.exe), remote thread injection into privileged processes, or new services installed via SMB pipes. Successful exploitation may yield SYSTEM-level access, enabling further lateral movement, credential theft, or ransomware deployment.

MITRE ATT&CK

Tactic
Lateral Movement
Technique
T1210 Exploitation of Remote Services
Canonical reference
https://attack.mitre.org/techniques/T1210/

Elastic Detection Query

Elastic Security (Elastic)
eql
sequence by host.id with maxspan=30s
  [
    process where event.type == "start" and
    process.parent.name in ("spoolsv.exe", "lsass.exe", "services.exe", "winlogon.exe", "w3wp.exe", "sqlservr.exe", "vmtoolsd.exe") and
    process.name in ("cmd.exe", "powershell.exe", "pwsh.exe", "net.exe", "net1.exe", "whoami.exe", "certutil.exe", "mshta.exe", "wscript.exe", "cscript.exe", "regsvr32.exe", "rundll32.exe", "msiexec.exe", "curl.exe", "wget.exe")
  ] by process.parent.pid

OR

any where event.category == "process" and event.action == "remote_thread" and
  process.name in ("spoolsv.exe", "lsass.exe", "services.exe", "winlogon.exe", "w3wp.exe", "sqlservr.exe", "vmtoolsd.exe")
critical severity high confidence

Detects T1210 exploitation of remote services by identifying two patterns: (1) suspicious child processes spawned directly from network-facing or privileged Windows service executables (PrintNightmare, ZeroLogon, SQL CVEs, VMware CVEs), and (2) CreateRemoteThread API calls originating from those same service processes indicating post-exploitation code injection. Uses ECS process hierarchy fields and sequences to correlate parent-child process relationships within a 30-second window.

Data Sources

Elastic Endpoint Security (endpoint agent)Sysmon via WinlogbeatAuditbeat (process module)

Required Tables

logs-endpoint.events.process-*winlogbeat-*.ds-logs-endpoint.events-*

False Positives & Tuning

  • Legitimate software deployment tools (SCCM, Ansible, PDQ Deploy) that spawn cmd.exe or msiexec.exe from services.exe during patch cycles
  • IIS application pools (w3wp.exe) running PowerShell-backed ASPX scripts or custom HTTP handlers that invoke shell utilities as part of normal web app logic
  • SQL Server Agent jobs configured to execute operating system commands via xp_cmdshell or CmdExec job steps, which intentionally spawn cmd.exe from sqlservr.exe
Download portable Sigma rule (.yml)

Other platforms for T1210


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1EternalBlue SMB Vulnerability Scan (MS17-010 Detection)

    Expected signal: Sysmon EventID 3 (Network Connection): outbound TCP connections from nmap to <target_lab_ip>:445. On the target Windows host: Security Event ID 5145 (network share access) and potentially IDS/IPS alerts on SMB probe patterns. On the scanning host: no Sysmon events (Linux), but EDR network telemetry shows port 445 probe.

  2. Test 2ZeroLogon Vulnerability Check via Impacket (CVE-2020-1472)

    Expected signal: Network connections from testing host to DC on TCP 135 (RPC endpoint mapper) and the dynamically assigned Netlogon RPC port. On the DC: Security Event ID 4742 (Computer Account Changed) if exploitation proceeds, Security Event ID 4625 (Logon Failure) for failed authentication attempts, and Netlogon EventID 5829/5827 (vulnerable Netlogon secure channel connection denied if patch is applied). Windows Defender will generate Alert: Zerologon exploitation attempt if Defender ATP is active.

  3. Test 3PrintNightmare Exploitation via Impacket CVE-2021-1675

    Expected signal: On the target host: Sysmon EventID 1 (Process Create) with ParentImage=C:\Windows\System32\spoolsv.exe spawning rundll32.exe or the payload process. Sysmon EventID 7 (Image Load) showing spoolsv.exe loading a DLL from a UNC path (\\attacker\share\nightmare.dll). Security Event ID 316 (Print Spooler: driver installation) in Microsoft-Windows-PrintService/Admin log. File creation event (Sysmon EventID 11) for the DLL written to C:\Windows\System32\spool\drivers\x64\3\.

  4. Test 4BlueKeep RDP Vulnerability Check (CVE-2019-0708)

    Expected signal: Sysmon EventID 3 (Network Connection): outbound TCP connections to <target_lab_ip>:3389. On the target: Security Event ID 4625 (Logon Failure) for the authentication probe packets. IDS/IPS alerts for RDP scan signatures. Windows Defender ATP may generate a BlueKeep vulnerability detection alert on the target host based on the probe packet signatures. On the target, Security Event ID 4625 with LogonType=3 and unusual source IP.

Unlock Pro Content

Get the full detection package for T1210 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections