← All courses CSIS 3352 · Module 1

Artificial Intelligence and Cybersecurity

📅 Quiz 1 — due 8/25 · Covered on Midterm (Modules 1–9) — moved to Tue Oct 27
📌 Lecture 1 does not print a numbered list of learning objectives. The 16 objectives below were derived from the deck's own section structure and slide titles, so the wording is not the professor's. Every fact underneath them comes only from the slides.
Part I · Artificial Intelligence Part II · Cybersecurity

Study Guide

Module 1 · Lecture 1 — Parts I & II

Defining AI

  • Artificial Intelligence — the ability of computers or machines to perform tasks that normally require human intelligence.
  • What AI systems can do — learn from data, recognize patterns, make predictions, understand language, recognize images, solve problems and make decisions, automate repetitive tasks.
  • Why we need it — humans generate enormous amounts of data every day, far more than people can examine by hand.
  • What AI helps us do — analyze large amounts of data quickly, find hidden patterns humans might miss, automate repetitive tasks, make faster and more accurate decisions, detect unusual or suspicious activity, reduce human workload on complex problems.
  • Scale example — a human analyst may struggle to review millions of network events by hand; an AI system scans them all automatically and flags the suspicious ones in seconds, not weeks.

How an AI system works

A simple AI system is four connected stages: Data → Learning → Model → Prediction.

  • Data — thousands of emails collected.
  • Learning — analyze words and patterns.
  • Model — learn what spam looks like.
  • Prediction — Spam or Not Spam?
  • Key idea — data is one of the most important ingredients of any modern AI system; better data generally means a better model.

Three levels of AI capability

LevelStatusDefinition & examples
Narrow AIIn use todayDesigned for one specific task. Spam detection, facial recognition, chatbots, recommendation systems, malware detection.
General AITheoreticalCapable of performing many intellectual tasks like a human. Still a research goal — not yet achieved.
SuperintelligenceHypotheticalWould exceed human intelligence across many areas. Discussed in long-term AI safety research.

Today, almost all practical AI systems in use are Narrow AI.

Major areas of AI

  • Machine Learning · Deep Learning · Computer Vision · Natural Language Processing
  • Robotics · Expert Systems · Knowledge Representation · Search & Optimization
  • Course focus — Artificial Intelligence → Machine Learning → Cybersecurity Applications.

AI, Machine Learning, and Deep Learning

  • Nested circles — Deep Learning inside Machine Learning inside AI.
  • AI is the broadest field — the overall goal is to build systems that behave intelligently.
  • ML is a subset of AI — a technique where computers learn patterns directly from data.
  • DL is a subset of ML — uses multi-layer neural networks for complex data like images and text.

AI vs Machine Learning — the two formulas

  • Artificial Intelligence — the broad goal of creating systems capable of intelligent behavior.
  • Machine Learning — a technique that lets computers learn patterns from data, instead of being explicitly programmed for every situation.
  • Traditional programming — Data + Rules → Output.
  • Machine learning — Data + Expected Outputs → Learning → Model.
  • Then — New Data + Model → Prediction. The trained model can now make predictions on data it has never seen before.

What is Machine Learning?

  • Definition — ML lets computers learn patterns from data and use those patterns to make predictions or decisions.
  • Simple definition — Machine Learning = learning patterns from data. Instead of a programmer writing every rule by hand, the system studies many examples and works out the rules itself.
  • Common examples — predict whether an email is spam, detect fraudulent transactions, predict house prices, recognize malicious network traffic, recommend movies or products, detect malware.

Worked example — detecting phishing emails

  • Setup — suppose we have 10,000 emails; some are Normal and some are Phishing. We give these labeled examples to a Machine Learning algorithm.
  • Patterns the algorithm learns — suspicious words in the message, unusual or fake-looking URLs, sender information that looks wrong, odd message structure.
  • Then a new email arrives — New Email → ML Model → Phishing or Legitimate.
  • Why it matters — this is one of the clearest ways AI supports cybersecurity: learning from past examples to judge brand-new emails.

Deep Learning

  • Definition — a specialized type of Machine Learning that uses artificial neural networks with multiple layers.
  • Especially powerful for — images, text, audio, video, large-scale datasets with millions of examples.
  • Where you'll see it — face recognition, speech recognition, large language models (like chatbots), medical image analysis, advanced malware detection.

Machine Learning vs Deep Learning

Machine LearningDeep Learning
RelationshipSubset of AISubset of Machine Learning
Learns fromData, with patterns found by algorithmsData, using multi-layer neural networks
Works best withStructured, tabular dataComplex / unstructured data (images, text)
Feature engineeringOften needs manual feature selectionCan automatically learn complex features
Dataset sizeCan work with smaller datasetsOften benefits from very large datasets
Compute costUsually less computationally expensiveOften requires more computing power

Both can be useful in cybersecurity — the right choice depends on the data available and the problem being solved.

Computer Vision and Natural Language Processing

  • Computer Vision (CV) — enables computers to understand and analyze visual information. Works with images, videos, camera feeds, scanned documents.
  • CV examples — face recognition, object detection, medical image analysis, license-plate recognition, security-camera analysis, image classification.
  • Natural Language Processing (NLP) — enables computers to understand, analyze, and generate human language. Works with text and documents, emails and messages, speech converted to text.
  • NLP examples — chatbots, language translation, sentiment analysis, email classification, phishing-email detection, text summarization.
  • Side by side — CV primarily works with images and videos; NLP primarily works with text, messages, emails, and language. Both are important application areas of modern AI and many real systems combine them.

Three major types of Machine Learning

  • Supervised Learning — learn from labeled data; the correct answer is already known. The model learns Input → Known Output, then predicts the label of brand-new, unseen data. Cybersecurity examples: malware vs benign software, spam vs legitimate email, fraud vs legitimate transaction, malicious vs normal network traffic.
  • Unsupervised Learning — works with data that has no predefined labels. The system tries to discover groups of similar data, hidden patterns, similarities and differences, and unusual behavior. An anomaly points to a possible security threat.
  • Reinforcement Learning — an agent learns by interacting with an environment: Observes → Takes Action → Receives Reward/Penalty → Learns, then loops. Security example: the system observes a possible attack and can allow the traffic, block the traffic, or request additional verification. Good decisions receive positive rewards, bad decisions receive penalties, and over time the system learns better defensive strategies.
TypeData / FeedbackMain goalCybersecurity example
SupervisedLabeled dataPredict known classesMalware classification
UnsupervisedUnlabeled dataDiscover patternsAnomaly detection
ReinforcementRewards / PenaltiesLearn actionsAdaptive cyber defense

Easy way to remember: Supervised = learn with answers · Unsupervised = find patterns without answers · Reinforcement = learn from rewards.

Data

  • Definition — data is information collected and stored so it can be analyzed or used by computer systems.
  • Data can represent — numbers and text; images, video, and audio; network traffic; user activities and computer logs; transactions.
  • Key idea — Data → Learning → Model → Prediction. AI depends heavily on data. Poor-quality data leads to poor-quality AI models — "garbage in, garbage out."
  • Structured data — organized in a predefined format, often rows and columns. Examples: database tables, Excel files, transaction records, customer information.
  • Unstructured data — data without a simple tabular structure. Examples: images and videos, emails and documents, audio, social media posts.
  • AI techniques can work with both types — often in the same system.

Structured data — security example

IP addressFailed loginsData transferThreat
192.168.1.10215 MBNormal
192.168.1.251454.8 GBSuspicious
192.168.1.30122 MBNormal

Because this information has defined rows and columns, it is structured data. Machine Learning can use these features — failed logins, data transferred, and more — to detect suspicious behavior automatically, without a human reviewing every row.

Unstructured data — security example

  • Cybersecurity also produces large amounts of unstructured or semi-structured information: phishing email text, security reports and PDF documents, screenshots and images, malware files, chat messages, audio / video evidence.
  • Matching AI technique to data — Text → Natural Language Processing. Images / Video → Computer Vision. Different AI techniques suit different data types.

The AI / ML pipeline — seven steps

  • 1. Collect Data → 2. Clean & Prepare Data → 3. Select Useful Features → 4. Train a Model → 5. Evaluate the Model → 6. Make Predictions → 7. Deploy & Monitor
  • Cybersecurity example — Network Logs → Prepare Data → Train Model → Detect Attacks.
  • The same seven-step pipeline that predicts house prices or recommends movies can be pointed at network logs to automatically detect cyberattacks — the process is the same, only the data and the goal change.

What is cybersecurity?

  • Definition — cybersecurity protects digital systems and information from unauthorized access, damage, disruption, and attack.
  • Cybersecurity protects — computers, servers, and mobile devices; networks and cloud systems; applications; personal information; organizational data.

Why is cybersecurity important?

  • We use computers for — banking, healthcare, education, government, transportation, communication, business, national infrastructure.
  • Cyberattacks can cause — financial loss, data theft, privacy violations, service disruption, reputation damage, national security risks.

The CIA Triad

  • Confidentiality — only authorized users should access information.
  • Integrity — information should not be changed without authorization.
  • Availability — systems and information should be available when needed.
  • CIA Triad = Confidentiality + Integrity + Availability — one of the foundational models of cybersecurity.

Threat, vulnerability, and risk

TermDefinitionExample
ThreatSomething that can potentially cause harm.A hacker, malware, or a phishing attack.
VulnerabilityA weakness that can be exploited.A weak password or outdated software.
RiskThe potential for loss or damage when a threat exploits a vulnerability.The combined danger to the organization.

Simple relationship: Threat + Vulnerability → Risk.

What is a cyberattack?

  • Definition — a deliberate attempt to compromise, damage, disrupt, or gain unauthorized access to a computer system or network.
  • Attackers may try to — steal information or passwords, damage or disrupt systems, install malware, demand money (extortion), spy on users, gain unauthorized access.
  • Entry points — phishing emails, malicious websites, malicious downloads, infected USB drives.
  • Consequences — cyberattacks can lead to data loss, financial loss, reputational damage, and reduced trust. Strong cybersecurity helps prevent these threats.

Malware

  • Malware = Malicious Software — designed to harm, disrupt, spy on, or gain unauthorized access to systems.
  • Seven types listed — Virus, Worm, Trojan, Ransomware, Spyware, Adware, Rootkit.
  • Ransomware example — can encrypt a victim's files and then demand payment for their recovery, locking the owner out of their own data until they pay, with no guarantee the files will ever be restored.
⚠️ The slide lists the seven malware types by name only — it gives no individual definitions for virus, worm, Trojan, spyware, adware, or rootkit. Only ransomware is explained. If the quiz asks you to define the others, that definition is not in this deck.

Common cyber threats

  • Malware · Phishing · Ransomware · Password attacks · Social engineering
  • Denial-of-Service attacks · Web attacks · Insider threats · Data breaches · Identity theft
  • Organizations face many types of cyber threats, and attack techniques keep evolving.

Phishing

  • Definition — a social-engineering attack where an attacker pretends to be a trusted person or organization to trick a victim.
  • Attackers may try to steal — passwords, credit card information, banking information, personal information, login credentials.
  • Example message — a warning that the account will be closed and a demand to click through immediately to verify the password.
  • What happens next — the link leads to a fake website designed to steal the victim's real login details.

Social engineering

  • Definition — attacks people rather than relying only on technical vulnerabilities.
  • Attackers manipulate victims into — revealing passwords, clicking malicious links, downloading malware, sending money, providing confidential information.
  • Common forms — phishing, spear phishing (targeted phishing), pretexting (inventing a false scenario), impersonation, baiting.
  • Key idea — humans can be a target in cybersecurity, not just machines.

Fraud and fraud detection

  • Fraud — intentional deception for financial or personal gain.
  • Common examples — credit card fraud, banking fraud, insurance fraud, identity theft, online payment fraud.
  • Detection in action — a user normally makes purchases from one city; suddenly several unusual transactions occur from different countries within minutes of each other. Security systems analyze transaction and behavior patterns and flag this activity as suspicious for review.

Authentication and access control

  • Authentication — "Who are you?" — verifies your identity. Examples: password, fingerprint, face recognition, security token / one-time code.
  • Access control — "What can you do?" — determines what you are allowed to access. Example: a student can view course materials but cannot modify financial records.
  • The pairing — Authentication → Who are you? Authorization → What can you do?
⚠️ The slide title says "Access Control" but the summary bar underneath pairs Authentication with Authorization. The deck treats the two labels as the same idea — the "what can you do" half of the pair. Expect either word on a quiz.

Network security

  • Definition — network security protects computer networks and the data traveling through them.
  • Firewall — blocks unauthorized access and filters traffic.
  • Intrusion Detection System (IDS) — monitors network traffic and detects suspicious activities.
  • Intrusion Prevention System (IPS) — automatically blocks or prevents detected threats.
  • VPN — creates a secure, encrypted connection over the internet.
  • Encryption — protects data in transit and at rest.
  • Network monitoring — continuously monitors network health and traffic.

Offensive security

  • Definition — finds and exploits security weaknesses, with authorization, before malicious attackers can.
  • Activities — penetration testing, vulnerability assessment, ethical hacking, red teaming, security testing.
  • Goal — think like an attacker to identify weaknesses before real attackers do.
  • Important — professionals must always operate within explicit legal and organizational authorization.

Defensive security

  • Definition — focuses on protecting systems and responding to attacks.
  • Activities — monitoring networks, detecting attacks, configuring firewalls, managing vulnerabilities, incident response, malware analysis.
  • Goal — prevent, detect, contain, and respond to cyberattacks, keeping systems running safely day to day.

Offensive vs defensive security

Offensive SecurityDefensive Security
Finds weaknessesProtects systems
Simulates attacksDetects attacks
Penetration testingSecurity monitoring
Red TeamBlue Team
Ethical hackingIncident response
Thinks like an attackerThinks like a defender

Both are important. Organizations need to understand how attacks happen AND how they can be prevented or detected.

Flashcards

Question
Answer

Practice Quiz

Discussion Board Prep

Notes Template

Module 1 · Lecture 1 — Print this tab for in-class notes

📌 Module 1 source material

Everything on this page comes from Lecture 1 — Artificial Intelligence and Cybersecurity (Foundations and Overview), 40 slides, posted to Blackboard. The professor's instruction: review the Lecture 1 materials carefully before attempting Quiz 1.

AI definition & capabilities

Data → Learning → Model → Prediction

Narrow / General / Super

AI ⊃ ML ⊃ DL

Traditional programming vs ML

ML vs DL — six dimensions

Computer Vision vs NLP

Supervised / Unsupervised / RL

Structured vs unstructured data

Seven-step ML pipeline

CIA Triad

Threat + Vulnerability → Risk

Malware types

Phishing & social engineering

Authentication vs access control

Offensive vs defensive security