Suspicious Arbitrary DLL or Csproj Code Execution Through Dotnet.EXE (via process_creation)
This rule detects execution of arbitrary DLLs or unsigned code via a ".csproj" files via Dotnet.EXE.
SigmamediumWindowsv1
sigma
suspicious-arbitrary-dll-or-csproj-code-execution-through-dotnet-exe-via-process-creation
title: Suspicious Arbitrary DLL or Csproj Code Execution Through Dotnet.EXE (via process_creation)
id: 02e66f04-4d3c-542a-b82a-f390b33be46b
status: stable
description: This rule detects execution of arbitrary DLLs or unsigned code via a ".csproj" files via Dotnet.EXE.
references:
- https://attack.mitre.org/techniques/T1218/
- https://lolbas-project.github.io/lolbas/OtherMSBinaries/Dotnet/
- https://twitter.com/_felamos/status/1204705548668555264
- https://bohops.com/2019/08/19/dotnet-core-a-vector-for-awl-bypass-defense-evasion/
author: Huntrule Team
date: 2026-01-16
tags:
- attack.stealth
- attack.t1218
logsource:
category: process_creation
product: windows
detection:
selection_img:
- Image|endswith: '\dotnet.exe'
- OriginalFileName: '.NET Host'
selection_cli:
CommandLine|endswith:
- '.csproj'
- '.csproj"'
- '.dll'
- '.dll"'
- ".csproj'"
- ".dll'"
filter_optional_notepadplus_plus:
ParentImage:
- 'C:\Program Files (x86)\Notepad++\notepad++.exe'
- 'C:\Program Files\Notepad++\notepad++.exe'
CommandLine|contains|all:
- 'C:\ProgramData\CSScriptNpp\'
- '-cscs_path:'
- '\cs-script\cscs.dll'
condition: all of selection_* and not 1 of filter_optional_*
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.