A method of preventing a program of instructions from being executed in a computer system comprising a processor, memory, and a non-volatile storage device, the method comprising:
- loading the program of instructions into memory;
- determining if the program of instructions is backed by a file stored in the non-volatile storage device and is executable by the processor;
- and
- if the program of instructions is not backed by a file stored in the non-volatile storage device or is not executable, identifying the program of instructions as potentially malicious and replacing the program of instructions with one or more No Operation (NOP) instructions and shell code, thereby preventing execution of the potentially malicious program of instructions by the processor.