How does antivirus protect itself from malware?
Some types of malware will kill the running processes and since antivirus is just another software like any other why they can't just kill the antivirus process?
I understand that antivirus will scan the malware before it can kill the antivirus process but still it does not guarantee that the malware signature is in the database or that the malicious behavior of malware will be detected right away.
I assume that antivirus software somehow makes itself "closer" to operating system and because of that disables random software from killing its process but would like to know if this is true and how it is achieved.
Same question could be asked for other security systems/software like host-based intrusion detection systems and its agents that run on workstations and send data to server.
Thank you