Detect Exploitation of Remote Services in Google Chronicle
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/
YARA-L Detection Query
rule t1210_exploitation_remote_services {
meta:
author = "Argus Detection Engineering"
description = "Detects T1210 - Exploitation of Remote Services. Identifies suspicious child processes spawned from exploitable Windows service executables (PrintNightmare, ZeroLogon, IIS, SQL, VMware CVEs) and CreateRemoteThread injection from service processes."
mitre_attack_tactic = "Lateral Movement"
mitre_attack_technique = "T1210"
severity = "CRITICAL"
priority = "HIGH"
reference = "https://attack.mitre.org/techniques/T1210/"
version = "1.0"
events:
(
// Branch 1: Service parent spawning suspicious child (process create)
$e1.metadata.event_type = "PROCESS_LAUNCH"
and (
re.regex($e1.principal.process.file.full_path, `(?i)(spoolsv|lsass|services|winlogon|w3wp|sqlservr|vmtoolsd)\.exe$`)
or re.regex($e1.target.process.file.full_path, `(?i)(spoolsv|lsass|services|winlogon|w3wp|sqlservr|vmtoolsd)\.exe$`)
)
and re.regex($e1.target.process.file.full_path, `(?i)(cmd|powershell|pwsh|net|net1|whoami|certutil|mshta|wscript|cscript|regsvr32|rundll32|msiexec|curl|wget)\.exe$`)
)
or
(
// Branch 2: CreateRemoteThread from service process (injection)
$e1.metadata.event_type = "INJECTED_CODE"
and re.regex($e1.principal.process.file.full_path, `(?i)(spoolsv|lsass|services|winlogon|w3wp|sqlservr|vmtoolsd)\.exe$`)
)
condition:
$e1
} Chronicle YARA-L 2.0 rule detecting T1210 exploitation of remote services. Branch 1 uses PROCESS_LAUNCH UDM events to match process hierarchy where exploitable Windows service executables (spoolsv.exe for PrintNightmare, lsass.exe for ZeroLogon, w3wp.exe for IIS CVEs, sqlservr.exe for SQL CVEs, vmtoolsd.exe for VMware CVEs) spawn known post-exploitation shells or LOLBins. Branch 2 uses INJECTED_CODE UDM events to catch CreateRemoteThread injection from those same service parents. Regex patterns are case-insensitive to handle varied capitalization in telemetry.
Data Sources
Required Tables
False Positives & Tuning
- Enterprise software management solutions (Tanium, BigFix) that deploy updates or run inventory scripts through service processes, legitimately spawning cmd.exe or PowerShell during maintenance windows
- Print management software or printer driver installers that temporarily spawn shell processes from spoolsv.exe during legitimate printer driver installation or update operations
- Web application frameworks (ASP.NET, Java on IIS) that use process execution for PDF generation, image processing, or external tool invocation as documented application functionality
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.
- 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.
- 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.
- 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\.
- 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.
References (12)
- https://attack.mitre.org/techniques/T1210/
- https://www.cisecurity.org/advisory/multiple-vulnerabilities-in-microsoft-windows-smb-server-could-allow-for-remote-code-execution/
- https://nvd.nist.gov/vuln/detail/CVE-2017-0144
- https://nvd.nist.gov/vuln/detail/CVE-2019-0708
- https://nvd.nist.gov/vuln/detail/CVE-2020-1472
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-1675
- https://github.com/vmware/vcf-security-and-compliance-guidelines/blob/main/security-advisories/vmsa-2024-0019/README.md
- https://nvd.nist.gov/vuln/detail/CVE-2016-6662
- https://github.com/SecureAuthCorp/impacket
- https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1210/T1210.md
- https://www.microsoft.com/en-us/security/blog/2020/09/16/understanding-the-zerologon-vulnerability-cve-2020-1472/
- https://msrc.microsoft.com/blog/2021/07/microsoft-security-update-guide-for-printnightmare/
Unlock Pro Content
Get the full detection package for T1210 including response playbook, investigation guide, and atomic red team tests.