Network Security 1

Network Security Infrastructure Overview

Network security infrastructure is built upon the representation of devices and connections within a network, commonly documented through topology diagrams. These diagrams use specialized symbols to represent various network components. Essential terminology includes the Network Interface Card (NIC), the Physical Port, and the Interface, noting that the terms "port" and "interface" are frequently used interchangeably in technical contexts.

Topology diagrams are categorized into two primary types. Physical topology diagrams are used to illustrate the physical location of intermediary devices and the installation of cabling throughout the infrastructure. In contrast, logical topology diagrams illustrate the specific devices, ports, and the addressing schemes used to facilitate communication across the network.

Networks are classified by size and scope. Small Home Networks connect a limited number of computers to each other and the internet. Small Office and Home Office (SOHO) networks enable connections to corporate networks or centralized shared resources from remote locations. Medium to Large Networks can encompass multiple locations with hundreds or thousands of interconnected computers. Finally, World Wide Networks, such as the internet, connect hundreds of millions of computers globally.

LAN and WAN Infrastructures

Network infrastructures vary significantly based on the size of the area covered, the number of connected users, the types of available services, and the specific area of responsibility. Local Area Networks (LANs) serve small geographical areas and are typically administered by a single organization or individual. They provide high-speed bandwidth to internal end devices and intermediary devices. Wide Area Networks (WANs) span wide geographical areas and are used to interconnect LANs. They are typically administered by multiple service providers and often provide slower speed links compared to LANs.

The Three-Layer Hierarchical Network Design Model

The campus wired LAN utilizes a hierarchical design model to organize network topology into modular groups or layers. The first layer is the Access Layer, which provides endpoints and users with direct access to the network infrastructure. The second layer is the Distribution Layer, which aggregates the access layers and provides connectivity to various network services. The third layer is the Core Layer, which acts as the high-speed backbone providing connectivity between distribution layers in large-scale LAN environments.

Smaller enterprise networks may implement a simplified version of this model known as the Two-Tier Hierarchical Design, or Collapsed Core. In this design, the functions of the core and distribution layers are collapsed into a single layer to reduce overall cost and complexity while maintaining modularity.

Common security architectures and Firewalls

Firewall design is fundamentally focused on handling device interfaces to permit or deny traffic based on source, destination, and traffic type. Basic designs include Public and Private architectures, where the public (outside) network is untrusted and the private (inside) network is trusted. A more complex design is the Demilitarized Zone (DMZ), which typically features an inside interface for the private network, an outside interface for the public network, and a dedicated DMZ interface for publicly accessible services.

Zone-based Policy Firewalls (ZPFs) offer additional flexibility by grouping one or more interfaces into "zones" based on similar functions or features. These zones are used to specify precisely where Cisco IOS firewall rules or policies are applied.

A firewall is defined as a system or group of systems enforcing an access control policy between networks. Key properties include resistance to network attacks and acting as the sole transit point for all traffic. While firewalls prevent the exposure of sensitive hosts and sanitize protocol flows, they have limitations: misconfigurations can lead to a single point of failure, some application data cannot pass through them securely, and they may introduce network performance latency.

Categories of Firewalls

There are several distinct types of firewalls used in modern security. Packet Filtering (Stateless) Firewalls are often part of a router and filter traffic based on Layer 3 and Layer 4 information using a simple policy table look-up. Stateful Firewalls are the most common and versatile, using a state table to maintain connection information for stateful packet filtering. Application Gateway Firewalls (Proxy Firewalls) filter information at Layers 3, 4, 5, and 7 of the OSI model, with most filtering handled in software.

Next-Generation Firewalls (NGFW) go beyond stateful inspection by providing integrated intrusion prevention, application awareness and control to block risky applications, and upgrade paths for future threat intelligence feeds. Other implementations include Host-based firewalls (software on a PC or server), Transparent firewalls (filtering between bridged interfaces), and Hybrid firewalls (a combination of types).

Intrusion Detection and Prevention Systems

Intrusion Detection Systems (IDS) and Intrusion Prevention Systems (IPS) are used to defend against evolving attacks. IDS works in promiscuous mode, meaning it has no impact on network latency or jitter; if a sensor fails or is overloaded, the network is unaffected. However, an IDS cannot stop trigger packets and is more vulnerable to evasion techniques. IPS, conversely, is placed inline and can stop trigger packets and use stream normalization, but sensor issues or overloading can directly impact network performance.

IPS can be Host-based (HIPS) or Network-based (NIPS). HIPS is software installed on a host to monitor suspicious activity specific to an operating system or application, but it must be installed on every host. NIPS uses dedicated or non-dedicated hardware sensors to detect malicious activity in real-time across the network. A robust security architecture typically integrates both HIPS and NIPS.

Specialized Security Appliances and Services

Cisco offers specialized security appliances to address specific threats. Cisco Advanced Malware Protection (AMP) is an enterprise-class solution for malware analysis and protection before, during, and after an attack. The Cisco Web Security Appliance (WSA) is a secure web gateway that automatically blocks risky sites and tests unknown sites. The Cisco Email Security Appliance (ESA), supported by the Cisco Talos database, mitigates email-based threats like spam and advanced malware.

Access Control Lists (ACLs) are sequences of commands used to control whether a device forwards or drops packets. Standard ACLs only permit or deny traffic based on source IPv4 addresses. Extended ACLs filter based on protocol type, source/destination IPv4 addresses, and source/destination TCP/UDP ports.

Additional network services include the Simple Network Management Protocol (SNMP) for managing and monitoring devices, and NetFlow, which provides 24x7 statistics on packet flows. NetFlow data is pushed to a NetFlow collector for security monitoring and traffic analysis. Port mirroring allows a switch to duplicate traffic to a network monitor, while Syslog servers gather and categorize system messages for troubleshooting. The Network Time Protocol (NTP) ensures synchronized timing across devices using hierarchical levels called strata, ranging from Stratum 0 (authoritative source) to Stratum 1 (directly connected) and Stratum 2 (synchronized via Stratum 1).

AAA Framework and VPNs

The AAA (Authentication, Authorization, and Accounting) framework provides three independent security functions. Authentication requires users to prove their identity. Authorization determines accessible resources and permitted operations. Accounting records user activity and resource usage for tracking purposes. This is typically implemented via TACACS+ or RADIUS. TACACS+ is a Cisco-supported protocol that uses TCP, encrypts the entire packet, and separates AAA functions. RADIUS is an open standard using UDP, encrypts only the password, and combines authentication and authorization.

Virtual Private Networks (VPNs) create private logical connections over public networks like the internet. They achieve confidentiality by encrypting traffic between two endpoints, essentially building a communications environment with strictly controlled peer connections.

Introduction to Network Monitoring

Network monitoring is vital for capturing forensic evidence, generating real-time security alerts, and maintaining a knowledge base of past incidents to aid in threat hunting and incident response. It helps establish the necessary context for the "Incident Response Hierarchy of Needs." Security analysts are responsible for reviewing all alerts generated by infrastructure components to validate their legitimacy and mitigate potential threats.

Monitoring methods include Network Taps (Test Access Points) and Traffic Mirroring (SPAN). A network tap is a passive, fail-safe splitting device implemented inline that sends transmit (TX) and receive (RX) data streams on separate channels in real-time. Traffic mirroring via a Switch Port Analyzer (SPAN) port copies frames from source ports to a destination port connected to an analysis device. While SPAN is easier to configure, it can drop packets during physical failures and may impact switch performance. Taps are generally preferred for best visibility as they are maintenance-free and do not introduce latency.

Network Monitoring Tools and Analysis

Common tools for security monitoring include network protocol analyzers like Wireshark and tcpdump. Wireshark provides a graphical interface and saves captures in PCAP files, while tcpdump is a command-line utility. Netstat is used to view incoming and outgoing connections and open ports on a host. For enterprise-level monitoring, Security Information and Event Management (SIEM) systems provide real-time reporting, forensic analysis, correlation of events across systems, and data aggregation. SIEMs provide details on user information, device posture, and MAC addresses.

Security Orchestration, Automation, and Response (SOAR) enhances SIEM by adding case management tools, integrated threat intelligence, and artificial intelligence for incident analysis. SOAR automates labor-intensive tasks using "run books." An example SIEM solution is the open-source ELK stack, consisting of Elasticsearch (search engine), Logstash (data pipeline), and Kibana (visualization dashboard).