Polymorphic worms are a major threat to internet infrastructure security. In this mechanism the authors are using gate-translator, double honeypot, sticky honeypot, internal translator and antivirus of Cloud AV, which attracts polymorphic worms. They are proposing an algorithm to detect and remove polymorphic worms and innocuous traffic related packets. Worms are computer programs that self replicate without requiring any human intervention, by sending copies of their code in network packets and ensuring the code is executed by the computers that receive it. When computers are infected, they spread copies of themselves and perform other malicious activities.