Advanced hackers have targeted United States and European energy companies in a cyber espionage campaign, according to researchers at the security firm Symantec.