internal and external threats