Network security protects devices, networks, and data from unauthorized access and cyber threats.