A method of selecting a detection method for analyzing computer code for
malicious code. The method provides a plurality of malicious code
detection methods, wherein at least some of the malicious code detection
methods require different amounts of time to analyze for malicious code.
A fastest one of the malicious code detection methods is selected.
Computer code is analyzed for malicious code using the selected malicious
code detection method. A probability of accuracy of a result of the
analysis is determined. A next fastest one of the malicious code
detection methods is selected and the analyzing and determining steps
repeated, if the probability of accuracy is below a predetermined level.
A result of the analysis is outputted if the probability of accuracy is
at or above the predetermined level.