cscli scenarios install sigmahq/proc_creation_win_aspnet_compiler_susp_paths
1type: trigger2name: sigmahq/proc_creation_win_aspnet_compiler_susp_paths3description: |4 Detects execution of "aspnet_compiler.exe" with potentially suspicious paths for compilation.5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.Image contains 'C:\\Windows\\Microsoft.NET\\Framework\\' || evt.Parsed.Image contains 'C:\\Windows\\Microsoft.NET\\Framework64\\') && evt.Parsed.Image endsWith '\\aspnet_compiler.exe' && (evt.Parsed.CommandLine contains '\\Users\\Public\\' || evt.Parsed.CommandLine contains '\\AppData\\Local\\Temp\\' || evt.Parsed.CommandLine contains '\\AppData\\Local\\Roaming\\' || evt.Parsed.CommandLine contains ':\\Temp\\' || evt.Parsed.CommandLine contains ':\\Windows\\Temp\\' || evt.Parsed.CommandLine contains ':\\Windows\\System32\\Tasks\\' || evt.Parsed.CommandLine contains ':\\Windows\\Tasks\\'))7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t11271516 label: "Potentially Suspicious ASP.NET Compilation Via AspNetCompiler"17 behavior : "windows:audit"18 remediation: false1920scope:21 type: ParentProcessId22 expression: evt.Parsed.ParentProcessId2324