Recent threats have put more focus on the battles President Obama faces as a commander in chief fighting a far-flung terror network.