A method, system and computer program product for detecting the
dissemination of malicious programs. The degree of randomness in the
Internet Protocol (IP) destination addresses of received IP packets to be
forwarded to an external network may be detected by performing a hash
function on the IP destination addresses thereby generating one or more
different hash values. If a high number of different hash values were
generated for a small number of IP packets examined, then random IP
destination addresses may be detected. By detecting random destination IP
addresses, the dissemination of a malicious program, e.g., virus, worm
program, may be detected.