ISIS is "waking up" to the idea of using sophisticated malware to cyber-attack critical infrastructure in the U.S., FBI Director James Comey said.