Nations ranked highly spend the most on national defense, and are most secure against foreign aggression.