# Bohops

A blog about cybersecurity research, education, and news

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Abusing .NET Core CLR Diagnostic Features (+ CVE-2023-33127)

DevFeed: [Abusing .NET Core CLR Diagnostic Features (+ CVE-2023-33127)](<https://devfeed.tech/articles/abusing-net-core-clr-diagnostic-features-cve-2023-33127-20507.md>)

Original publisher: [Read original article](<https://bohops.com/2023/11/27/abusing-net-core-clr-diagnostic-features-cve-2023-33127/>)

Author: bohops

Published: 2023-11-27T12:51:30Z

Content type: article

Language: en

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

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

Tags: [applications](<https://devfeed.tech/tags/applications.md>), [development](<https://devfeed.tech/tags/development.md>), [diagnostics](<https://devfeed.tech/tags/diagnostics.md>), [jit](<https://devfeed.tech/tags/jit.md>), [net](<https://devfeed.tech/tags/net.md>), [net-framework](<https://devfeed.tech/tags/net-framework.md>), [runtimes](<https://devfeed.tech/tags/runtimes.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>)

### AI overview

The article examines how diagnostic features in the open-source .NET Core CLR can be abused on modern Windows, with defensive considerations, SIGMA rules, and mitigation guidance promised at the end. It distinguishes Core CLR from the .NET Framework CLR and notes that Core CLR is included in some Windows UWP apps through .NET Native; it also identifies Visual Studio components and Azure DevOps Pipeline Agents as users of the open-source runtime. Runtime configuration knobs can be set through the registry, environment variables, and configuration files for development, debugging, and diagnostics. The excerpt begins to introduce the profiling API but does not provide abuse techniques, CVE-2023-33127 details, or mitigations.

### Source excerpt

Introduction Background .NET is an ecosystem of frameworks, runtimes, and languages for building and running a wide range of applications on a variety of platforms and devices. The .NET Framework was initially released in the early 2000s as Microsoft's implementation of the Common Language Infrastructure (CLI) specification. In 2016, Microsoft released .NET Core, the first [...]

## No Alloc, No Problem: Leveraging Program Entry Points for Process Injection

DevFeed: [No Alloc, No Problem: Leveraging Program Entry Points for Process Injection](<https://devfeed.tech/articles/no-alloc-no-problem-leveraging-program-entry-points-for-process-injection-20506.md>)

Original publisher: [Read original article](<https://bohops.com/2023/06/09/no-alloc-no-problem-leveraging-program-entry-points-for-process-injection/>)

Author: bohops

Published: 2023-06-09T00:53:46Z

Content type: article

Language: en

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

Topics: [Process](<https://devfeed.tech/topics/process.md>)

Tags: [code-injection](<https://devfeed.tech/tags/code-injection.md>), [context](<https://devfeed.tech/tags/context.md>), [defense](<https://devfeed.tech/tags/defense.md>), [edr](<https://devfeed.tech/tags/edr.md>), [essentials](<https://devfeed.tech/tags/essentials.md>), [evasion](<https://devfeed.tech/tags/evasion.md>), [examples](<https://devfeed.tech/tags/examples.md>), [execution](<https://devfeed.tech/tags/execution.md>), [leveraging](<https://devfeed.tech/tags/leveraging.md>), [mitre](<https://devfeed.tech/tags/mitre.md>), [points](<https://devfeed.tech/tags/points.md>), [privilege-escalation](<https://devfeed.tech/tags/privilege-escalation.md>), [process](<https://devfeed.tech/tags/process.md>), [program](<https://devfeed.tech/tags/program.md>), [red](<https://devfeed.tech/tags/red.md>), [remote](<https://devfeed.tech/tags/remote.md>), [teams](<https://devfeed.tech/tags/teams.md>), [techniques](<https://devfeed.tech/tags/techniques.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>), [use-cases](<https://devfeed.tech/tags/use-cases.md>), [used](<https://devfeed.tech/tags/used.md>)

### AI overview

The excerpt introduces remote process injection through a program's AddressOfEntryPoint, aiming to avoid explicit memory allocation and direct thread creation or context manipulation used in a classic injection sequence. In a newly created suspended process, the OS has loaded the program image and ntdll.dll but has not yet called the entry point. The article begins outlining how to locate that entry point for injection, but the supplied text cuts off before the procedure or its results are described.

### Source excerpt

Introduction Process Injection is a popular technique used by Red Teams and threat actors for defense evasion, privilege escalation, and other interesting use cases. At the time of this publishing, MITRE ATT&CK includes 12 (remote) process injection sub-techniques. Of course, there are numerous other examples as well as various and sundry derivatives. Recently, I was [...]

## Investigating .NET CLR Usage Log Tampering Techniques For EDR Evasion (Part 2)

DevFeed: [Investigating .NET CLR Usage Log Tampering Techniques For EDR Evasion (Part 2)](<https://devfeed.tech/articles/investigating-net-clr-usage-log-tampering-techniques-for-edr-evasion-part-2-20505.md>)

Original publisher: [Read original article](<https://bohops.com/2022/08/22/investigating-net-clr-usage-log-tampering-techniques-for-edr-evasion-part-2/>)

Author: bohops

Published: 2022-08-22T23:48:27Z

Content type: article

Language: en

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

Topics: [.NET](<https://devfeed.tech/topics/net.md>), [network security](<https://devfeed.tech/topics/network-security.md>), [Protection](<https://devfeed.tech/topics/protection.md>), [Process](<https://devfeed.tech/topics/process.md>), [observability](<https://devfeed.tech/topics/observability.md>), [Security Information and Event Management (SIEM)](<https://devfeed.tech/topics/siem-security.md>)

Tags: [32-bit](<https://devfeed.tech/tags/32-bit.md>), [64-bit](<https://devfeed.tech/tags/64-bit.md>), [application](<https://devfeed.tech/tags/application.md>), [applications](<https://devfeed.tech/tags/applications.md>), [assembly](<https://devfeed.tech/tags/assembly.md>), [block](<https://devfeed.tech/tags/block.md>), [code](<https://devfeed.tech/tags/code.md>), [context](<https://devfeed.tech/tags/context.md>), [created](<https://devfeed.tech/tags/created.md>), [crl](<https://devfeed.tech/tags/crl.md>), [data](<https://devfeed.tech/tags/data.md>), [defensive](<https://devfeed.tech/tags/defensive.md>), [edr](<https://devfeed.tech/tags/edr.md>), [edr-evasion](<https://devfeed.tech/tags/edr-evasion.md>), [evasion](<https://devfeed.tech/tags/evasion.md>), [log](<https://devfeed.tech/tags/log.md>), [logs](<https://devfeed.tech/tags/logs.md>), [net](<https://devfeed.tech/tags/net.md>), [research](<https://devfeed.tech/tags/research.md>), [techniques](<https://devfeed.tech/tags/techniques.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>)

### AI overview

The excerpt explains that the .NET CLR creates a per-process Usage Log containing assembly module data, typically just before process exit if a log does not already exist in the target directory. The logs support native image autogeneration, and their locations vary by user or system context and .NET version. Monitoring log creation can help identify suspicious or unlikely processes that loaded the CLR. The article says it will cover two additional tampering techniques, but the supplied excerpt cuts off as the first technique begins, so it does not establish how those techniques work or what defenses address them.

### Source excerpt

Introduction Last year, I blogged about Investigating .NET CLR Usage Log Tampering Techniques For EDR Evasion. In that part 1 post, we covered: Recently, I revisited the research topic to close the loop on some outstanding research and figured I would share. In this post, we'll recap .NET Usage Logs, highlight two other tampering techniques, [...]

## Unmanaged Code Execution with .NET Dynamic PInvoke

DevFeed: [Unmanaged Code Execution with .NET Dynamic PInvoke](<https://devfeed.tech/articles/unmanaged-code-execution-with-net-dynamic-pinvoke-20504.md>)

Original publisher: [Read original article](<https://bohops.com/2022/04/02/unmanaged-code-execution-with-net-dynamic-pinvoke/>)

Author: bohops

Published: 2022-04-02T16:45:49Z

Content type: article

Language: en

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

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

Tags: [code-execution](<https://devfeed.tech/tags/code-execution.md>), [endpoint-security](<https://devfeed.tech/tags/endpoint-security.md>), [evasion](<https://devfeed.tech/tags/evasion.md>), [interop](<https://devfeed.tech/tags/interop.md>), [net](<https://devfeed.tech/tags/net.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>)

### AI overview

The excerpt introduces Dynamic P/Invoke as a lightweight alternative way for managed .NET code to call and execute native code, motivated partly by defensive evasion. It contrasts this with classic P/Invoke, which uses declarations for native libraries and exported functions; in a compiled .NET PE, those APIs may not appear as direct imports, with the excerpt noting only `_CorExeMain` in an import analysis. The author loosely uses ".NET" for modern .NET Framework versions 4 and later, says other runtimes such as Core may be relevant, and distinguishes this technique from DInvoke. The excerpt ends before describing Dynamic P/Invoke's implementation or limitations.

### Source excerpt

Yes, you read that correctly - "Dynamic Pinvoke" as in "Dynamic Platform Invoke" Background Recently, I was browsing through Microsoft documentation and other blogs to gain a better understanding of .NET dynamic types and objects. I've always found the topic very interesting mainly due to its relative obscurity and the offensive opportunities for defensive evasion. [...]

## Analyzing and Detecting a VMTools Persistence Technique

DevFeed: [Analyzing and Detecting a VMTools Persistence Technique](<https://devfeed.tech/articles/analyzing-and-detecting-a-vmtools-persistence-technique-20503.md>)

Original publisher: [Read original article](<https://bohops.com/2021/10/08/analyzing-and-detecting-a-vmtools-persistence-technique/>)

Author: bohops

Published: 2021-10-08T03:42:18Z

Content type: tutorial

Language: en

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

Topics: [Persistence](<https://devfeed.tech/topics/persistence.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [Batch file](<https://devfeed.tech/topics/batch-file.md>), [Process](<https://devfeed.tech/topics/process.md>), [Windows](<https://devfeed.tech/topics/windows.md>), [Utility Software](<https://devfeed.tech/topics/utility.md>)

Tags: [batch](<https://devfeed.tech/tags/batch.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [payload](<https://devfeed.tech/tags/payload.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [process](<https://devfeed.tech/tags/process.md>), [script](<https://devfeed.tech/tags/script.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>), [utilities](<https://devfeed.tech/tags/utilities.md>), [windows](<https://devfeed.tech/tags/windows.md>)

### AI overview

This article analyzes a VMware Tools persistence technique on Windows virtual machines. It explains how VMwareToolBoxCmd.exe and the tools.conf file can configure batch scripts to run during VM power-state operations, and discusses detection strategies. The demonstrated payload runs as a child process of vmtoolsd.

### Source excerpt

Introduction It is always fun to reexplore previously discovered techniques or pick back on old research that was put on the wayside in hopes to maybe finding something new or different. Recently, I stood up an ESXi server at home and decided to take a quick peak at the VMware directory structure after installing the [...]

## 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 [...]

## Investigating .NET CLR Usage Log Tampering Techniques For EDR Evasion

DevFeed: [Investigating .NET CLR Usage Log Tampering Techniques For EDR Evasion](<https://devfeed.tech/articles/investigating-net-clr-usage-log-tampering-techniques-for-edr-evasion-20500.md>)

Original publisher: [Read original article](<https://bohops.com/2021/03/16/investigating-net-clr-usage-log-tampering-techniques-for-edr-evasion/>)

Author: bohops

Published: 2021-03-16T04:08:58Z

Content type: article

Language: en

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

Topics: [Endpoint Security & XDR](<https://devfeed.tech/topics/endpoint-security-xdr.md>), [Endpoint security](<https://devfeed.tech/topics/endpoint-security.md>), [.NET](<https://devfeed.tech/topics/net.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [Security Attacks](<https://devfeed.tech/topics/security-attacks.md>)

Tags: [edr](<https://devfeed.tech/tags/edr.md>), [edr-evasion](<https://devfeed.tech/tags/edr-evasion.md>), [evasion](<https://devfeed.tech/tags/evasion.md>), [net](<https://devfeed.tech/tags/net.md>), [uncategorized](<https://devfeed.tech/tags/uncategorized.md>)

### AI overview

The excerpt explains that .NET CLR Usage Logs record assembly module data for native image generation and can help defenders investigate .NET execution. The CLR typically writes a process-named log shortly before the process exits, under a user or system profile UsageLogs directory. The author suggests EDRs may monitor log creation to flag processes that unexpectedly load the CLR, while noting that defenders can also look for log tampering. The excerpt introduces these detection and evasion topics but does not provide the tampering techniques or specific monitoring methods.

### Source excerpt

Introduction In recent years, there have been numerous published techniques for evading endpoint security solutions and sources such as A/V, EDR and logging facilities. The methods deployed to achieve the desired result usually differ in sophistication and implementation, however, effectiveness is usually the end goal (of course, with thoughtful consideration of potential tradeoffs). Defenders can [...]