Defending against malware has become a tough nut to crack as programs become ever more cleverly designed.