Sigma rule: Arbitrary DLL or Csproj Code Execution Via Dotnet.EXE

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-a9a7f973cab6, updated 2025-10-08T00:00:00.000Z.

Rule

Title
Arbitrary DLL or Csproj Code Execution Via Dotnet.EXE
Status
test
Level
medium
Author
Beyu Denis, oscd.community
Date
2020-10-18
Modified
2025-10-08
File
rules/windows/process_creation/proc_creation_win_dotnet_arbitrary_dll_csproj_execution.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects execution of arbitrary DLLs or unsigned code via a ".csproj" files via Dotnet.EXE.

Log source

product
windows
category
process_creation

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_*

False positives (as the rule lists them)

  • Legitimate administrator usage

Tags

  • attack.stealth
  • attack.t1218

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_dotnet_arbitrary_dll_csproj_execution.yml

Sources and licences

  • SigmaHQ

    "Arbitrary DLL or Csproj Code Execution Via Dotnet.EXE" by Beyu Denis, oscd.community (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_dotnet_arbitrary_dll_csproj_execution.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Arbitrary DLL or Csproj Code Execution Via Dotnet.EXE",
entity page, dataset version ref-a9a7f973cab6, updated 2025-10-08T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/d80d5c81-04ba-45b4-84e4-92eba40e0ad3 (accessed 2026-11-03).
Underlying source: SigmaHQ rule d80d5c81-04ba-45b4-84e4-92eba40e0ad3, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.