Cybercriminals are becoming a threat that rivals terrorist groups like al Qaeda, according to the nation’s top law enforcement official.