A polymorphic threat manager monitors an incoming email stream, and
identifies incoming email messages to which executable files are
attached. The polymorphic threat manager characterizes incoming
executable files according to at least one metric. For example, the
polymorphic threat manager can decompose an executable file into
fragments, hash some or all of these, and use the hashes as
characterization metrics. The polymorphic threat manager subsequently
de-obfuscates executable files, and creates corresponding
characterization metrics for the de-obfuscated images. The
characterizations of executable files before and after de-obfuscation are
compared, and if they differ sufficiently, the polymorphic threat manager
determines that the file in question is polymorphic. The characterization
metrics of such an executable file after de-obfuscation can be used as a
signature for that file.