1. A host system comprising at least one hardware processor configured to execute a hypervisor, the hypervisor further configured to: configure the at least one hardware processor to generate an exception in response to detecting a violation of a memory access permission, wherein generating the exception causes the at least one hardware processor to switch from executing a target function to executing a computer security program, wherein both the target function and the computer security program execute within a virtual machine exposed by the hypervisor, and wherein the computer security program is configured to determine whether the violation is indicative of a computer security threat; and configure the memory access permission so that an attempt to execute the target function violates the memory access permission.