Your business’ toughest competition might be criminal. See why.
Utility navigation bar redirect icon
Portal LoginSupportContact
Search
Close search
Huntress Logo in Teal
  • Platform Overview
    Managed EDR

    Get full endpoint visibility, detection, and response

    Managed EDR

    Get full endpoint visibility, detection, and response

    Managed ITDR

    Protect your Microsoft 365 identities and email environments.

    Managed ITDR

    Protect your Microsoft 365 identities and email environments.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Integrations
    Integrations
    Support Documentation
    Support Documentation
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
  • Threats We Stop
    Phishing
    Phishing
    Business Email Compromise
    Business Email Compromise
    Ransomware
    Ransomware
    View Allright arrowView Allright arrow
    Industries We Serve
    Education
    Education
    Financial Services
    Financial Services
    State and Local Government
    State and Local Government
    Healthcare
    Healthcare
    Law Firms
    Law Firms
    Manufacturing
    Manufacturing
    Utilities
    Utilities
    View Allright arrowView Allright arrow
    Tailored Solutions
    MSPs
    MSPs
    Resellers
    Resellers
    SMBs
    SMBs
    Compliance
    Compliance
    Cybercriminals Have Evolved

    Get the intel on today’s cybercriminal groups and learn how to protect yourself.

    Huntress Cybersecurity
    Cybercriminals Have Evolved

    Get the intel on today’s cybercriminal groups and learn how to protect yourself.

    Huntress Cybersecurity
  • Pricing
  • Community Series
    The Product Lab

    Shape the next big thing in cybersecurity together.

    The Product Lab

    Shape the next big thing in cybersecurity together.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    Resources
    Upcoming Events
    Upcoming Events
    ebooks
    ebooks
    On-Demand Webinars
    On-Demand Webinars
    Videos
    Videos
    Whitepapers
    Whitepapers
    Datasheets
    Datasheets
    Cybersecurity Education
    Cybersecurity 101
    Cybersecurity 101
    Cybersecurity Guides
    Cybersecurity Guides
    Threat Library
    Threat Library
    Real Tradecraft, Real Results
    Real Tradecraft, Real Results
    2026 Cyber Threat Report
    2026 Cyber Threat Report
    The Huntress Blog
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
  • Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    The Huntress SOC

    24/7 Security Operations Center

    The Huntress SOC

    24/7 Security Operations Center

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Community

    Get in touch with the Huntress Community team

    Community

    Get in touch with the Huntress Community team

    Compare Huntress
    Bitdefender
    Bitdefender
    Blackpoint
    Blackpoint
    Breach Secure Now!
    Breach Secure Now!
    Crowdstrike
    Crowdstrike
    Datto
    Datto
    SentinelOne
    SentinelOne
    Sophos
    Sophos
    Compare Allright arrowCompare Allright arrow
  • HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    Partners
    MSPs

    Join our partner community to deliver expert-led managed security.

    MSPs

    Join our partner community to deliver expert-led managed security.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Tech Alliances

    Driving innovation through global technology Partnerships

    Tech Alliances

    Driving innovation through global technology Partnerships

    Microsoft Partnership

    A Level-Up for Your Business Security

    Microsoft Partnership

    A Level-Up for Your Business Security

  • Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Awards
    Awards
    Contact Us
    Contact Us
  • Portal Login
  • Support
  • Contact
  • Search
  • Get a Demo
  • Start for Free
Portal LoginSupportContact
Search
Close search
Get a Demo
Start for Free
HomeBlog
Hiding in Plain Sight with App Domain Manager Injection
Published:
February 19, 2026

Hiding in Plain Sight with App Domain Manager Injection

By:
Team Huntress
Share icon
Glitch effectGlitch effectGlitch effect

A little-known feature of the .NET framework allows attackers to execute malicious code inside trusted, Microsoft-signed applications without exploiting a software flaw or dropping a standalone payload. By manipulating configuration files or environment variables, adversaries can quietly redirect how .NET applications initialize, permitting covert code execution under the guise of a legitimate .NET application.

During a live session of the Huntress Tradecraft Tuesday series, threat hunters Casey Smith and John Hammond examined this technique, known as App Domain Manager injection, and demonstrated how it fits squarely into the broader theme of living off the land, where attackers abuse native operating system binaries and trusted applications to execute, persist, or move laterally in a breached network.

The session opened with stories dominating the news headlines, including the targeted Notepad++ supply chain compromise and the ongoing exploitation of SolarWinds Web Help Desk. In both cases, attackers relied heavily on trusted tools and legitimate system features rather than overt malware deployments. That context set the stage for the main discussion: attackers increasingly succeed by bending existing application logic to their will rather than introducing obviously malicious binaries.

According to Smith, a Staff Threat Intelligence Analyst here at Huntress, App Domain Manager injection operates inside the .NET framework’s initialization process. When a .NET application launches, the runtime checks for configuration instructions that define how the application domain should be initialized. 

He explained that developers use this mechanism legitimately to control isolation boundaries and startup behavior, but warned that the same feature can be repurposed for malicious purposes. By placing a specially crafted configuration file alongside a target executable, an attacker can instruct the runtime to load an arbitrary assembly before the application’s normal logic executes. The injected code runs under the context of a legitimate, often Microsoft-signed process.

The technique doesn't rely on classic DLL injection patterns such as remote memory manipulation or process handle abuse. Instead, Smith walked through how to manipulate configuration files or environment variables to influence assembly loading behavior. This distinction matters because the execution chain appears natural and the visible process is legitimate. 

Smith warned that the technique is significant because it works against any .NET Framework Application, leverages trusted Microsoft-signed binaries, and can be used for local or remote code execution.

He also noted that App Domain Manager injection represents a later-stage technique in an attack chain. If detected, it indicates the attacker already has initial access and significant control.

Figure 1: Steps required to perform an injection


The demonstration covered three variations. The simplest involved copying a trusted .NET executable into a writable directory, placing a matching .exe.config file next to it, and specifying a malicious assembly to load. 

When executed from that directory, the application loads the attacker-controlled DLL before continuing with normal execution. The same technique can be extended to remote loading by pointing the configuration at an HTTP or UNC path and specifying the required public key token.

Smith explained that the runtime will download and execute the remote assembly, creating a mechanism for remote code execution that still operates under the guise of a trusted binary.

Figure 2: Targeting a writable path in Windows to take advantage of how the Microsoft Common Language Runtime normally finds a binary


A third variation uses environment variables rather than configuration files. According to published Microsoft documentation, an attacker can set APPDOMAIN_MANAGER_ASM and APPDOMAIN_MANAGER_TYPE to globally influence .NET assembly resolution behavior for child processes. Because environment variables propagate to spawned processes, this allows chaining across multiple .NET applications. In practice, this means that once the variables are set, any .NET executable launched in that session may load the attacker’s assembly. 

Figure 3: A small configuration change can trigger remote execution


Smith and Hammond noted that the technique has appeared in public reporting, including in red-team assessments from the US government’s cybersecurity agency, CISA, and in industry research. It's been used for lateral movement and execution under trusted processes, particularly in environments where application allow-listing or traditional execution controls are deployed. 

Because the initial binary remains signed and legitimate, defenders must rely on behavioral artifacts rather than simple signature-based detection, the researchers explained.


Figure 4: CISA advisory flags this technique in public red-team assessments

From a defensive perspective, Smith and Hammond emphasized that unusual execution paths are a primary signal to investigate, particularly when trusted .NET binaries that normally reside in system directories are launched from writable or unexpected locations. 

The researchers suggest that new or modified .exe.config files should also be treated as suspicious, since attackers rely on these configuration changes to redirect how assemblies are loaded, and remote-loading activity can leave artifacts in user profile locations such as the WinInet cache and the .NET Assembly cache under AppData. 

To analyze and validate this behavior, Smith said defenders should enable Fusion logging to capture detailed assembly resolution activity and use tools like Process Monitor to observe file access patterns and identify when malicious assemblies are being loaded.

Figure 5: Defenders can look for odd paths, dropped DLLs, and network callouts to find signs of infections


Smith also recommends monitoring environment variable modifications if possible, making it clear that APPDOMAIN_MANAGER-related variables shouldn't typically appear in production environments. If they do, defenders should investigate immediately because this likely indicates that the attacker has progressed well into the intrusion lifecycle.

The broader takeaway aligns with the living-off-the-land theme. Attackers continue to prefer techniques that rely on built-in system components, legitimate development features, and trusted binaries. App Domain Manager injection doesn't exploit a vulnerability; it uses a built-in feature, as designed.

As a result, prevention depends less on patching and more on visibility into configuration changes, execution context, and assembly loading behavior, Smith explained.

Figure 6: Countermeasures


For defenders, the early warning lies in understanding that many .NET applications (including third-party software) are susceptible to this technique. Organizations that rely heavily on .NET-based tooling should consider whether their telemetry captures configuration file creation, assembly resolution behavior, and environment variable manipulation. Without that visibility, this technique can operate quietly within otherwise trusted processes.

This Tradecraft Tuesday session reinforced a consistent lesson: attackers often don't need new exploits when existing functionality provides sufficient leverage. Understanding how legitimate systems behave under normal conditions is essential to recognizing when that behavior has been subtly redirected.


Like what you just read? Join us every month for Tradecraft Tuesday, our live webinar where we expose hacker techniques and talk nerdy with live demos. Snag your spot now!




Categories
Cybersecurity Education
Summarize this postClose Speech Bubble
ChatGPTClaudePerplexityGoogle AI

Step inside the dark world of cybercrime

Join us on March 18 (12pm EST) for _declassified, a raw intel drop where John Hammond and Jim Browning break down how modern cybercrime runs like a real business.
Register now
Share
Facebook iconTwitter X iconLinkedin iconDownload icon
Glitch effect

You Might Also Like

  • From Custom Scripts to Commodity RATs: A Threat Actor’s Evolution to PureRAT

    Trace a threat actor's journey from custom Python stealers to a sophisticated commodity RAT. Learn how their tactics evolved and why this shift to .NET matters.
  • ClickFix Gets Creative: Malware Buried in Images

    Huntress uncovered an attack utilizing a ClickFix lure to initiate a multi-stage malware execution chain. This analysis reveals how threat actors use steganography to conceal infostealers like LummaC2 and Rhadamanthys within seemingly harmless PNGs.
  • Cobalt Strikes Again: An Analysis of Obfuscated Malware

    Join us for a threat hunting adventure as we analyze a suspicious run key that leads us to Cobalt Strike malware hidden across nearly 700 registry values.
  • defendnot? Defend YES! Detecting Malicious Security Product Bypass Techniques

    "defendnot" bypasses Windows Defender using undocumented APIs. Learn detection strategies and robust defenses against this sophisticated evasion technique.
  • Peeling Back the Layers of .NET Malware

    Hackers always try to cover up their tracks. In this blog, we step through layers of obfuscation to uncover the real intent of a .NET malware sample.
  • Hiding In Plain Sight

    There’s no end to the stealthy ways in which attackers develop and execute their tradecraft. In this case, it's as simple as hiding in plain sight.
  • Beware of Traitorware: Using Splunk for Persistence

    This blog illustrates how the Splunk Universal Forwarder (UF) can be used as traitorware for persistence and remote code execution.
  • Abusing Trusted Applications with Nested Execution

    Recently, my co-founders gave a talk at DerbyCon 7.0 on evading common persistence enumeration tools. Evasion using trusted applications has been a hot topic of discussion within the infosec community and is one of the techniques they covered in their presentation. However, very little discussion exists on why these matter or the steps researchers take to find “hosting” applications.

Sign Up for Huntress Updates

Get insider access to Huntress tradecraft, killer events, and the freshest blog updates.
Privacy • Terms
By submitting this form, you accept our Terms of Service & Privacy Policy
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Huntress Managed Security PlatformManaged EDRManaged EDR for macOSManaged EDR for LinuxManaged ITDRManaged SIEMManaged Security Awareness TrainingBook a Demo
PhishingComplianceBusiness Email CompromiseEducationFinanceHealthcareManufacturingState & Local Government
Managed Service ProvidersResellersIT & Security Teams24/7 SOCCase Studies
BlogResource CenterCybersecurity 101Upcoming EventsSupport Documentation
Our CompanyLeadershipNews & PressCareersContact Us
Huntress white logo

Protecting 215k+ customers like you with enterprise-grade protection.

Privacy PolicyCookie PolicyTerms of UseCookie Consent
Linkedin iconTwitter X iconYouTube iconInstagram icon
© 2025 Huntress All Rights Reserved.

Join the Hunt

Get insider access to Huntress tradecraft, killer events, and the freshest blog updates.

By submitting this form, you accept our Terms of Service & Privacy Policy