An automated analysis system identifies the presence of malicious P-code
or N-code programs in a manner that limits the possibility of the
malicious code infecting a target computer. The target computer system
initializes an analytical virtual P-code engine (AVPE). As initialized,
the AVPE comprises software simulating the functionality of a P-code or
intermediate language engine as well as machine language facilities
simulating the P-code library routines that allow the execution of N-code
programs. The AVPE executes a target program so that the target program
does not interact with the target computer. The AVPE analyzes the
behavior of the target program to identify occurrence of malicious code
behavior and to indicate in a behavior pattern the occurrence of
malicious code behavior. The AVPE is terminated at the end of the
analysis process, thereby removing from the computer system the copy of
the target program that was contained within the AVPE.