After the recent worm outbreak on Facebook and MySpace, the social networking sites and security experts are working to prevent future attacks.