Polymorphic Malware
What is Polymorphic Malware?
Polymorphic MalwareMalware that changes its on-disk appearance — typically via re-encryption or packing — for each infection, while keeping its core logic intact.
Polymorphic malware uses an encryption/packing layer and a small mutating decryptor so that every copy of the file looks different to signature-based antivirus, even though the decrypted payload is identical. This frustrates static hash-based detection and exact-byte signatures. Polymorphic engines often include random instruction reordering, junk-code insertion and variable register usage. Unlike metamorphic malware, the underlying payload is not rewritten — only its outer wrapper and decryptor change.
The technique is decades old. The 1260 (V2PX) virus, written by Mark Washburn in 1990 from Ralf Burger's disassembly of the Vienna virus, is widely credited as the first polymorphic virus, randomising its decryption routine to vary its signature. In early 1992 the Dark Avenger's Mutation Engine (MtE) turned polymorphism into a reusable toolkit any virus author could bolt on, generating a fresh decryptor and random key per infection; Norton reported detecting roughly 900,000 mutations by late 1992. Modern loaders and packers apply the same idea at scale.
Because the payload is constant once unpacked, effective defences shift away from file bytes: behavioural/EDR telemetry, memory scanning after the decryptor runs, YARA rules matching decrypted strings in memory, sandbox detonation, and machine-learning classifiers trained on dynamic features.
flowchart LR A[Constant payload] --> B[Encrypt with random key] B --> C[Prepend mutating decryptor + junk code] C --> D[New unique file per infection] D -->|evades| E[Signature/hash AV] D --> F[On execution: decryptor unpacks in memory] F --> G[Identical payload revealed] G -->|caught by| H[EDR / memory scan / behavioural ML]
● Examples
- 01
Storm Worm, which repackaged itself frequently to evade signature scans.
- 02
Virut, a long-running polymorphic file-infector that mutated on each propagation.
● Frequently asked questions
What is Polymorphic Malware?
Malware that changes its on-disk appearance — typically via re-encryption or packing — for each infection, while keeping its core logic intact. It belongs to the Malware category of cybersecurity.
What does Polymorphic Malware mean?
Malware that changes its on-disk appearance — typically via re-encryption or packing — for each infection, while keeping its core logic intact.
How do you defend against Polymorphic Malware?
Defences for Polymorphic Malware typically combine technical controls and operational practices, as detailed in the full definition above.
What are other names for Polymorphic Malware?
Common alternative names include: Self-encrypting malware, Polymorphic virus.