Lec1 2
Lec1 2
Cybersecurity
Spring 2026
1
Motivation
Hacker attack every 39 seconds Most companies take nearly 6
months to detect a data breach
2
Today’s Outline:
Understand the CIA Triad Identify Security Threats Apply Security Requirements
Describe the key security Discuss the types of security threats Summarize the functional
requirements of confidentiality, and attacks that must be addressed requirements for computer security
integrity, and availability that form and provide examples of threats and how they're implemented in
the foundation of computer that apply to different categories of real-world systems.
security. computer and network assets.
Cybersecurity: Protecting Our
Digital World
Cybersecurity is the practice of protecting systems, networks,
and programs from digital attacks.
These attacks are often aimed at accessing, changing, or
destroying sensitive information; extorting money from users;
or interrupting normal business processes.
5
• Cyber security is the collection of
policies, techniques,
technologies, and processes that
work together
• to protect the confidentiality, integrity, and
availability of computing resources, networks,
software programs, and data from attack.
• Cyber defense
mechanisms exist at
the application,
Firewalls network, host, and data
antivirus software intrusion detection systems (IDSs)
level.
1/27/2025 Applied ML for Cybersecurity
6
Intrusion detection systems (IDSs)
7
Cyber Security
Safeguarding the systems, applications, and networks from potential digital
attacks (modify/access the confidential information, laundering money from the
users, and interrupting the normal business operations)
8
Why is Cybersecurity
Important?
In today's digital age, our lives are increasingly intertwined with
technology. From personal devices to critical infrastructure, everything
is connected to the internet. This interconnectedness, while offering
numerous benefits, also exposes us to a wide range of cyber threats.
9
Why is Cybersecurity
Important?
Cybersecurity is essential because:
• Protecting Sensitive Information: It safeguards personal data,
financial information, and intellectual property.
• Maintaining Business Continuity: It ensures the uninterrupted
operation of businesses and organizations.
• Safeguarding Critical Infrastructure: It protects essential services like
power grids, transportation systems, and healthcare systems.
10
Common Cyber
Threat
• Malware: Malicious software designed to harm computer systems.
• Phishing: Deceptive tactics used to trick individuals into revealing
sensitive information.
• Ransomware: Malware that encrypts data and demands a ransom for
its decryption.
• Denial-of-Service (DoS) Attacks: Overwhelming a system or network
to prevent legitimate users from accessing it.
• Data Breaches: Unauthorized access to sensitive data.
11
Cyberattacks: A Growing Threat
A cyberattack is any malicious act targeting computer systems,
networks, or digital information. These attacks can range from simple
vandalism to sophisticated espionage and sabotage.
13
Types of Cyber
Attacks
14
Cyberattacks come in many forms, each targeting different aspects of a
system or network. Here are some common types of cyberattacks:
[Link]:
1. Attackers trick individuals into providing sensitive information (like
passwords or credit card numbers) by pretending to be a legitimate
entity via email or other communication methods.
2. Malware:
1. Software designed to harm or exploit any device, service, or
network. Examples include viruses, worms, Trojans, and
ransomware.
3. Ransomware:
1. A type of malware that encrypts the victim's data and demands a
ransom (usually in cryptocurrency) for decryption keys to regain
access.
15
4. Denial-of-Service (DoS) and Distributed Denial-of-Service (DDoS):
•These attacks aim to make a system, network, or service unavailable to its
users by overwhelming it with a flood of traffic or requests.
5. Man-in-the-Middle (MitM) Attack:
•Attackers intercept and potentially alter communication between two parties
without their knowledge, often to steal sensitive data like login credentials.
6. SQL Injection:
•In this attack, malicious SQL queries are used to manipulate a database,
allowing attackers to access or manipulate sensitive data.
[Link]-Site Scripting (XSS):
•Attackers inject malicious scripts into web applications, which then execute on the
user's browser, potentially stealing data or compromising the system.
16
The Evolving Threat
Landscape
Key points:
• The increasing sophistication of cyberattacks
• The growing volume and complexity of cyber threats
• The limitations of traditional security measures
17
Defining Computer Security
This definition introduces three key objectives that are at the heart of computer security, collectively known as the CIA triad:
Integrity
Ensuring information remains accurate
Confidentiality and unaltered
Protecting information from
unauthorized access and
disclosure Availability
Guaranteeing reliable access
to information when needed
The CIA Triad: Core Security Concepts
Accountability
Since truly secure systems remain an aspirational goal, we must be
able to trace security breaches to responsible parties. Systems
must maintain activity logs to enable forensic analysis of security
incidents or to assist in resolving transaction disputes.
A Brief History of Cybersecurity
Timeline Visual:
Core Concepts:
Scenario:
•A hospital's patient database is accessed by hackers who used a phishing email to steal a
nurse's login credentials. Patient data was copied and held for ransom.
•Task (Breakout Groups): Identify the Asset, Threat, Vulnerability, Attack Vector, and
Impact.
The Evolving Cyber Threat Landscape
• It's a dynamic battlefield
– From individual hobbyists → organized crime →
nation-states
– Attacks are increasingly sophisticated, targeted,
and costly
• Cyber threats evolve continuously over time
Types of Cyber Threats
• Cybercrime: Financially motivated attacks
• Cyber Espionage: Theft of sensitive or
classified information
• Hacktivism: Ideological or political motivations
• Cyber Warfare: State vs. state attacks on
infrastructure
• Insider Threats: Malicious or negligent internal
actions
Common Threat Agents & Their
Motivations
Threat Agent Typical Motivation Common Tactic
1
Low
2 Moderate
3 High
These impact levels help organizations assess risk, allocate security resources
appropriately, and develop contingency plans tailored to the potential
severity of security incidents.
Low Impact Security Breaches
Low impact breaches cause limited negative effects on organizational
operations, assets, or individuals.
Minor financial loss that falls within acceptable operational risk parameters
Significant degradation in mission capability where the Significant damage to organizational assets requiring
organization can still perform primary functions, but substantial resources to repair
effectiveness is significantly reduced
Significant financial loss impacting operational budgets or Significant harm to individuals that doesn't involve loss of
requiring special funding life or serious, life-threatening injuries
High Impact Security Breaches
High impact breaches cause severe or catastrophic negative effects on
organizational operations, assets, or individuals.
Low/No Confidentiality
• Doctors must trust that patient allergy information is correct and current
• Falsified data (e.g., by an authorized nurse) could cause patient harm
• Database must be quickly restored to a trusted state after tampering
• Actions should be traceable to the responsible individual
• Inaccurate information could result in serious harm or death to patients
• Hospital could face massive liability for integrity failures
Integrity: Real-World Examples (Part 2)
• Some data loss requiring restoration • Their inaccuracy is well understood by users
• Limited financial impact • They're recognized as unscientific by nature
• Time loss for administrators • Results aren't used for critical decision-making
However, if the forum isn't used for critical purposes like • Manipulation has minimal consequences
research and generates little revenue, potential damage is not
severe.
Availability: Real-World Examples (Part 1)
Authentication Services for Critical Systems
Traffic Analysis
Even with encrypted content, an attacker can observe:
• Communication patterns
• Message frequency
• Message length
• Sender/receiver identities
This metadata can reveal the nature of communication taking place.
Passive Attack: Interception
Key Characteristics of Interception Attacks
The primary security approach for passive attacks is prevention rather than
detection, focusing on making the intercepted data useless to attackers.
Active Attacks: Categories and Impact
Active attacks involve modification of data streams or creation of false streams. These attacks are divided into four main categories:
Masquerade Replay
One entity pretends to be a different entity, often to gain Passive capture of a data unit followed by its
unauthorized privileges or access protected resources. retransmission to produce an unauthorized effect, such as
repeating authentication sequences.
• Typically combined with other forms of active attacks • Passive capture of authentication sequences
• Often involves stolen credentials or session hijacking • Retransmission to fraudulently authenticate
• Enables privilege escalation by impersonating entities with • Can work even with encrypted communications
higher access levels • No need to understand the data contents
• Can bypass authentication mechanisms • Example: Capturing and replaying authentication tokens to
• Example: Using stolen administrator credentials to access gain unauthorized access
restricted systems
Active Attacks: Modification & Denial of Service
Modification of Messages Denial of Service (DoS)
These attacks alter legitimate messages to create unauthorized DoS attacks prevent normal use of computing resources:
effects:
• May target specific services (e.g., security audit)
• Changing critical parts of messages • Can affect entire networks
• Delaying messages to create timing issues • Methods include disabling networks or overwhelming with traffic
• Reordering message sequences • Distributed DoS (DDoS) uses multiple attacking systems
• Example: Changing "Allow John Smith to read file" to "Allow • Often used for extortion or as distraction for other attacks
Fred Brown to read file"
• Can bypass authorization checks
• May trigger unintended system behavior
Active Attack: Denial of Service
Understanding DoS Attack Mechanics
In a denial of service attack, the attacker floods a target with excessive requests
or traffic, overwhelming its capacity to respond. This can be executed through
various techniques:
Capture Phase
Attacker passively intercepts valid network traffic containing authentication
tokens, session cookies, or other credentials during legitimate user
transactions.
Analysis Phase
Attacker identifies valuable data units that can be reused, even without
understanding their internal structure or encryption.
Retransmission Phase
Attacker retransmits the captured data at a later time to replicate the
original transaction, gaining unauthorized access or executing
unwanted operations.
Active Attack: Modification
Message Modification Techniques
Sequence Reordering
Changing the order of a series of messages to produce unintended effects.
Uses mathematical algorithms to transform data into a form Data appended to or transformed from a data unit that:
that's not readily intelligible:
• Proves the source of the data (authentication)
• Encryption and decryption depend on algorithms and keys • Verifies data integrity
• Protects data confidentiality during storage and transmission • Prevents forgery by recipients
• Provides foundation for many other security services • Provides non-repudiation of origin
Security Mechanisms: Access Control & Integrity
Access Control Data Integrity
A variety of mechanisms that enforce access rights to resources: Mechanisms that assure the integrity of data units or streams:
• Authentication factors (something you know, have, are) • Checksums and hash functions
• Authorization policies • Message authentication codes (MACs)
• Principle of least privilege • Digital signatures
• Role-based access control • Version control systems
• Mandatory access control • Blockchain technology
Additional Security Mechanisms
59
Here’s an explanation of each attribute in the dataset:
1. File Size (MB):
1. Represents the size of the file in megabytes (MB).
2. Malware files often have unusual sizes compared to normal files, either being
very small (to avoid detection) or unusually large due to embedded malicious
payloads.
2. File Type:
1. Specifies the type or format of the file, such as EXE (executable), TXT (text file),
DOC (document), PDF, or JPG (image).
2. Executable files (EXE) are more likely to contain malware, whereas other file
types like TXT or JPG are less likely to be malicious but can still be used as delivery
vectors for certain attacks.
3. Encryption (Yes/No):
1. Indicates whether the file is encrypted or not.
2. Malware creators often encrypt their files to confuse the malicious content and
bypass security detection.
1/27/2025 Applied ML for Cybersecurity
60
4. Number of Connections:
1. Refers to the number of network connections initiated by the file or application.
2. Malware frequently establishes multiple connections to external servers for
activities like data exfiltration, command-and-control (C2), or downloading
additional malicious payloads.
5. CPU Usage (%):
1. Shows the percentage of CPU resources consumed by the file or associated
process.
2. Malicious files often cause unusually high CPU usage due to activities like mining
cryptocurrency, launching denial-of-service (DoS) attacks, or running background
processes.
6. Label:
1. Indicates whether the file is Malicious (contains malware) or Benign (safe and free
of threats).
2. This is the target variable used in machine learning models for classification
purposes.
1/27/2025 Applied ML for Cybersecurity
61
Class
Guidelines
62
Interactive Scenario: Secure the
Startup
• Scenario: A fintech startup launching a cloud-
based web application
• Assets: Customer data, web application, cloud
infrastructure
• Attack Surfaces: Web app, cloud services,
employee laptops
• Task: Propose 1 technical and 1 human control
per surface
• Group discussion and presentation (20 minutes)
The Future & Your Role
• AI vs. AI in cybersecurity
• Quantum computing and encryption
challenges
• Increasing regulation and privacy laws (GDPR,
CCPA)
• Everyone plays a role in security: developers,
managers, users
• Think security first: a mindset, not just a
department