I am aware that operating systems verify authenticity & integrity of a program file while installing a program to a system.
My question is, do popular OS's provide a way to verify (and warn the user if modified/tampered with by malware on the system) the integrity of a program that resides on a disk, every time a user executes it? My program contents would be signed and would carry a certificate from a valid CA.
I'm also aware that malware could just replace the entire program, and remove any code that asks the OS to run a integrity check. But i am interested in only detecting attacks such as a DLL proxying attack, where the whole program is not replaced/modified.