# Bring Your Own EDR Attack Turns SentinelOne Into PPL-Protected Trojan Horse to Shield Malware

> Akamai researcher Shahak Morag disclosed 'Bring Your Own EDR' (BYOEDR) at DEF CON 34: an administrator-level attacker abuses SentinelOne's SentinelHelper COM interface (an unvalidated Dump method), native Windows APIs, and the agent's own installer/tamper-protection logic to dump secrets from Windows Protected Process Light (PPL) processes and execute unsigned code inside Microsoft Defender's (MsMpEng.exe) protected context. SentinelOne fixed the root cause in Agent 26.1.1.

- **Published:** 2026-08-14T00:00:00Z
- **Last reviewed:** 2026-08-14T00:00:00Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-2017
- **Card image:** https://intel.threadlinqs.com/og/threat/threat-intel-sentinelone-byoedr-ppl-bypass-tl-2026-2017.webp?v=d325ba03 (Threadlinqs threat intel: Bring Your Own EDR SentinelOne Bypass: Analysis & Hunting (TL-2026-2017) — High severity, 9 IOCs, 9 detection rules.)
- **ID:** TL-2026-2017
- **Severity:** HIGH
- **Category:** VULNERABILITY
- **Status:** PATCHED
- **Detections:** 9 (1 shown free below) · **IOCs:** 9

## Description

At DEF CON 34 (Las Vegas, August 7, 2026), Akamai security researcher Shahak Morag presented "Bring-Your-Own-EDR – Breaking Windows Process Protection to build EDR-Protected Malware," published the same day as an Akamai blog post, 'Bring Your Own EDR: How to Turn a Commercial EDR into a Trojan Horse.' The research shows that SentinelOne exposes three local COM objects -- SentinelHelper.1, SentinelUI.1, and SentinelAgent.1. SentinelHelper.1 alone exposes a wide method surface: `Dump(uint processId, string userDumpPath, string kernelDumpPath)`, `GetAgentStatusJSON`, `ApplyConfig`, `GetConfig`, `SetConfig`, `SetProtectionState`, `UnprotectPPL`, `Stop`, `GetDumper`, `GetServiceToken`, and `LiveKernelDump`. Of these, `Dump` -- designed for use by the legitimate DiagnosticsCollector.ps1 script -- is the outlier: unlike SentinelHelper's other methods, it checks only that the caller holds administrator privileges, not the caller's file-system location. That gap lets any local-admin process invoke Dump against Windows Protected Process Light (PPL) targets signed at the `PsProtectedSignerAntimalware-Light` signer level, including SentinelOne's own SentinelAgent.exe and Microsoft Defender's MsMpEng.exe.

The full exploit chain has four phases. First, the attacker dumps a PPL process's memory via SentinelHelper.Dump, using `CoSetProxyBlanket` to configure the COM security/impersonation level needed to make the call succeed. Second, the dump is analyzed in WinDbg to recover process-specific COM secrets -- `combase!CProcessSecret::s_guidOle32Secret` (observed by Akamai as `{6c8844c0-0cd1-7a62-6f72-57d03fe54d6a}` in their proof-of-concept run) and the `g_pMTAEmptyCtx` pointer -- which, combined with the `CStdStubBuffer_AddRef` primitive, grant an arbitrary memory-read/injection primitive inside the PPL address space. This step builds directly on Slowerzs' prior PPLSystem research (github.com/Slowerzs/PPLSystem, blog.slowerzs.net/posts/pplsystem/, May 2024), which had already shown how to extract a PPL process's COM secret and context to remotely invoke `IRundown::DoCallback` inside the process, but stopped short of achieving arbitrary code execution; Akamai's contribution is extending that primitive into full shellcode execution. Third, the attacker reflectively maps an unsigned payload into the protected process using `NtMapViewOfSection`, working around several practical obstacles: the mapped entry page defaults to PAGE_READONLY (fixed via `NtProtectVirtualMemory`, flipping it to PAGE_EXECUTE_READWRITE), the PE-to-shellcode conversion tool (PE_TO_SHELLCODE) places its relocation-fixing code outside the mapped PE sections (worked around with a custom Python script that adds a `.overlay` section as an 8th PE section carrying the relocation shellcode), and relocation requires all sections to be marked RWX (characteristics `0xE0000020`, verified copy-on-write via WinDbg's `!vprot`) so the fixup code can rewrite them before the loader flips permissions back. The payload is statically compiled so it does not pull in unsigned runtime DLLs (e.g., vcruntime140.dll), which PPL rejects. Fourth, `NtCreateThreadEx` starts a thread at the mapped shellcode, achieving unsigned code execution inside the PPL boundary -- effectively subverting the code-signing enforcement PPL exists to guarantee.

Akamai also documented two complementary, non-memory-corruption abuses of SentinelOne's own installer and self-protection logic. The Windows MSI installer's registration flow can be tricked into completing a non-functional install: the installer extracts a temporary validation DLL, calls it, and deletes it, and Akamai used WinDbg plus Process Monitor to intercept that DLL and reverse-engineer the Base64-encoded JSON site-token format it expects (`{"url": "http://127.0.0.1:8888/", "site_key": "abc123xyz"}`), without any real management server; newer versions add a check against a `/api/v1.6/gw-overall-status` HTTP endpoint that a mock loopback server can also satisfy. The resulting agent reports a 'SECURE' status while providing no real protection. Separately, an attacker can run `sentinelctl.exe unprotect` to disable tamper protection, stage malware inside SentinelOne's own install directory, and re-run `sentinelctl.exe protect` (SetProtectionState/UnprotectPPL are the corresponding COM-exposed equivalents), causing the malware to inherit both PPL and SentinelOne's anti-tamper protection -- including a `PROCESS_QUERY_LIMITED_INFORMATION`-only access restriction against later tampering attempts -- turning the trusted EDR into a shield for the very payload it should detect. Akamai also queried the SentinelAgent COM object's `GetAgentStatusJSON` method to learn the configured management hostname, then redirected it to 127.0.0.1 via the local hosts file, silently cutting off cloud telemetry while the console still shows a protected status. Akamai explicitly linked the installer-abuse pattern to SafeBreach researcher Shmuel Cohen's 2023/2024 Black Hat Asia research weaponizing Palo Alto Networks Cortex XDR (safebreach.com/blog/dark-side-of-edr-offensive-tool/ and the Cortex-specific bypass writeup), which showed the same class of trusted-installer/self-protection abuse against a different EDR vendor.

Exploitation requires existing local administrator access -- no kernel exploit, signed vulnerable driver, or memory-corruption vulnerability against SentinelOne itself is needed. No CVE has been assigned. SentinelOne shipped Agent 26.1.1, which addresses the reported caller-validation gap in SentinelHelper.Dump, following Akamai's responsible disclosure; vulnerable versions run through 26.1.0, and the fix was already generally available at the time of public disclosure.

## MITRE ATT&CK

- T1106 Native API
- T1055.002 Process Injection: Portable Executable Injection
- T1620 Reflective Code Loading
- T1036.005 Match Legitimate Resource Name or Location
- T1685 Disable or Modify Tools
- T1685 Disable or Modify Tools
- T1553.006 Subvert Trust Controls: Code Signing Policy Modification
- T1027 Obfuscated Files or Information
- T1057 Process Discovery
- T1518.001 Software Discovery: Security Software Discovery

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**Reflective Unsigned Code Execution Inside PPL-Protected Process via NtMapViewOfSection/NtCreateThreadEx (BYOEDR Post-Exploitation)** (`TL-2026-2017-SPL-002`)

Detects a remote thread creation or process-image tampering event targeting the PPL-protected SentinelAgent.exe or MsMpEng.exe processes, originating from a process outside the SentinelOne/Windows Defender install directories. This is the observable artifact of the BYOEDR reflective-loading chain — NtMapViewOfSection to map an unsigned payload, NtProtectVirtualMemory to flip it PAGE_EXECUTE_READWRITE, and NtCreateThreadEx to start execution — that runs statically-linked shellcode inside a Protected Process Light boundary, effectively subverting Windows code-signing enforcement.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1055.002, T1620, T1027, T1553.006
- **Data sources:** sysmon (EventID 8 - CreateRemoteThread, EventID 25 - ProcessTampering), microsoft_defender_for_endpoint (DeviceEvents), windows_security
- **Severity:** critical
- **Confidence:** high

### Splunk SPL

```spl
`comment("BYOEDR post-exploitation: Sysmon EventID 25 (ProcessTampering) or EventID 8 (CreateRemoteThread) targeting the PPL-protected SentinelAgent.exe/MsMpEng.exe, indicating the NtMapViewOfSection + NtProtectVirtualMemory + NtCreateThreadEx reflective-loading chain")`
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" (EventCode=25 OR EventCode=8)
| eval target_lc=lower(coalesce(TargetImage, TargetProcessName))
| where like(target_lc, "%sentinelagent.exe%") OR like(target_lc, "%msmpeng.exe%")
| eval source_lc=lower(coalesce(SourceImage, Image))
| where NOT like(source_lc, "%\\program files\\sentinelone\\%") AND NOT like(source_lc, "%\\program files\\windows defender\\%")
| table _time, ComputerName, EventCode, SourceImage, SourceProcessId, TargetImage, TargetProcessId, StartFunction, StartModule, Type
| sort -_time
```

### Microsoft KQL

```kql
// BYOEDR post-exploitation: reflective code load into a PPL-protected process via NtMapViewOfSection + NtProtectVirtualMemory + NtCreateThreadEx
DeviceEvents
| where Timestamp > ago(24h)
| where ActionType in ("CreateRemoteThreadApiCall", "OpenProcessApiCall", "NtAllocateVirtualMemoryApiCall")
| where AdditionalFields has_any ("SentinelAgent.exe", "MsMpEng.exe")
| where InitiatingProcessFolderPath !has @"Program Files\SentinelOne" and InitiatingProcessFolderPath !has @"Windows Defender"
| project Timestamp, DeviceName, ActionType, InitiatingProcessFileName, InitiatingProcessFolderPath, InitiatingProcessCommandLine, AdditionalFields
| order by Timestamp desc
```

### Sigma

```yaml
title: Reflective Unsigned Code Injection Into PPL-Protected SentinelAgent.exe or MsMpEng.exe (BYOEDR)
id: 4a1e6d92-8c3b-4f77-9e21-5b0d7f4a9c15
status: experimental
description: Detects a remote thread being created inside the PPL-protected SentinelAgent.exe or MsMpEng.exe processes by a source process outside the SentinelOne/Windows Defender install directories, consistent with the BYOEDR NtMapViewOfSection/NtProtectVirtualMemory/NtCreateThreadEx reflective-loading chain used to run unsigned shellcode inside a Protected Process Light boundary.
references:
    - https://www.akamai.com/blog/security-research/bring-your-own-edr-turn-commercial-edr-trojan-horse
    - https://github.com/Slowerzs/PPLSystem
author: Threadlinqs Team
date: 2026-08-14
tags:
    - attack.defense_evasion
    - attack.t1055.002
    - attack.t1620
    - attack.t1027
    - attack.t1553.006
logsource:
    category: create_remote_thread
    product: windows
detection:
    selection_target:
        TargetImage|endswith:
            - '\SentinelAgent.exe'
            - '\MsMpEng.exe'
    filter_legit:
        SourceImage|startswith:
            - 'C:\Program Files\SentinelOne\'
            - 'C:\Program Files\Windows Defender\'
    condition: selection_target and not filter_legit
falsepositives:
    - SentinelOne or Windows Defender self-maintenance/upgrade processes legitimately creating a thread in or tampering with their own protected agent process
level: critical
```

**Known false positives:**

- SentinelOne or Windows Defender self-maintenance/upgrade processes legitimately creating a thread in or tampering with their own protected agent process
- Endpoint-protection reinstall/repair tooling running from a temporary staging path outside the standard install directory during an authorized upgrade

**Tuning notes:** Prioritize alerts where the same host also fired the Detection-1 PPL-dump alert within the prior 30 minutes (dump-then-inject chain is the hallmark of BYOEDR); if EventID 25 (ProcessTampering) is enabled in your Sysmon config, weight 'raw' tampering type higher than 'image is not signed'; expect near-zero legitimate volume once SentinelOne Agent 26.1.1+ is deployed fleet-wide.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- SentinelHelper.Dump() COM Abuse — PPL Memory Dump of SentinelAgent.exe/MsMpEng.exe (BYOEDR Exploitation) (locked: unlock with TL Creds)
- Reflective Unsigned Code Execution Inside PPL-Protected Process via NtMapViewOfSection/NtCreateThreadEx (BYOEDR Post-Exploitation) (locked: unlock with TL Creds)
- SentinelOne Tamper-Protection Toggle & Management-Console Blackout via sentinelctl/Hosts Redirect (BYOEDR Defense Evasion) (locked: unlock with TL Creds)
- SentinelHelper.Dump() COM Abuse — PPL Memory Dump of SentinelAgent.exe/MsMpEng.exe (BYOEDR Exploitation) (locked: unlock with TL Creds)
- Reflective Unsigned Code Execution Inside PPL-Protected Process via NtMapViewOfSection/NtCreateThreadEx (BYOEDR Post-Exploitation) (locked: unlock with TL Creds)
- SentinelOne Tamper-Protection Toggle & Management-Console Blackout via sentinelctl/Hosts Redirect (BYOEDR Defense Evasion) (locked: unlock with TL Creds)
- SentinelHelper.Dump() COM Abuse — PPL Memory Dump of SentinelAgent.exe/MsMpEng.exe (BYOEDR Exploitation) (locked: unlock with TL Creds)
- SentinelOne Tamper-Protection Toggle & Management-Console Blackout via sentinelctl/Hosts Redirect (BYOEDR Defense Evasion) (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sources

- [Bring Your Own EDR Attack Turns SentinelOne Into PPL-Protected Trojan Horse to Shield Malware](https://cybersecuritynews.com/bring-your-own-edr-attack/)
- [New Bring Your Own EDR Attack Turns SentinelOne Into Trojan Horse to Bypass Windows PPL](https://gbhackers.com/new-bring-your-own-edr-attack/)
- [Bring Your Own EDR: How to Turn a Commercial EDR into a Trojan Horse](https://www.akamai.com/blog/security-research/bring-your-own-edr-turn-commercial-edr-trojan-horse)
- [DEF CON 34 Hacking Conference - Speakers (Bring-Your-Own-EDR talk)](https://defcon.org/html/defcon-34/dc-34-speakers.html)
- [Protecting anti-malware services - Win32 apps | Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/services/protecting-anti-malware-services-)
- [PPLSystem (GitHub) - Injecting code into PPL processes without vulnerable drivers](https://github.com/Slowerzs/PPLSystem)
- [Injecting code into PPL processes without vulnerable drivers on Windows 11 - Slowerzs' blog](https://blog.slowerzs.net/posts/pplsystem/)
- [EDR as an Offensive Tool (SafeBreach - Cortex XDR weaponization prior art)](https://www.safebreach.com/blog/dark-side-of-edr-offensive-tool/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-2017
