Chapter 1: Introduction to Security Concepts
1.1 Basic Definitions
- Security: The quality or state of being free from danger, or measures taken to guard against espionage, sabotage, crime, attack, or escape.
- Computer Security: The prevention and protection of computer systems from unauthorized access, use, alteration, degradation, destruction, and other threats.
- Attack/Threat: Any activity that aims to gain access to computers for malicious purposes.
- Vulnerability (Security Hole): A state or weakness in a system that can be exploited for an attack.
- Privacy: The right of an individual to be protected against intrusion into their personal life/affairs by direct physical means or publication of information.
- Assets: The things we want to protect, specifically Hardware, Software, and Data.
1.2 Network Protocols and Layered Attacks
Network protocols are sets of rules governing data transmission over a network. The TCP/IP Protocol Suite is the foundation of modern networking. Each layer is susceptible to specific attacks:
- Physical Layer:
- Attacks: Wiretapping, eavesdropping.
- Countermeasures: Secure physical cabling, VPNs, TLS/SSL encryption.
- Data Link Layer:
- Attacks: MAC address spoofing, ARP poisoning, VLAN hopping.
- Countermeasures: Port security, MAC filtering, ARP inspection, VLAN ACLs.
- Network Layer (IP Layer):
- Attacks: IP spoofing, DDoS, routing attacks.
- Countermeasures: Packet filtering, ACLs, Intrusion Detection/Prevention Systems (IDPS).
- Transport Layer (TCP/UDP):
- Attacks: Man-in-the-Middle (MitM), session hijacking, SYN flooding.
- Countermeasures: TLS encryption, firewalls, SYN/ACK cookies.
- Application Layer:
- Attacks: SQL injection, Cross-Site Scripting (XSS), Cross-Site Request Forgery (CSRF).
- Countermeasures: Input validation, output encoding, parameterized queries.
1.3 History and Evolution of Security
- Pre-1960s: Limited purely to the physical protection of computers.
- 1960s–1970s: Computers became interactive; networking and multiuser systems emerged. Organizations began to worry about data trust, privacy, and unauthorized remote access.
- 1980s–1990s: PCs, LANs, and the Internet popularized. E-commerce and E-health emerged. Viruses became major threats.
- 2000s–Present: Computers became ubiquitous. Attacks shifted from hobbyist hackers (doing it for fun) to organized criminals executing planned, devastating, and funded attacks.
- Famous Incidents: Morris Worm (1988), NASA shutdown by an Australian student (1990), Airline ticketing hack (1998), Bank theft of $25M (1984), Wikileaks diplomatic cable release (2010).
1.4 Why Are Computers Vulnerable?
- Lack of Intelligence: Computers execute instructions blindly; they cannot "think."
- Asymmetry of Security: It is much easier to break security than to build a fully secure system (a hacker only needs to find one weakness).
- Operating Systems: Complex boundaries between hardware and GUI can hide malicious software. ("Easy to use = easy to misuse").
- Legacy Protocols: Core Internet protocols were built in the 1970s/80s before security was a global concern.
1.5 Core Security Concepts: The CIA Triad & Supplements
A computing system is secure if it maintains three core properties:
- Confidentiality: Data stays obscure to everyone except authorized users.
- Integrity: Data remains identical to its state when the last authorized user finished with it (no unauthorized alterations).
- Availability: Data is accessible by authorized users in a convenient format and within a reasonable time.
Supplements to CIA:
- Authentication: Proving identity (How do I know it's really you?).
- Authorization: Granting privileges (What are you allowed to do?).
- Accountability: Tracing actions to individuals (Who did what?).
- Privacy: Informational self-determination (controlling who sees, uses, or shares your info).
1.6 Vulnerabilities, Threats, and Consequences
- Vulnerabilities fall into several categories:
- Physical & Natural: Theft, natural disasters, power loss, dust, humidity.
- Hardware/Software: Failure of protection features, bugs, antivirus failures.
- Media: Damaged disks, stolen backup tapes.
- Human: The greatest vulnerability (lazy, greedy, or malicious employees).
- Threats can be:
- Natural: Fires, floods.
- Unintentional: Accidental deletion of files, poor training.
- Intentional: Outsiders (break-ins, network attacks) and Insiders.
- Insider Threats: As many as 80% of system penetrations are by authorized users ("living Trojan horses"). Can be disgruntled employees, bribed staff, or simply lazy/untrained users.
- Consequences: Denial of Service (DDoS), technology leakage, loss of trust, and human consequences (leaked medical/personal data).
1.7 Security Attacks, Services, and Goals
- Types of Attacks:
- Passive Attacks: Attempt to learn or make use of information without affecting system resources (e.g., Interception).
- Active Attacks: Attempt to alter system resources or operations (e.g., Interruption, Modification, Fabrication).
- Security Services: Authentication, Access Control, Data Confidentiality, Data Integrity, Nonrepudiation (protection against denial of participation in a communication).
- Goals of Security:
- Prevention: Making sure an attack fails (e.g., strong passwords).
- Detection: Identifying an attack underway or occurred (e.g., monitoring systems).
- Recovery: Resuming operations. Can be stopping the attack/restoring from backups, or fault tolerance (system continues to function during an attack by disabling non-essential features).
1.8 Malicious Software (Malware)
Software deliberately designed to harm computer systems.
- Virus: Spreads to other software by incorporating copies of itself.
- Boot sector virus: Infects boot sector, activates on startup.
- File virus: Infects program files, activates when run.
- Detection: Infected files get bigger; can be detected via checksums.
- Rabbit: Replicates itself without limits to exhaust system resources (CPU, memory, disk).
- Hoaxes: False alerts (e.g., chain letters) that flood networks and waste bandwidth.
- Trojan Horse: A program with unexpected, hidden harmful functionality. Not self-replicating. Requires user assistance (e.g., user installs a fake game). Examples include Remote Access Trojans (RATs) and Key Loggers.
- Spyware: Unwanted software that steals internet usage data and sensitive info.
- Trapdoor (Backdoor): A secret, undocumented entry point left by developers to bypass authentication.
- Worms: Stand-alone programs that spread copies of themselves across a network. They do not need to attach to host files like viruses do. Often spread via guessing passwords or exploiting security holes.
1.9 Authentication Mechanisms
Authentication proves "Who Goes There?" and is based on three factors:
- Something you know (Passwords/PINs):
- Pros: Free, convenient, easy to reset.
- Cons: Easily cracked (Dictionary attacks), users reuse them or pick weak ones, susceptible to social engineering.
- Something you have (Smartcards, Car Keys, MAC address):
- Physical possession.
- Something you are (Biometrics):
- Examples: Fingerprint, Hand geometry, Iris pattern, Voice, Gait.
- Pros: Hard to forge, "you are your key".
- Cons: Can be tricked (e.g., high-res photos for iris scans), hard to revoke if compromised (you can't change your fingerprint like you can a password).
- Modes: Identification (1-to-Many search) vs. Authentication (1-to-1 verification).
- 2-Factor Authentication (2FA): Requires combining 2 out of the 3 methods for enhanced security (e.g., ATM requires a physical Card + a mental PIN).