Improving Networks Security: Threats and Measures