Skip to main content
Mallory
← Back to News
detection-content-updateendpoint-security-bypasspayload-delivery-evasionproof-of-concept-release

Microsoft and Elastic Detail Detection for Windows Process Ghosting Evasion

Patch & Detection Intelligence · 3 sources · Updated 3mo ago · First seen Jun 30, 2022

Microsoft and Elastic Detail Detection for Windows Process Ghosting Evasion

Microsoft and Elastic published technical details on Process Ghosting and related Windows executable image tampering techniques that let malware run after its backing file has been altered or deleted, bypassing antimalware scanning during a time-of-check/time-of-use gap in process creation. The technique abuses legacy process creation behavior, including use of the NtCreateProcessEx path, and is closely related to process doppelganging, process herpaderping, and process reimaging. Elastic described how an attacker can create a file, mark it delete-pending, write a payload, map it into an image section, close the handle so the file is removed, and then launch a process from the now fileless image section.

Elastic reported that a proof-of-concept showed Windows Defender failing to scan a payload because the file was already delete-pending or deleted when scanning occurred, and said it had reported the issue to Microsoft’s MSRC, which replied that it did not meet the servicing bar. Microsoft later described a detection approach in Microsoft Defender for Endpoint that identifies processes created without the GUID_ECP_CREATE_USER_PROCESS extra create parameter and checks whether the executable image section lost disk coherency and became page-file-backed via MmDoesFileHaveUserWritableReferences. According to Microsoft, combining those signals enables detection of known and previously unpublished variants and can generate alerts for ghosting, herpaderping, and doppelganging seen in the wild.

Patch this, or something else?See real exploitation activity before you spend the cycle.
Triage this advisory
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · May 6, 2021 – Jun 30, 2022
  1. Jun 30, 20224y ago

    Microsoft publishes Defender detection for ghosting-style evasion

    Microsoft disclosed a new Microsoft Defender for Endpoint detection method for stealthy Windows process execution techniques that abuse legacy NtCreateProcessEx behavior, including process ghosting, herpaderping, and doppelganging. The approach uses absence of the GUID_ECP_CREATE_USER_PROCESS signal plus image-section coherency checks to identify these attacks and generate alerts seen in the wild.

    Using process creation properties to catch evasion techniques | Microsoft Security Blog
  2. Jun 15, 20215y ago

    Gabriel Landau publicly discloses Process Ghosting

    Gabriel Landau published a blog post describing Process Ghosting as a new Windows executable image tampering attack that runs malware from an image section after the backing file is deleted. The post also showed Windows Defender failing to scan and block a payload when the file was delete-pending or already deleted.

    What you need to know about Process Ghosting, a new executable image tampering attack | Elastic Blog
  3. May 10, 20216y ago

    Microsoft says Process Ghosting does not meet servicing bar

    Microsoft responded to Elastic's MSRC report and said the issue did not meet its servicing bar. The Elastic blog dates that response to 2021-05-10.

    What you need to know about Process Ghosting, a new executable image tampering attack | Elastic Blog
  4. May 6, 20216y ago

    Elastic reports Process Ghosting to MSRC

    Elastic Security Labs submitted a report about the Process Ghosting issue to the Microsoft Security Response Center. The blog states this occurred on 2021-05-06.

    What you need to know about Process Ghosting, a new executable image tampering attack | Elastic Blog
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

3 linked
Windows DefenderWindowsMicrosoft Defender For Endpoint
Do you run this?See real exploitation activity behind this advisory so you can triage it against everything else in the queue.
Prioritize This Patch
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.