# Abusing and Detecting LOLBIN Usage of .NET Development Mode Features

DevFeed: [Abusing and Detecting LOLBIN Usage of .NET Development Mode Features](<https://devfeed.tech/articles/abusing-and-detecting-lolbin-usage-of-net-development-mode-features-20501.md>)

Original publisher: [Read original article](<https://bohops.com/2021/05/30/abusing-and-detecting-lolbin-usage-of-net-development-mode-features/>)

Author: bohops

Published: 2021-05-30T16:24:30Z

Content type: article

Language: en

Sources: [Bohops](<https://devfeed.tech/sources/bohops.md>)

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [.NET Framework](<https://devfeed.tech/topics/net-framework.md>)

Tags: [configuration](<https://devfeed.tech/tags/configuration.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [defensive](<https://devfeed.tech/tags/defensive.md>), [environment](<https://devfeed.tech/tags/environment.md>), [execution](<https://devfeed.tech/tags/execution.md>), [feature](<https://devfeed.tech/tags/feature.md>), [net](<https://devfeed.tech/tags/net.md>), [net-development](<https://devfeed.tech/tags/net-development.md>), [override](<https://devfeed.tech/tags/override.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>)

## AI overview

The excerpt describes turning a .NET executable into a living-off-the-land binary by redirecting assembly resolution ahead of the Global Assembly Cache (GAC). It requires a configuration file with `developmentMode` set to `true` and the `DEVPATH` environment variable pointing to a directory; the CLR then checks that path for unresolved dependencies before searching the GAC. An application configuration file can be modified without administrator privileges when placed in a writable directory alongside the target assembly, while changing the system-wide `machine.config` requires administrator privileges. The excerpt introduces execution examples and defensive detection considerations but ends before providing their details.

## Source excerpt

Background As discussed in this previous post, Microsoft has provided valuable (explicit and implicit) insight into the inner workings of the functional components of the .NET ecosystem through online documentation and by open-sourcing .NET Core. .NET, in general, is a very powerful and capable development platform and runtime framework for building and running .NET managed [...]