Flame malware employed a sophisticated, previously unknown 'chosen-prefix collision' attack on MD5 to forge a Microsoft certificate, removing critical extensions while maintaining the original hash, making it valid for Windows Vista and newer systems.