A new generation of self-made experts is tracking extremists through their online activity — and rewriting the rules of intelligence in the process