{"id":"d80d5c81-04ba-45b4-84e4-92eba40e0ad3","title":"Arbitrary DLL or Csproj Code Execution Via Dotnet.EXE","description":"Detects execution of arbitrary DLLs or unsigned code via a \".csproj\" files via Dotnet.EXE.","author":"Beyu Denis, oscd.community","status":"test","level":"medium","date":"2020-10-18","modified":"2025-10-08","tags":["attack.stealth","attack.t1218"],"technique_ids":["T1218"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate administrator usage"],"references":["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/"],"source_path":"rules/windows/process_creation/proc_creation_win_dotnet_arbitrary_dll_csproj_execution.yml","source_sha256":"e5e6f0dfd6912fd605876894a1b35b3985bd2ebd480a7d3cb983a3b5ad459b92","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_dotnet_arbitrary_dll_csproj_execution.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Arbitrary DLL or Csproj Code Execution Via Dotnet.EXE\nid: d80d5c81-04ba-45b4-84e4-92eba40e0ad3\nstatus: test\ndescription: Detects execution of arbitrary DLLs or unsigned code via a \".csproj\" files via Dotnet.EXE.\nreferences:\n    - https://lolbas-project.github.io/lolbas/OtherMSBinaries/Dotnet/\n    - https://twitter.com/_felamos/status/1204705548668555264\n    - https://bohops.com/2019/08/19/dotnet-core-a-vector-for-awl-bypass-defense-evasion/\nauthor: Beyu Denis, oscd.community\ndate: 2020-10-18\nmodified: 2025-10-08\ntags:\n    - attack.stealth\n    - attack.t1218\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\dotnet.exe'\n        - OriginalFileName: '.NET Host'\n    selection_cli:\n        CommandLine|endswith:\n            - '.csproj'\n            - '.csproj\"'\n            - '.dll'\n            - '.dll\"'\n            - \".csproj'\"\n            - \".dll'\"\n    filter_optional_notepadplus_plus:\n        ParentImage:\n            - 'C:\\Program Files (x86)\\Notepad++\\notepad++.exe'\n            - 'C:\\Program Files\\Notepad++\\notepad++.exe'\n        CommandLine|contains|all:\n            - 'C:\\ProgramData\\CSScriptNpp\\'\n            - '-cscs_path:'\n            - '\\cs-script\\cscs.dll'\n    condition: all of selection_* and not 1 of filter_optional_*\nfalsepositives:\n    - Legitimate administrator usage\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1218","id":"T1218","name":"System Binary Proxy Execution","page":"techniques/enterprise/T1218/"}],"data_path":"data/detection-rules/d80d5c81-04ba-45b4-84e4-92eba40e0ad3.json","kind":"sigma"}
