There are four major categories of cyber threats to national security, each with a different time horizon and (in principle) different solutions: cyber war and economic espionage, which are largely associated with states, and cyber crime and cyber terrorism, which are mostly associated with non-state actors.