Some Anti Virus software will try to emulate the beginning of the code of each new executable that the system invokes before
transferring control to that executable. If the program seems to use self-modifying code or otherwise appears as a virus, one
could assume that a virus has infected the executable. However, this method too results in a lot of false positives.
Yet another detection method involves using a sandbox. A sandbox emulates the operating system and runs the executable in this
simulation. After the program has terminated, software analyzes the sandbox for any changes which might indicate a virus. Because
of performance issues, this type of detection normally only takes place during on demand scans.