The CIA has been hit by a mystery cyberattack after intruders breached a spy system packed with intelligence gathered from social media, satellite images and other publicly available sources.