I resolved the issue with Kaspersky signaling HEUR:Trojan.Win32.Sdum.gen in my application C# WPF .NET 8.0 just selecting an icon in Project Properties->Application->Win32 Resources. I double checked it, taking it off and putting it back on, and the warning was reappeared and then disappeared again.