Oh I know what it is doing. My deployment mechanism on my home computers is that when it launches one of my apps, it checks first if there isn’t a new version stored on a private cloud repository, and if there is, downloads it, and runs it. The apps aren’t signed. And I am pretty sure that triggers defender’s malware downloading binaries from c&c network logic, so it randomly deletes the executable.
Also when I want to scan all the video files in a folder I run ffprobe hundreds of times pretty much in parallel and defender will want to inspect each instance of the same ffprobe exe independently, resulting in a 100% cpu usage and slow scan.
I solved the issue by defining folders exclusions but I don’t believe it can be scripted and it is a pain in the ass. All of the above is unwanted behaviour of an antivirus working against me.