Search code examples
pythonantivirustaskmanager

Prevent task (anti-malware program) from being ended


I am currently developing a anti-virus/anti-malware program for Windows 10. I need the program to be protected; so that it may not be ended via the task manager. For example, If I were to try to end the Antimalware Service Executable with the task manager, I'd receive the following message:

Unable to terminate process
The operation could not be completed.
Access is denied.

Is there any way I could add this feature programmatically; maybe via Python?

EDIT: This is for an aggressive antivirus/antimalware that minimizes false-positives and slip-throughs. Yes I'm aware commercial options exist, but I am not looking for one.


Solution

  • After conduction further research, I have located an article that perfectly describes what I am looking for. https://learn.microsoft.com/en-us/windows/desktop/Services/protecting-anti-malware-services- This will help me create the program, and protect it adequately.