Network Security 2
Module Overview and Administrative Details
The Module on Network Security and Defence consists of four lectures and accompanying workshops. The topics covered in this curriculum include network security infrastructure and monitoring tools, which were addressed on February 3rd. The current session, held on February 10th, 2026, focuses on network defence and network security data sources and types. The upcoming session on February 17th will cover the investigation of network events.
A compulsory assignment, referred to as Oblig 1, will be available on Canvas starting Monday, February 16th, with a final submission deadline of March 2nd. Students are encouraged to use a Docker environment or a Linux-based Virtual Machine (VM). For those using a VM, the tools provided in the assignment are specifically from Ubuntu 24.04 LTS, though other distributions or versions are likely to remain compatible.
Understanding Defence: Assets, Vulnerabilities, and Threats
Cybersecurity analysts are tasked with securing an organization's resources against any type of attack. To perform this role effectively, analysts must distinguish between three core concepts. Assets comprise anything of value to an organization that requires protection, including servers, infrastructure devices, end devices, and the most critical asset: data. Vulnerabilities are defined as weaknesses in a system or its design that a threat actor could exploit. Threats represent any potential danger to a specific asset.
Asset management involves inventorying all devices and information owned or managed by an organization and then implementing policies to protect them. This can be a daunting process as it must encompass internal users, mobile workers, cloud services, and virtual environments. Identifying where critical information is stored and how it is accessed is paramount, as different assets attract threat actors with varying skill levels and motivations. Inventory management can be automated using network monitoring tools that utilize Simple Network Management Protocol (SNMP). SNMP is a vendor-neutral standard that allows monitoring tools to communicate with any supported device to gather telemetry and perform network tomography, which provides a view of the overall network health.
Inventory Management and Vulnerability Tools
Solarwinds Network Management is an example of a commercial tool providing network performance monitoring, auto-discovery of devices, telemetry, IP address tracking, and topology mapping. A free and open-source alternative is LibreNMS, which also offers automatic discovery, asset tracking, and customizable dashboards. For vulnerability identification, analysts use a combination of manual and automated processes to determine possible system weaknesses, who might exploit them, and the consequences of a successful exploit.
The Common Vulnerabilities and Exposures (CVE) database, maintained by the MITRE Corporation and sponsored by the United States government, serves as a public dictionary of cybersecurity vulnerabilities. Each vulnerability is assigned a unique CVE Identifier to facilitate data sharing. Prominent sources for this data include cve.org, CVE Details, and the Microsoft Security Response Center.
OpenVAS is an open-source vulnerability scanning framework that utilizes pre-built network vulnerability tests (NVTs) from a curated security feed provided by Greenbone. Severity levels for these tests are categorized as follows: High severity ranges from to , while Medium severity ranges from to . Other industry solutions for vulnerability management include Nessus, which is a proprietary tool, and automated support found within Solarwinds.
Threat Identification and Communication Standards
Threat identification involves predicting specific malicious scenarios. Using an e-banking system as an example, threats might include internal system compromise (using e-banking servers to pivot into internal bank systems), stolen customer data (theft of personal and financial information), phony transactions from external servers (altering application code to impersonate users), identity theft involving stolen PINs or smart cards, data input errors by users, and physical data center destruction due to cataclysmic events.
Standardized communication for threat intelligence is essential for inter-organizational sharing. Key standards include Structured Threat Information Expression (STIX), a set of specifications for exchanging cyber threat info; Trusted Automated Exchange of Indicator Information (TAXII), an application layer protocol for communicating CTI over HTTPS to support STIX; and CybOX (Cyber Observables), which is now integrated into STIX. The Malware Information Sharing Platform (MISP) is an open-source platform supported by the European Union and used by over organizations to share Indicators of Compromise (IOCs) using STIX and other formats.
Defense-in-Depth and Security Analogies
Defense-in-depth is an architectural approach that employs multiple layers of security at the network edge, within the network, and on endpoints. The primary components include the edge router, which serves as the first line of defense using filtering rules; the firewall, a checkpoint device that filters traffic and tracks connection states to deny untrusted initiations; and internal routers, which apply final filtering rules before traffic reaches its destination. Other integrated devices include Intrusion Prevention Systems (IPS), Advanced Malware Protection (AMP), and web/email content security systems. This layered approach ensures that the failure of one safeguard does not compromise the entire security architecture.
Two analogies describe this approach. The "Security Onion" suggests that a threat actor must peel away every defense layer sequentially to reach the target data. However, the evolution of borderless networks has led to the "Security Artichoke" analogy. In this model, threat actors do not need to remove every layer; they can remove specific "leaves" (subsystems) to reveal sensitive data. Persistent hackers ignore the well-protected exterior and search for gaps or "chips" in the perimeter to enter the core.
Security Policies and BYOD
Business policies govern an organization's actions and define a baseline of acceptable behavior. Company policies establish rules of conduct and the rights of both employees and employers. Employee policies, maintained by HR, deal with salaries, schedules, and benefits. Security policies identify objectives, user and administrator rules, and system requirements. A comprehensive security policy demonstrates organizational commitment, sets behavioral expectations, ensures consistency, and defines legal consequences for violations.
Specific security policies include Identification and Authentication policies (authorized access), Password policies (meeting minimum standards), Acceptable Use Policies (AUP, identifying allowed applications), Remote Access policies, Network Maintenance policies (OS and application updates), and Incident Handling procedures. Bring Your Own Device (BYOD) policies allow employees to use personal devices for work but introduce liability risks. Best practices for BYOD include password protection, manual control of Wi-Fi/Bluetooth, keeping software updated, data backups, "Find my Device" services with remote wipe functionality, antivirus software, and Mobile Device Management (MDM) software for remote configuration.
Information Security Concepts and Zero Trust
The CIA triad is the foundation of information security: Confidentiality (only authorized access to sensitive info), Integrity (protection against unauthorized alteration), and Availability (uninterrupted access for authorized users). Zero Trust is a comprehensive framework revolving around the principle of "never trust, always verify." It aims to prevent unauthorized access and lateral movement by treating every access control decision point as a perimeter. Zero Trust stands on three pillars: Workforce (securely connecting people regardless of device or location), Workloads (securing interactions between APIs, microservices, and containers in data centers or the cloud), and Workplace (securing IoT and all internal network connections).
Access Control Models and AAA
Several access control models exist to manage resources. Discretionary Access Control (DAC) is the least restrictive, allowing owners to control access via ACLs. Mandatory Access Control (MAC) is the strictest, using security level labels and clearances for military-grade applications. Role-Based Access Control (RBAC) grants privileges based on organizational roles. Attribute-Based Access Control (ABAC) uses attributes of the object, subject, and environment. Rule-Based Access Control (also known as Rule-Based RBAC) uses sets of conditions like IP addresses or protocols. Time-Based Access Control (TAC) restricts access based on specific days and times.
Authentication, Authorization, and Accounting (AAA) provides the framework for scalable security. Authentication verifies identities via passwords, tokens, or questions. Authorization determines permitted resources and operations (e.g., "User can access server X via SSH only"). Accounting tracks activity (e.g., "User accessed server X for 15 minutes").
AAA can be implemented as Local AAA, where credentials are stored on the device itself (ideal for small networks), or Server-Based AAA, which uses a central server and is preferred for larger networks due to scalability. Devices communicate with centralized AAA servers using either TACACS+ (Terminal Access Controller Access Control System Plus) or RADIUS (Remote Authentication Dial-In User Service).
TACACS+ separates AAA functions, uses TCP port , and encrypts the entire packet body. RADIUS combines authentication and authorization, uses UDP ports and (or older /), and only encrypts the password. TACACS+ allows per-command authorization, while RADIUS has extensive accounting capabilities but limited command authorization.
AAA Accounting and Security Data Types
AAA accounting logs are essential for auditing and include various types: Network accounting (PPP sessions), Connection accounting (outbound SSH/Telnet), EXEC accounting (terminal sessions with timestamps), System accounting (system-level events), Command accounting (EXEC shell commands at specific privilege levels), and Resource accounting (start/stop records for authenticated connections).
Security data is categorized into several types. Alert data is generated by IPS/IDS systems like Snort in response to rule violations; tools like Sguil and Squert make these readable. Session data records conversations between endpoints using the five-tuple: source/destination IP, source/destination ports, and protocol code. Transaction data consists of messages exchanged during sessions (e.g., HTTP requests/replies). Full Packet Captures carry the actual content (email text, HTML, files) and can be analyzed using Wireshark or Arkime. Statistical data is derived from analyzing other data forms to identify conditions outside normal ranges; Cisco Cognitive Threat Analytics is a tool that uses statistical analysis to find hidden malicious activity.
Host Logs, Syslog, and SIEM
Host logs for Windows are accessed via Event Viewer and include: Application, System, Setup, and Security logs (logon attempts). Commands executed via CLI are also logged to detect attackers. Event types in Windows include Error (significant problem), Warning (potential future problem), Information (successful operation), Success Audit (successful security access), and Failure Audit (failed security access). Sysmon (System Monitor) provides advanced logging for Windows and Linux, tracking process creation, parent-child relationships, hashes of image files, and network connections using session GUIDs.
Syslog is a standard protocol for logging events to central servers. The full format includes PRI (Priority), HEADER, and MSG. The Priority value is calculated using the formula:
The Severity value ranges from to : (Emergency), (Alert), (Critical), (Error), (Warning), (Notice), (Informational), and (Debug). Facility codes through (local0-local7) are user-defined.
Security Information and Event Management (SIEM) technology provides real-time reporting and long-term analysis. SIEM functions include: Log collection (forensics/compliance), Normalization (mapping to a common data model), Correlation (linking disparate events), Aggregation (consolidating duplicates), Reporting (dashboards), and Compliance. Popular tools include Splunk, the ELK Stack, and Security Onion.
Network Logs and Advanced Firewall Features
Tcpdump is a popular command-line packet analyzer, whereas Wireshark builds a GUI on top of it. NetFlow, developed by Cisco, tracks session-based accounting and metadata rather than full packets; it is used for troubleshooting, billing, and constructing timelines of compromise. The command-line utility nfdump is used to view NetFlow data.
Cisco Application Visibility and Control (AVC) uses Next-Generation Network-Based Application Recognition (NBAR2) to classify over applications, including P2P, cloud services, and voice/video. It collects metrics like bandwidth, jitter, and latency. Content filters like the Cisco Email Security Appliance (ESA) and Web Security Appliance (WSA) provide specialized monitoring. Proxy logs from web and DNS proxies (like Cisco Umbrella) help identify dangerous destinations and data exfiltration. Web proxies can also perform Data Loss Prevention (DLP) by scanning outgoing traffic.
Next-Generation Firewalls (NGFW) extend security to the application layer using Firepower Services, which include NGIPS, URL filtering, and AMP. Common NGFW events include Connection, Intrusion, Host/Endpoint, Network Discovery, and NetFlow events.