Polymorphism is a malware technique in which the code changes its visible form while keeping the same malicious behavior. The changes may include renaming variables, reordering instructions, encrypting parts of the payload, or generating a new binary structure for each copy. This makes two samples look different even when they perform the same attack.
It matters because many security tools rely on signatures, hashes, or static patterns. If malware mutates often, those detections become less reliable and analysts must lean more on behavior, memory inspection, and sandbox analysis. In real attacks, polymorphism is often combined with fileless or memory-resident techniques and with delivery through trusted workflows, such as poisoned projects or installers, to reduce obvious artifacts. Defenders respond with layered detection, heuristic rules, script and process monitoring, and repeated comparison of runtime behavior rather than file appearance alone.


