A malicious worm that works through Facebook has been detected.