Don’t let overlooked obligations become incidents. Learn how.
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 and Google Workspace identities and email environments.

    Managed ITDR

    Protect your Microsoft 365 and Google Workspace 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.

    Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Managed ESPM

    Proactively secure endpoints against attacks.

    Managed ESPM

    Proactively secure endpoints against attacks.

    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
    Infostealers
    Infostealers
    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
    What Gets Overlooked Gets Exploited

    Most days, nothing happens. But one day, something will.

    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
ChatGPT logoChatGPTOpens in new tabClaude logoClaudeOpens in new tabPerplexity logoPerplexityOpens in new tabGoogle Gemini logoGoogle AIOpens in new tab
AI sparkle iconSummarize This Page
ChatGPT logoChatGPTOpens in new tabClaude logoClaudeOpens in new tabPerplexity logoPerplexityOpens in new tabGoogle Gemini logoGoogle AIOpens in new tab

Don't let "later" cost you

Join us on May 20 (12pm EST) for _declassified, for an unfiltered look from Truman Kain at the overlooked security obligations that hit hard later.
Register now
Share
Facebook iconTwitter X iconLinkedin iconDownload icon
On This Page
We Are Huntress
Phishing is everywhere. But it can be prevented.

We Are Huntress

Phishing is everywhere. But it can be prevented.

Phishing is a cyberattack (usually email-based) that occurs when threat actors disguise themselves as legitimate entities to trick users into revealing personally identifiable or sensitive information.Phishing is one of the most common tactics used by hackers because it's efficient and effective. With new tools and tech like AI at their disposal, hackers can now send out convincing phishing attacks to the masses with little effort required. The good news: we can be one step ahead.
Care is Compromised
Medical services are disrupted, causing treatment delays, misdiagnoses, and even spikes in mortality rates.
Data is Breached
Sensitive patient data can be stolen and used for identity theft, blackmail, or sold online.
Finances Take a Hit
Ransom payments, recovery costs, and lost revenue are just a few of the financial hits. And don’t forget potential HIPAA fines.
Patients Lose Trust
Your reputation can suffer, and when that happens, your patients will go elsewhere for care.
Legal Backlash
Lawsuits from patients affected by a breach aren’t uncommon. You may also face regulatory penalties for non-compliance with data protection laws.
Operational Chaos
Accessing patient records, providing emergency care, and communicating among your staff becomes far more complex.
Huntress is custom built for you. But don't take our word for it – hear directly from businesses like yours.
Try Huntress for Free
On This Page
We Are Huntress
Phishing is everywhere. But it can be prevented.

Huntress Managed EDR in action

See how our expert-led solution can help you stay one step ahead of threat actors—without overwhelming your in-house team or busting your budget.
Start a Free TrialSchedule a Demo
Glitch effect

You Might Also Like

  • 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.
  • Hiding in Plain Sight: Part 2

    As a follow-up to our previous post, we recently uncovered a really peculiar piece of malware that works through a lot of different layers of abstraction.
  • Hackers Are Hiding in Plain Sight: Insights from Our 2024 Cyber Threat Report

    Cybercriminals are now blending into legitimate systems. Huntress’ 2024 Cyber Threat Report reveals the latest unsettling trends and tactics we observed, including the misuse of remote monitoring tools and cloud storage services.
  • The Case For SigParser

    Court is in session! In this blog post, we examine the use of a legitimate Microsoft 365 application called “SigParser” identified during an identity compromise. How are OAuth apps used during identity intrusions? Find out here!
  • Inside the Numbers: The Growing Reality of AI-Enhanced Candidate Fraud

    AI-driven deception is the new reality in hiring. Explore key statistics on deepfakes and resume fraud, and learn data-informed strategies to solidify your defense.
  • What Is Account Takeover (ATO) Fraud? Your Comprehensive Guide to Detection and Prevention

    Account takeover fraud happens when attackers steal login credentials to access accounts. Learn how to detect and prevent account takeover fraud.
  • Failing to Revive AUTOEXEC.BAT on Windows 7 & 10

    Does AUTOEXEC.BAT still run on modern Windows? We test Windows 7/10, explore registry persistence, and revisit how attackers maintain access today.
  • 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.

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
Huntress Managed Security PlatformManaged EDRManaged EDR for macOSManaged EDR for LinuxManaged ITDRManaged SIEMManaged Security Awareness TrainingManaged ISPMManaged ESPMBook 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 242k+ 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