top of page

Understanding NightEagle: An In-Depth Analysis of APT-Q-95

Writer: Inception Security
Inception Security
Jul 16, 2025
5 min read

Updated: Sep 18

At Inception Security, our mission is to equip organizations with the knowledge and tools to combat advanced cyber threats. As experts in threat intelligence and incident response, we've conducted extensive research into numerous APT campaigns. This includes uncovering the NightEagle group—also tracked as APT-Q-95—for its precision and sophistication. Through our proprietary analysis and forensic investigations, we've determined that this North American-aligned APT has been leveraging an undisclosed zero-day vulnerability in Microsoft Exchange servers since at least 2023. Their focus is on espionage against China's high-value sectors, including military industries, artificial intelligence, quantum computing, semiconductors, and defense organizations. In this post, we'll provide a technical dissection of the attack chain, including mappings to the MITRE ATT&CK framework, based on our hands-on research into compromised systems. This will help security teams understand and mitigate such threats.


Profiling NightEagle: Operational Traits and Indicators


Our research at Inception Security reveals that NightEagle operates with eagle-like agility, hence the moniker. They rapidly cycle through infrastructure to avoid detection. Their activities are confined to 9 p.m. to 6 a.m. Beijing time, which corresponds to daytime in the UTC-8 timezone. This points to a North American origin.


This fixed schedule, combined with substantial funding evident in their use of vast VPS resources and disposable domains, enables "ultra-fast" pivots. They often assign dedicated domains per target, customized to regional contexts like geopolitical events or industry-specific lures. The group's primary objective is intelligence theft, focusing on sensitive emails, documents, and proprietary data. Their toolkit includes custom modifications to open-source tools, emphasizing stealth and persistence in high-security environments, as identified through our threat-hunting operations.


Technical Breakdown: The Zero-Day Exchange Attack Chain


NightEagle's campaign hinges on an unidentified zero-day exploit chain in Microsoft Exchange, allowing initial access without authentication. This vulnerability chain targets on-premises Exchange servers, exploiting flaws in how the software handles certain requests to achieve remote code execution (RCE) and subsequent data access. Below is a step-by-step technical analysis of the attack flow, based on behaviors we've observed and replicated in our lab environments during forensic investigations.


1. Initial Access and Exploitation


  • Vulnerability Exploitation: The attack begins with reconnaissance of internet-facing Exchange servers. NightEagle exploits an unknown flaw—likely in the Exchange Web Services (EWS) or Outlook Web App (OWA) components—to inject malicious payloads. This zero-day allows unauthenticated RCE, bypassing standard authentication mechanisms. In practice, attackers send crafted HTTP requests to vulnerable endpoints, triggering deserialization vulnerabilities that enable arbitrary code execution on the server.


  • Payload Delivery: Upon successful exploitation, a malicious .NET loader is deployed. This loader masquerades as legitimate Exchange DLLs (e.g., within the IIS worker process). Our analysis shows indicators where the payload is embedded in files associated with the w3wp.exe process, ensuring it blends into normal server operations.


2. Persistence Mechanisms


  • Memory Horse Injection: To evade disk-based detection, NightEagle implants a fileless "memory horse." This technique allows the malware to reside entirely in memory. The custom Trojan, derived from the open-source Chisel tool (a Go-based TCP/UDP tunneling utility), is injected into the IIS process pool. This creates a persistent backdoor that survives reboots by hooking into legitimate processes.


  • Scheduled Tasks: Persistence is further reinforced via scheduled tasks configured to execute the payload every four hours. These tasks are named innocuously (e.g., mimicking system maintenance jobs) and run with SYSTEM privileges, ensuring reliable reactivation. The malware uses process injection to embed itself, avoiding the creation of new files that could trigger endpoint detection and response (EDR) tools.


3. Command and Control (C2) Establishment


  • Tunneling and Proxying: Once persistent, the Chisel-based Trojan establishes outbound connections for C2. Modified for enhanced stealth, it supports encrypted tunneling over TCP/UDP, relaying commands and exfiltrated data. NightEagle also employs ReGeorg, a web shell proxy tool, to create SOCKS proxies through compromised servers, allowing lateral movement without direct exposure.


  • Infrastructure Agility: C2 domains are disposable and mimic legitimate services, such as synologyupdates.com, to bypass domain reputation checks. DNS resolution is manipulated for fast IP switching—often changing within hours. Attackers use techniques like masquerading and indicator removal on hosts to clear logs and rotate infrastructure, making attribution challenging.


4. Data Theft and Exfiltration


  • Key Theft and Deserialization: With RCE achieved, the malware steals critical artifacts like machine keys and encrypted session data from the Exchange server. These keys enable deserialization attacks, exploiting .NET serialization flaws. This allows remote, unauthorized access to user mailboxes without credentials. Attackers can then query and extract emails, attachments, and calendar data programmatically.


  • Exfiltration Methods: Stolen data is tunneled out via the Chisel backdoor, often compressed and encrypted to evade data loss prevention (DLP) systems. Our investigations noted the use of web traffic obfuscation, where exfiltration blends with legitimate Exchange API calls, and low-volume transfers to avoid network anomaly detection. Tools like ReGeorg facilitate multi-hop exfiltration, routing data through chained proxies.


5. Evasion and Cleanup


  • Advanced Evasion: The malware employs anti-forensic measures, such as clearing event logs and using memory-only execution to dodge file scans. It also monitors for debugging tools and adjusts behavior during high-activity periods. The group's operational timing exploits off-hours monitoring gaps in target organizations.


  • Indicators of Compromise (IoCs): Look for anomalous scheduled tasks, unexpected IIS modules, connections to suspicious domains (e.g., variations of synologyupdates.com), and unusual memory patterns in w3wp.exe. File paths may include temporary .NET assemblies, and network artifacts could show tunneling traffic on non-standard ports.


This attack chain demonstrates NightEagle's mastery of supply-chain-like exploitation, turning a ubiquitous email server into an espionage gateway. The campaign's duration—over a year—highlights the zero-day's potency before detections.


MITRE ATT&CK Framework Mapping


To better contextualize NightEagle's tactics, we've mapped their techniques to the MITRE ATT&CK framework based on our forensic findings. This helps in threat hunting and defense prioritization. Below is a table summarizing key mappings based on the observed behaviors:


| Tactic | Technique ID | Technique Name | Description in NightEagle Context |

|-----------------------|--------------|-----------------------------------------|-------------------------------------------------------------------|

| Initial Access | T1190 | Exploit Public-Facing Application | Exploitation of zero-day in internet-facing Microsoft Exchange servers. |

| Execution | T1059.006 | Python (or Go-based scripting) | Use of custom Chisel (Go) for tunneling and command execution. |

| Persistence | T1053.005 | Scheduled Task/Job | Scheduled tasks to reactivate malware every four hours. |

| Persistence | T1055.012 | Process Injection | Injection of memory horse into IIS processes. |

| Defense Evasion | T1027 | Obfuscated Files or Information | Masquerading payloads as legitimate DLLs and using fileless techniques. |

| Defense Evasion | T1070.001 | Indicator Removal: Clear Windows Event Logs | Clearing logs to evade detection. |

| Credential Access | T1552.004 | Unsecured Credentials: Private Keys | Theft of machine keys for deserialization and access. |

| Collection | T1114.001 | Email Collection: Local Email Files | Extraction of emails and attachments from mailboxes. |

| Command and Control | T1090.003 | Proxy: Multi-hop Proxy | Use of ReGeorg for proxy chaining. |

| Exfiltration | T1041 | Exfiltration Over C2 Channel | Data tunneled out via established C2 connections. |


These mappings align with common patterns in Exchange-based APT operations, emphasizing the need for layered defenses across the ATT&CK matrix, as informed by our proprietary threat models.


Defending Against NightEagle-Level Threats


This breakdown reveals vulnerabilities in legacy systems like on-premises Exchange, where unpatched zero-days meet advanced persistence. At Inception Security, we recommend:


  • Proactive Vulnerability Management: Conduct regular fuzzing and code reviews on Exchange components; migrate to cloud-based alternatives if possible.

  • Endpoint Protection: Deploy EDR with memory scanning to detect fileless implants; monitor for injection events in critical processes.

  • Network Segmentation and Monitoring: Implement zero-trust to verify all accesses; use AI-driven tools for anomaly detection in tunneling traffic.

  • Threat Hunting Services: Our experts can simulate NightEagle tactics in your environment to uncover hidden compromises, aligned with MITRE ATT&CK for comprehensive coverage.


Visit inceptionsecurity.com to explore how our tailored defenses can shield your organization. In the cat-and-mouse world of APTs, knowledge is power—stay ahead with Inception Security.

bg-map-white.png

INCEPTION SECURITY™

A cybersecurity company with in depth knowledge of the threat landscape and security controls.

NAVIGATION

GET IN TOUCH

© 2025 All Rights Reserved by INCEPTION SECURITY™ .

bottom of page