cscli scenarios install sigmahq/proc_creation_win_iis_connection_strings_decryption1type: trigger2name: sigmahq/proc_creation_win_iis_connection_strings_decryption3description: |4 Detects use of aspnet_regiis to decrypt Microsoft IIS connection strings. An attacker with Microsoft IIS web server access via a webshell or alike can decrypt and dump any hardcoded connection strings, such as the MSSQL service account password using aspnet_regiis command.5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.Image endsWith '\\aspnet_regiis.exe' || evt.Parsed.OriginalFileName == 'aspnet_regiis.exe') && evt.Parsed.CommandLine contains 'connectionStrings' && evt.Parsed.CommandLine contains ' -pdf')7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t10031516 label: "Microsoft IIS Connection Strings Decryption"17 behavior : "windows:audit"18 remediation: false1920scope:21 type: ParentProcessId22 expression: evt.Parsed.ParentProcessId2324