# Bishop Fox Research: Obfuscated Mythic Apollo (.NET) Agent Forks Evading EDR/AV Static and Heuristic Detection

> Bishop Fox (Rob Antonucci) describes forking Mythic's Apollo .NET agent and building a custom .NET obfuscation pipeline that, per the authors, evaded Elastic YARA rule Multi_Trojan_Mythic_4beb7e17 and Microsoft Defender's Wacatac heuristic in their tests. This is authorized red-team tooling research; no threat-actor activity is attributed and no CVE is involved.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-02T17:27:32Z
- **Last updated:** 2026-12-02T17:27:32Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7299
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7299.png
- **ID:** TL-2026-7299
- **Severity:** LOW
- **Category:** THREAT_INTEL
- **Status:** MONITORING
- **Detections:** 9 (1 shown free below) · **IOCs:** 20

## Description

Bishop Fox published 'From Fork to Framework: What Modifying Apollo Taught Us About Agent Evasion' on 2026-09-18. The authors forked Apollo, the Windows .NET agent for the open-source Mythic C2 framework, to meet red-team goals such as application allowlisting bypass, AppDomain injection and MSBuild XML payload execution against a well-known EDR product. Fork work ran from roughly July 2025 to February 2026, with commits dated 2025-08-07 to 2026-03-31. Later custom agents were tested from March to September 2026.

The authors built a custom obfuscator on dnlib (IL transformations) and AsmResolver (post-write PE patching) and replaced Costura.Fody with ILRepack so a single merged assembly could be processed. The article describes, at a high level: symbol and namespace renaming from a pool of over 450 enterprise-style names, per-build rolling-XOR string encryption, removal of compiler/debugger attributes and ILRepack/ILMerge/Costura artifacts, PE version resource rewriting, and further passes in a 16-step pipeline (dead code injection, control-flow flattening, anti-debug injection; some experimental passes disabled by default). The authors withhold the obfuscation map values.

Detections discussed: the Elastic YARA rule Multi_Trojan_Mythic_4beb7e17, which lists eleven Mythic protocol strings and fires at severity 100 when seven match (renamed fields included c2_profile, is_file, file_browser, get_tasking, post_response, is_screenshot); Microsoft Defender's Wacatac heuristic, which flagged the binary because of linked Injection and DInvokeResolver assemblies and a hardcoded User-Agent string; and SentinelOne's static engine, which flagged the identifiers IMythicMessage and GetMythicUUID (removed in a 2026-03-31 commit). The authors report the newer custom agents were not detected by Elastic, Microsoft Defender, Defender for Endpoint, CrowdStrike or SentinelOne in the environments they encountered. These are vendor-agnostic first-party claims and were not independently verified.

The article is written for red-team developers and contains little explicit defensive guidance. The defensive takeaway is that static signatures keyed on Mythic protocol field names, framework identifiers and structural patterns are brittle against rebuilt forks, so defenders should add behavioral coverage (process injection, AppDomainManager hijacking, MSBuild abuse, anomalous .NET assembly loads, HTTP C2 beaconing patterns) and treat obfuscation artifacts as a signal. No file hashes, domains or IPs are published; the IOCs below are tooling, detection-name and static-string artifacts only.

## MITRE ATT&CK

- T1587.001 Malware
- T1588.002 Tool
- T1027 Obfuscated Files or Information
- T1027.013 Encrypted/Encoded File
- T1027.004 Compile After Delivery
- T1036 Masquerading
- T1622 Debugger Evasion
- T1127.001 MSBuild
- T1574.014 AppDomainManager
- T1055 Process Injection
- T1106 Native API
- T1071.001 Web Protocols

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

**Mythic Apollo Fork - Suspicious MSBuild Inline Task Execution (Exploitation/Execution)** (`TL-2026-7299-SPL-001`)

Detects MSBuild.exe started by scripting or Office parents, against project files in user-writable paths, or against non-project file extensions. This is the MSBuild XML payload execution pattern (T1127.001, T1027.004) described in the Bishop Fox research on obfuscated Mythic Apollo (.NET) forks (TL-2026-7299). Static signatures such as Elastic Multi_Trojan_Mythic_4beb7e17 are reported to miss these forks, so behavioural coverage of the execution proxy matters.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1127.001, T1027.004
- **Data sources:** sysmon:process_creation (XmlWinEventLog:Microsoft-Windows-Sysmon/Operational EventCode=1), Microsoft Defender for Endpoint DeviceProcessEvents
- **Severity:** medium
- **Confidence:** medium

### Splunk SPL

````spl
index=sysmon sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 OriginalFileName="MSBuild.exe" earliest=-24h NOT (ParentImage="*devenv.exe" OR ParentImage="*vcpkgsrv.exe")
```comment
Mythic Apollo forks (TL-2026-7299) abuse MSBuild inline task XML to run .NET payloads, T1127.001
```
| eval parent_l=lower(ParentImage), cmd_l=lower(CommandLine)
| eval susp_parent=if(match(parent_l,"(?i).(cmd|powershell|pwsh|wscript|cscript|mshta|rundll32|wmiprvse|winword|excel|outlook|wmic)[.]exe$"),1,0)
| eval susp_project=if(match(cmd_l,"(?i).(users.public|programdata|windows.temp|perflogs|appdata.local.temp|downloads)."),1,0)
| eval susp_ext=if(match(cmd_l,"[.](xml|tmp|dat|txt|log|png|jpg)([^a-z0-9]|$)"),1,0)
| where susp_parent=1 OR susp_project=1 OR susp_ext=1
| stats count min(_time) as first_seen max(_time) as last_seen values(CommandLine) as command_lines values(ParentImage) as parent_images max(susp_parent) as susp_parent max(susp_project) as susp_project max(susp_ext) as susp_ext by host User
| convert ctime(first_seen) ctime(last_seen)
````

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName =~ 'MSBuild.exe' or ProcessVersionInfoOriginalFileName =~ 'MSBuild.exe'
| where InitiatingProcessFileName !in~ ('devenv.exe', 'vcpkgsrv.exe', 'MSBuild.exe')
| extend SuspParent = InitiatingProcessFileName in~ ('cmd.exe', 'powershell.exe', 'pwsh.exe', 'wscript.exe', 'cscript.exe', 'mshta.exe', 'rundll32.exe', 'wmiprvse.exe', 'winword.exe', 'excel.exe', 'outlook.exe', 'wmic.exe')
| extend SuspPath = ProcessCommandLine matches regex @'(?i).(users.public|programdata|windows.temp|perflogs|appdata.local.temp|downloads).'
| extend SuspExt = ProcessCommandLine matches regex @'(?i)[.](xml|tmp|dat|txt|log|png|jpg)([^a-z0-9]|$)'
| where SuspParent or SuspPath or SuspExt
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessFolderPath, SHA256, SuspParent, SuspPath, SuspExt
```

### Sigma

```yaml
title: Mythic Apollo Fork - Suspicious MSBuild Inline Task Execution
id: 6f1c2a54-3b7e-4d0a-9c5e-8a1d2f7b9e31
status: experimental
description: Detects MSBuild.exe launched from scripting or Office parents, against project files in user-writable paths, or against non-project file extensions. Matches the MSBuild XML payload execution pattern described for obfuscated Mythic Apollo forks (TL-2026-7299).
references:
  - https://bishopfox.com/blog/what-modifying-apollo-taught-us-about-agent-evasion
  - https://attack.mitre.org/techniques/T1127/001/
author: Threadlinqs Team
date: 2026-12-02
tags:
  - attack.defense-evasion
  - attack.t1127.001
  - attack.t1027.004
  - attack.s0699
logsource:
  category: process_creation
  product: windows
detection:
  sel_img:
    OriginalFileName: 'MSBuild.exe'
  susp_parent:
    ParentImage|endswith:
      - '\cmd.exe'
      - '\powershell.exe'
      - '\pwsh.exe'
      - '\wscript.exe'
      - '\cscript.exe'
      - '\mshta.exe'
      - '\rundll32.exe'
      - '\wmiprvse.exe'
      - '\winword.exe'
      - '\excel.exe'
      - '\outlook.exe'
      - '\wmic.exe'
  susp_path:
    CommandLine|re: '(?i).(users.public|programdata|windows.temp|perflogs|appdata.local.temp|downloads).'
  susp_ext:
    CommandLine|re: '(?i)[.](xml|tmp|dat|txt|log|png|jpg)([^a-z0-9]|$)'
  filter_dev:
    ParentImage|endswith:
      - '\devenv.exe'
      - '\vcpkgsrv.exe'
      - '\MSBuild.exe'
  condition: sel_img and 1 of susp_* and not filter_dev
falsepositives:
  - Build servers and developer workstations running MSBuild from scripts or CI agents
  - Software installers invoking MSBuild with generated project files
level: medium
```

**Known false positives:**

- Build servers, CI agents and developer workstations legitimately launching MSBuild from scripts or from project paths under user profiles
- Installers or packaging tools that invoke MSBuild with generated .xml/.tmp project files

**Tuning notes:** Restrict to non-developer hosts first (MSBuild should be rare on general endpoints, per the research workaround). Add known build-server hostnames and CI parent processes to an exclusion lookup. Tighten susp_ext/susp_path if developer source trees under C:\Users generate noise.

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

- Mythic Apollo - AppDomainManager Hijack via Environment Variable or exe.config (Exploitation/Persistence) (locked: unlock with TL Creds)
- Mythic Apollo - Remote Process [indicator] API Chain from User-Path Process (Post-Exploitation) (locked: unlock with TL Creds)
- Mythic Apollo - Periodic HTTP(S) Beaconing from User-Path Process (C2) (locked: unlock with TL Creds)
- Mythic Apollo Fork - Unsigned Binary in User-Writable Path Loading the .NET CLR (Exploitation) (locked: unlock with TL Creds)
- Mythic Apollo Fork - Obfuscation and Build Tooling Artifacts on Non-Developer Host (Post-Exploitation/Tooling) (locked: unlock with TL Creds)
- Mythic Apollo Fork - MSBuild Outbound Network Connection to Non-Microsoft Public Host (C2) (locked: unlock with TL Creds)
- Mythic Apollo - Sacrificial Process Spawned Without Arguments by User-Path Parent (Post-Exploitation) (locked: unlock with TL Creds)
- Mythic Apollo - HTTP C2 Beaconing and Default Profile URI in Proxy Logs (C2) (locked: unlock with TL Creds)

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

## Sources

- [From Fork to Framework: What Modifying Apollo Taught Us About Agent Evasion (Bishop Fox, Rob Antonucci)](https://bishopfox.com/blog/what-modifying-apollo-taught-us-about-agent-evasion)
- [MythicAgents/Apollo - Windows .NET agent for Mythic](https://github.com/MythicAgents/Apollo)
- [its-a-feature/Mythic - cross-platform post-exploitation red teaming framework](https://github.com/its-a-feature/Mythic)
- [elastic/protections-artifacts (YARA rules repository)](https://github.com/elastic/protections-artifacts)
- [MalwareBazaar: YARA rule Multi_Trojan_Mythic_4beb7e17](https://bazaar.abuse.ch/browse/yara/Multi_Trojan_Mythic_4beb7e17/)
- [YARAify: Elastic YARA repository](https://yaraify.abuse.ch/repository/elastic/)

## 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 and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

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