Over the past 12 months, the group that took root in Iraq and in the chaos of the Syrian war has turned its focus from territorial gains to hitting at "distant enemies".