You cannot spot a fake svchost.exe or lsass.exe until you know exactly what the real ones look like on your own hosts. Masquerading malware relies on analysts glancing at a process list, seeing familiar names and moving on. This guide is the known-good reference for the Windows core processes: the expected parent, image path, account, instance count and command line for System, smss.exe, csrss.exe, wininit.exe, services.exe, svchost.exe, lsass.exe, winlogon.exe and their usual companions, and how to turn that baseline into hunts and detections. It is written for threat hunters, SOC analysts and detection engineers who triage Windows endpoints. The technique itself, with its sub-techniques and adversary examples, is covered in the T1036 Masquerading Defensive Guide; this page is the "know normal" half that the technique page assumes.
Key takeaways
- Five attributes catch most fakes. Name, full image path, parent process, user account and instance count rarely all line up for an impostor, so check them together rather than trusting the name.
- The boot chain is fixed. System starts smss.exe, smss.exe starts csrss.exe, wininit.exe and winlogon.exe, and wininit.exe starts services.exe and lsass.exe; a core process with any other parent is worth investigating.
- svchost.exe is many, but always a child of services.exe. Since Windows 10 version 1703, machines with more than 3.5 GB of RAM run most services in their own svchost.exe instance, so a high count is normal; a missing
-kgroup argument or a different parent is not. - There is one lsass.exe. It runs from System32 under SYSTEM with wininit.exe as parent; a second copy, a different path, or lsass.exe spawning children points to credential theft or masquerading.
- Baselines are local. Security agents, virtualisation tools and Windows versions add legitimate exceptions, so build the baseline from your own telemetry and keep the exception list short and reviewed.
Why a known-good baseline matters
ATT&CK sub-technique T1036.005 Match Legitimate Resource Name or Location describes adversaries naming malware after trusted system files or placing it in trusted directories, and T1055 Process Injection describes running code inside a legitimate process so that the name and path look correct. The two failure modes need different checks: a renamed impostor fails the path, signer or parent test, while an injected or hollowed genuine process passes those tests and fails behavioural ones (unusual children, network connections, missing command-line arguments, memory tampering events).
A baseline turns "looks odd" into a rule. Elastic's published rule "Unusual Parent-Child Relationship" states the principle directly: Windows system processes have characteristics such as parent-child relationships that can be used to baseline typical behaviour and alert on anything that does not comply. SigmaHQ's "System File Execution Location Anomaly" rule applies the same idea to paths, flagging well-known system binaries that run outside folders such as C:\Windows\System32\, C:\Windows\SysWOW64\ and C:\Windows\WinSxS\. For how tokens, sessions and integrity levels work underneath, see the Windows Internals for Defenders Guide.
The core process reference table
The parent column follows the expectations encoded in Elastic's "Unusual Parent-Child Relationship" rule (updated September 2026); paths follow the SigmaHQ location anomaly rule. Instance counts and accounts are the usual values on a current Windows 10, Windows 11 or Windows Server build; confirm them against your own hosts before alerting on them.
| Process | Expected parent | Image path | Account | Usual instances | Red flags |
|---|---|---|---|---|---|
| System (PID 4) | None (kernel) | No user-mode image (ntoskrnl.exe) | SYSTEM | 1 | Any user-mode process named System or ntoskrnl.exe running from disk |
| smss.exe | System | %SystemRoot%\System32 | SYSTEM | 1 persistent; short-lived copies per session at start-up | Any other parent; children other than autochk.exe, csrss.exe, wininit.exe, winlogon.exe and a few setup or recovery tools |
| csrss.exe | smss.exe (the session copy, which then exits, so the parent often shows as not running) | %SystemRoot%\System32 | SYSTEM | One per session (session 0 plus each interactive or RDP session) | Path outside System32; children other than error reporting and conhost.exe |
| wininit.exe | smss.exe (exited) | %SystemRoot%\System32 | SYSTEM | 1 (session 0) | More than one instance; any other parent |
| services.exe | wininit.exe | %SystemRoot%\System32 | SYSTEM | 1 | More than one; any other parent; children that are not service binaries |
| lsass.exe | wininit.exe | %SystemRoot%\System32 | SYSTEM | 1 | A second lsass.exe (including lsass.exe as its own parent, a clone used for dumping); any child process; non-System32 path |
| LsaIso.exe | wininit.exe | %SystemRoot%\System32 | SYSTEM | 1, only when Credential Guard is running | Present on a host where Credential Guard is not configured, or with a different parent |
| svchost.exe | services.exe (Elastic also allows MsMpEng.exe) | %SystemRoot%\System32 (SysWOW64 for 32-bit) | SYSTEM, LOCAL SERVICE or NETWORK SERVICE, plus per-user service instances under the signed-in user | Dozens; Microsoft cites about 67 to 74 with service separation | No -k argument; parent other than services.exe; user-writable path; outbound connections a service would not make |
| winlogon.exe | smss.exe (exited) | %SystemRoot%\System32 | SYSTEM | One per interactive session | Any other parent; unexpected children beyond userinit.exe, LogonUI.exe, dwm.exe, fontdrvhost.exe |
| userinit.exe | winlogon.exe | %SystemRoot%\System32 | Signed-in user | Short-lived, one per logon | Still running long after logon; any other parent |
| explorer.exe | userinit.exe (exited) | %SystemRoot% | Signed-in user | One per interactive user (more if separate folder windows is set) | Running from System32 or a user folder; running as SYSTEM |
| taskhostw.exe | svchost.exe or services.exe | %SystemRoot%\System32 | Signed-in user or service account | Several | Any other parent; network connections |
| RuntimeBroker.exe | svchost.exe | %SystemRoot%\System32 | Signed-in user | Several | Any other parent; path outside System32 |
| spoolsv.exe | services.exe | %SystemRoot%\System32 | SYSTEM | 1 while the Print Spooler service runs | Running on hosts where the spooler is disabled by policy; unusual children |
Note on orphaned parents: because the per-session smss.exe and userinit.exe exit after doing their work, tools often show csrss.exe, wininit.exe, winlogon.exe and explorer.exe with a parent PID that no longer exists. That is normal. What matters is the parent recorded at creation time in Sysmon event 1 or Security event 4688, which keeps the original parent image.
svchost.exe: what normal looks like
svchost.exe is the most imitated name because it is the most common one. Microsoft's documentation on service host grouping explains the baseline changes:
- Separation by memory: starting with Windows 10 version 1703, on client desktop editions with more than 3.5 GB of RAM, services that used to share a host each run in their own svchost.exe. Systems with 3.5 GB or less keep the older grouped model, so expect very different counts on small VMs.
- Exceptions that stay grouped: Microsoft lists Base Filtering Engine with Windows Firewall (Mpssvc), and RPC Endpoint Mapper with Remote Procedure Call, as pairs that remain in a shared host.
- Opt-out value: a service can be kept grouped with the
SvcHostSplitDisablevalue (1) underHKLM\SYSTEM\CurrentControlSet\Services\<ServiceName>. Unexpected changes to this value are worth reviewing. - Command line: a genuine instance is started with a service group, as in
svchost.exe -k netsvcs -p -s Schedule. SigmaHQ's "Suspect Svchost Activity" rule flags svchost.exe whose command line is only the executable name, describing it as highly abnormal and typical of a process started to receive injected code. - Mapping instances to services:
tasklist /svclists the services hosted in each process, andtasklist /svc /fi "IMAGENAME eq svchost.exe"narrows to service hosts. An svchost.exe with no service against it deserves a closer look. Microsoft'sGet-Process SvcHost | Group-Objectexample gives a quick count and memory total.
lsass.exe: the process attackers target most
lsass.exe holds credential material, which is why ATT&CK T1003.001 LSASS Memory is among the most used credential access sub-techniques. The baseline is short: one instance, System32 path, SYSTEM account, wininit.exe parent, no child processes. Signals that break it:
- Clones: SigmaHQ's "Potential Credential Dumping Via LSASS Process Clone" rule alerts at critical level when lsass.exe is created with lsass.exe as its parent, a pattern used to dump a copy rather than the original.
- Handle access: Sysmon event 10 (ProcessAccess) records processes opening another process, and Microsoft's Sysmon page notes it can expose tools that read lsass.exe memory. Baseline which agents legitimately open lsass.exe (EDR, backup, some management tools) and alert on the rest.
- Protection state: with LSA protection, Windows logs System event 12 from Wininit stating that LSASS.exe was started as a protected process. Its absence on a host where
RunAsPPLis configured is a configuration drift finding. See the LSA Protection (RunAsPPL) Guide. - Companion process: with Credential Guard, Microsoft documents that LSA talks over RPC to LsaIso.exe, the isolated LSA process protected by virtualisation-based security. Expect it only where Credential Guard is on; see Credential Guard and VBS.
Look-alike names deserve their own search: lsas.exe, lsasss.exe, Isass.exe (capital I), or lsass.exe under C:\Windows\ or a user profile. A simple edit-distance or homoglyph check against the core list catches most of them. For the dumping technique in depth, see MITRE ATT&CK T1003.001 LSASS Memory Dumping.
Telemetry you need to compare against the baseline
| Source | Event | Fields that matter for the baseline | Notes |
|---|---|---|---|
| Windows Security log | 4688 A new process has been created | New Process Name, Creator Process Name, Process Command Line, Token Elevation Type, Mandatory Label | Creator Process Name is in event version 2 (Windows 10 and later). Command line is empty until you enable "Include command line in process creation events" under Administrative Templates, System, Audit Process Creation, and the Audit Process Creation subcategory |
| Sysmon | 1 Process creation | Image, ParentImage, CommandLine, ParentCommandLine, hashes, ProcessGuid, User | ProcessGuid survives PID reuse, which makes ancestry reliable; run sysmon -s to see the schema of your version |
| Sysmon | 8 CreateRemoteThread | Source and target image | Thread creation into core processes is a classic injection signal |
| Sysmon | 10 ProcessAccess | SourceImage, TargetImage, GrantedAccess | Scope it to lsass.exe and other core targets to keep volume manageable |
| Sysmon | 25 ProcessTampering | Image | Raised when process image changes such as hollowing are detected |
| System log | Wininit event 12 | Protection level for LSASS | Confirms LSA protection at each boot |
| CodeIntegrity Operational | 3065, 3066 (audit), 3033, 3063 (enforced) | Driver or plug-in loaded into LSA | Shows non-compliant LSA plug-ins before and after enforcing protection |
Collecting these centrally is covered in the Windows Event Forwarding Guide and the Sysmon Guide. Microsoft's 4688 guidance also recommends alerting on executables outside a defined list or running from non-standard folders, which is the baseline approach in policy form.
How to build and roll out the baseline
- Collect first: enable 4688 with command line, or Sysmon event 1, on a pilot ring that covers each build you run (Windows 11 releases, Server 2019, 2022, 2025, VDI images). Without the creation-time parent, ancestry checks are guesswork.
- Snapshot known-good hosts: on freshly built reference machines, record image, parent, path, account, signer and count for each core process.
tasklist /v /svc /fo csvorGet-CimInstance Win32_Process(which exposes ParentProcessId, ExecutablePath and CommandLine) are adequate for a snapshot; label them as sample baselines, not production truth. - Compare with fleet data: run frequency counts across the pilot (stack counting): for each core process name, group by path, parent and signer. Rare combinations are your first review queue; common ones from agents or virtualisation tools become documented exceptions.
- Write rules in audit mode: start with parent rules for smss.exe, wininit.exe, services.exe, lsass.exe and svchost.exe, the path anomaly rule, and the svchost no-argument rule. Route hits to a review queue, not an incident queue, for two to four weeks.
- Tune with named exceptions: add each exception by full path and signer, never by name alone, and record the owner and reason. Elastic's rule, for example, allows specific helper binaries as smss.exe children; your estate will have its own.
- Promote and test: move tuned rules to alerting, and test them in a lab with a benign renamed copy of a harmless binary placed in a user folder to confirm the alert fires end to end.
- Roll back cleanly: if a Windows update or new agent floods a rule, revert that rule to audit mode instead of deleting it, and refresh the baseline from a patched reference host.
Decision guidance: which checks to run where
| Situation | Prioritise | Trade-off |
|---|---|---|
| Small organisation with Defender or another EDR and no SIEM | The EDR's built-in parent-child and LSASS access detections; LSA protection on; periodic tasklist /svc spot checks on servers | Little custom tuning effort, but limited visibility into why an alert fired |
| Mid-size SOC with a SIEM | 4688 with command line everywhere, Sysmon on servers and admin workstations, the parent, path and svchost argument rules | Log volume; filter Sysmon event 10 to core targets |
| Large or regulated estate | Per-build baselines, stack counting across the fleet weekly, signer checks, hunts on look-alike names | Needs ownership of the exception list and a change process for new builds |
| Incident triage on a single host | Live process list with path, parent, account and command line; compare with the reference table; check lsass.exe handles | Live tools can be lied to by kernel-level malware, so confirm with memory or offline analysis where stakes are high |
Detection and measurement
- Coverage: percentage of Windows endpoints sending process creation events with parent image and command line. Aim for every server and admin workstation first.
- Baseline freshness: days since each build's baseline was refreshed; refresh after each feature update.
- Rule precision: share of core process alerts that are true positives or useful findings after tuning; a falling rate means exceptions need review.
- Exception hygiene: number of exceptions with no owner or reason, which should be zero.
- LSA protection rate: percentage of hosts logging Wininit event 12 at last boot.
- Time to triage: median minutes from a parent or path anomaly alert to a decision.
Common failure patterns
- Trusting the name column. Analysts scanning Task Manager see svchost.exe and move on. Always add path, parent and account columns, or use tools that show them.
- Alerting on the current parent PID. csrss.exe, wininit.exe, winlogon.exe and explorer.exe have exited parents by design. Rules built on live parent lookups either flood or get disabled; use creation-time parent data.
- Exceptions by file name. Allowing "svchost.exe" or "agent.exe" anywhere recreates the gap masquerading exploits. Scope exceptions to full path and signer.
- One baseline for every build. A 2 GB VDI image groups services; a 32 GB workstation separates them. A single count threshold will be wrong for one of them.
- Ignoring injected genuine processes. A hollowed svchost.exe passes path and parent checks. Pair the baseline with behaviour signals such as Sysmon events 8, 10 and 25 and unexpected network connections; see the T1055 Process Injection Defensive Guide.
- Not collecting command lines. Event 4688 command line is empty by default, which hides the svchost
-kcheck entirely.
Where identity fits
Every core process runs as a machine identity. services.exe launches each service under an account, and svchost.exe instances run as LocalSystem, LocalService or NetworkService unless configured otherwise. A service running as a named domain user, or a core process running under an interactive user, is both a masquerading signal and a non-human identity finding. Elastic's investigation guidance for parent-child anomalies includes listing services that run under accounts other than the built-in ones for exactly this reason. New or changed services are covered in the T1543 Create or Modify System Process Defensive Guide.
Framework mapping
| Framework | Reference | How the baseline supports it |
|---|---|---|
| MITRE ATT&CK | T1036.005 Match Legitimate Resource Name or Location; T1036.003 Rename Legitimate Utilities; T1036.004 Masquerade Task or Service | Path, parent and signer checks expose impostors |
| MITRE ATT&CK | T1055 Process Injection; T1055.012 Process Hollowing; T1003.001 LSASS Memory | Behaviour signals on genuine core processes |
| MITRE D3FEND | D3-PLA Process Lineage Analysis; D3-PSA Process Spawn Analysis | Parent-child rules are lineage and spawn analysis |
| NIST SP 800-53 Rev. 5 | SI-4 System Monitoring; AU-12 Audit Record Generation; CM-7 Least Functionality; CM-8 System Component Inventory | Process creation logging, monitoring against a defined normal, and knowing which services should run |
| NIST CSF 2.0 | DE.CM-09; DE.AE-02 | Monitoring runtime environments and analysing adverse events |
| CIS Controls v8.1 | Control 2 Inventory and Control of Software Assets; Control 8 Audit Log Management | Known software baseline and process logging |
| ISO/IEC 27001:2022 Annex A | A.8.15 Logging; A.8.16 Monitoring activities | Logging and monitoring for anomalous behaviour |
For hunting renamed system utilities rather than core processes, see How to Hunt for Living-off-the-Land Binary Abuse.
Practitioner checklist
- Enable Audit Process Creation and "Include command line in process creation events", or deploy Sysmon event 1, on every server and admin workstation.
- Build a per-build reference table of core process path, parent, account, signer and count from clean hosts.
- Deploy parent rules for smss.exe, wininit.exe, services.exe, lsass.exe and svchost.exe, in audit mode first.
- Deploy a path anomaly rule for core system binaries outside System32, SysWOW64 and WinSxS.
- Alert on svchost.exe started without a
-kservice group argument. - Alert on a second lsass.exe, lsass.exe with child processes, and unexpected handle access to lsass.exe.
- Turn on LSA protection and track Wininit event 12 across the fleet.
- Scope every exception to full path and signer, with an owner and review date.
- Refresh baselines after each Windows feature update or new security agent rollout.
Standards and references
- MITRE ATT&CK: T1036.005 Match Legitimate Resource Name or Location
- MITRE ATT&CK: T1055.012 Process Hollowing
- Microsoft Learn: Changes to Service Host grouping in Windows 10
- Microsoft Learn: 4688(S) A new process has been created
- Microsoft Learn: Sysmon
- Microsoft Learn: Configure added LSA protection
- Elastic: Unusual Parent-Child Relationship detection rule
- SigmaHQ: System File Execution Location Anomaly rule
Related NHI Mgmt Group resources: T1036 Masquerading Defensive Guide · Windows Internals for Defenders Guide · Sysmon Guide · LSA Protection (RunAsPPL) Guide · D3-PLA Process Lineage Analysis