Chapter 1: Introduction to Network Security
Fundamentals of Computer Networking
Network Purpose and Architecture:
The fundamental purpose of networks is communication between connected devices.
Network architecture dictates the physical and logical layout in which network components are connected.
Essential structural components of a network include:
Network Interface Cards (NICs)
Hubs
Switches
Routers
Firewalls
Data Packets:
A data packet is a structured package that contains the actual data payload along with essential transmission information.
All packet data is formatted in binary (s and s).
Packet sizes typically range from \,bytes to \,bytes.
Essential information contained within a data packet includes:
Source and destination IP addresses
Packet size (measured in bytes) and protocol type (such as Ethernet)
Data payload and necessary packet headers
IP Addressing:
IPv4 (Internet Protocol version 4):
Formatted as a sequence of four three-digit numbers separated by periods (e.g.,
107.22.98.129).Divided into network classes A through E, which define the IP address range for the first byte.
Contains designated private IP address ranges meant exclusively for internal network use.
IPv6 (Internet Protocol version 6):
Utilizes a 128-bit address structure expressed in hexadecimal notation (e.g.,
3FFE:B000:800:2:C).
Uniform Resource Locators (URLs):
Human-readable, text-based internet addresses (such as
www.chuckeasttom.com).URLs map directly to numeric IP addresses on the Internet.
Translation between URLs and IP addresses is executed by Domain Name Service (DNS) servers.
Media Access Control (MAC) Addresses:
Unique hardware identifiers assigned to networking components.
Every NIC worldwide has a distinct MAC address.
Represented as six-byte hexadecimal numbers.
Address Resolution Protocol (ARP) translates logical IP addresses into physical MAC addresses.
Network Protocols:
Protocols define standardized rules and formatting for network communications.
Key protocol standards include:
File Transfer Protocol (FTP)
Secure Shell (SSH)
Telnet
Simple Mail Transfer Protocol (SMTP)
WhoIS
Domain Name System (DNS)
Trivial File Transfer Protocol (tFTP)
Hypertext Transfer Protocol (HTTP)
Post Office Protocol 3 (POP3)
Network News Transfer Protocol (NNTP)
Network Basic Input/Output System (NetBIOS)
Internet Relay Chat (IRC)
Hypertext Transfer Protocol Secure (HTTPS)
Server Message Block (SMB)
Internet Control Message Protocol (ICMP)
Basic Network Utilities:
ipconfig: Displays current TCP/IP network configuration values for local adapters.ping: Tests connectivity and measures packet round-trip time to a remote target.tracert: Displays the network route and hop count to a remote destination host.netstat: Displays active TCP connections, listening ports, and protocol statistics.
The Open Systems Interconnection (OSI) Model
The Open Systems Interconnection (OSI) model provides a standardized framework that divides network communication into seven functional layers.

Application Layer (Layer 7):
Interfaces directly to user applications and delivers common application services for software processes.
Associated Protocols: POP, SMTP, DNS, FTP, Telnet.
Presentation Layer (Layer 6):
Relieves the application layer from concerns regarding syntactical differences in data representation within end-user systems.
Associated Protocols: Telnet, Network Data Representation (NDR), Lightweight Presentation Protocol (LPP).
Session Layer (Layer 5):
Provides the mechanism for establishing, managing, and terminating dialogues between end-user application processes.
Associated Protocol: NetBIOS.
Transport Layer (Layer 4):
Provides end-to-end communication control, flow control, and error recovery.
Associated Protocols: TCP, UDP.
Network Layer (Layer 3):
Handles routing of data across interconnected networks using logical addressing.
Associated Protocols: IP, ARP, ICMP.
Data Link Layer (Layer 2):
Describes the logical organization of data bits transmitted on a particular medium.
Subdivided into two distinct sublayers:
Media Access Control (MAC) sublayer
Logical Link Control (LLC) sublayer
Associated Protocols: SLIP, PPP.
Physical Layer (Layer 1):
Describes physical properties of communication media, as well as electrical properties and signal interpretation.
Represents physical components such as Network Interface Cards (NICs) and Ethernet cables.
Associated Protocols/Standards: IEEE 1394, DSL, ISDN.
Threat Assessment and Security Analysis
Primary Attack Targets:
Security risks generally focus on three main target areas:
The data itself
The network connection points
The people interacting with the systems
Assessing Threat Perspectives:
Misinformed or extreme views regarding security threats often lead to flawed administrative decisions.
The Minimal Threat Extreme ("No Real Threat"):
Fosters a passive, laissez-faire mindset toward network defense.
Promotes a reactive security model where protections are added only after a system breach occurs.
Must be completely avoided.
The Extreme Alarm Perspective ("All Hackers Are Experts Out To Get Me"):
Assumes that every hacker possesses elite skills specifically targeted at breaking into the organization's network.
Highly skilled experts do exist, but typically target high-profile networks for major financial or ideological gains.
Lesser-skilled hackers are far more prevalent and routinely target smaller companies with weaker defenses.
The Realistic Approach:
Represents a moderate, balanced methodology between both extremes.
Requires thorough evaluation of actual network risks, system vulnerabilities, and attack probabilities.
Threat Assessment Equation:
A numerical scale ( to ) can be assigned to evaluate network vulnerability:
Attractiveness (): Scale . Measures system value to an attacker (e.g., high-profile brand, critical services).
Information Content (): Scale . Measures sensitivity of host data (e.g., credit card records, medical history, proprietary files).
Security Devices (): Scale . Measures defensive capabilities, active traffic controls, and security measures safeguarding remote access.
Formula:
A lower calculated vulnerability score indicates a lower overall security risk.
Calculation Example:
If Attractiveness , Information Content , and Security Devices :
Classification of Security Threats
Intrusion Threats:
Cracking: Unauthorized breaking of computer systems, passwords, or software locks.
Social Engineering: Manipulating human targets into leaking sensitive information or granting unauthorized access.
War-dialing: Scanning lists of phone numbers via automated modems to locate unauthorized access points.
War-driving: Searching for vulnerable wireless Wi-Fi networks by driving through geographic areas with detection equipment.
Blocking Threats:
Denial of Service (DoS): Flooding or disrupting a target host to prevent legitimate traffic and user access.
Distributed Denial of Service (DDoS): Coordinating multiple infected host machines to launch a simultaneous DoS attack.
Malicious Software (Malware):
Viruses: Malicious code attached to clean files that requires human execution to replicate and spread.
Worms: Standalone malicious software that autonomously spreads across networks without user interaction (e.g., MyDoom, MSBlaster).
Trojan Horses: Software disguised as legitimate programs to trick users into execution.
Spyware: Covert software that monitors computer activity and collects user data without consent.
Tracking and Data Capture:
Cookies: Web browser files stored on local disks that save configuration settings or monitor browsing history.
Key Loggers: Hardware devices or software utilities that record every keystroke performed on a computer.
Network Security Terminology
Hacking Terminology (People and Actions):
White Hat Hackers: Ethical security practitioners who test systems with authorization to improve security.
Black Hat Hackers: Malicious attackers who exploit vulnerabilities without authorization for personal or financial gain.
Gray Hat Hackers: Individuals who compromise networks without permission, but without malicious intent, often reporting issues after the fact.
Script Kiddy: Unskilled individuals who execute pre-built automated scripts or tools created by expert hackers.
Cracker: An attacker focused specifically on breaking security features, password controls, or digital rights management.
Ethical Hacker / Sneaker: A hired penetration tester authorized to breach systems to evaluate security gaps.
Phreaking: The specialized practice of attacking or exploiting telecommunication systems and telephone networks.
Defensive Security Terminology (Devices and Policies):
Firewall: Hardware or software that inspects incoming and outgoing network traffic based on security rules.
Proxy Server: An intermediary system that processes client requests, disguising local IP addresses and caching data.
Intrusion Detection System (IDS): Hardware or software monitoring network activity for policy violations or suspicious activity.
Access Control: Authorization rules restricting users and systems from accessing specific files, networks, or devices.
Non-repudiation: Architectural methods ensuring an actor cannot deny the authenticity of a sent message or transaction.
Auditing: Systematic logging, tracking, and evaluation of system processes and user interactions.
Security Strategies, Legal Rules, and Resources
Strategic Security Paradigms:
Proactive vs. Reactive Security:
Proactive security anticipates threats and addresses system vulnerabilities before an incident occurs.
Reactive security deploys patches and countermeasures only after a breach has occurred.
Perimeter Security:
Focuses defensive investment on external network boundary devices (e.g., firewalls, routers).
Leaves internal devices exposed if the perimeter barrier is breached.
Layered Security (Defense-in-Depth):
Implements defensive controls across both boundary devices and individual internal endpoints.
Hybrid Security:
Combines multiple security paradigms to balance system functionality with robust protection.
Legal Frameworks and Regulations:
Sarbanes-Oxley Act (SOX): Mandates strict corporate governance, auditing requirements, and data retention standards.
Computer Security Act of 1987: Federal law requiring security training and defensive planning for federal computer systems.
Health Insurance Portability and Accountability Act (HIPAA): Regulates safety, privacy, and control of protected health information (PHI).
State Computer Crime Laws: Specific state statutes governing unauthorized system access, data theft, and digital vandalism.
Key Security Reference Portals:
CERT:
www.cert.org/Microsoft Security TechCenter:
https://technet.microsoft.com/en-us/securityF-Secure Corporation:
www.f-secure.com/SANS Institute:
www.sans.org/Security Terminology Glossaries:
Information Security Glossary:
www.yourwindow.to/information%2Dsecurity/IETF RFC 2828 Internet Security Glossary:
www.ietf.org/rfc/rfc2828.txt