Polymorphic code is computer code that is able to change itself, but also keep the exact instructions. The code can change every time it is run. Polymorphic code is sometimes used by computer viruses, worms and other malware so that they can hide from antivirus software.