Types of Malware, Explained

UPI Study › Courses › Introduction to Operating Systems › Free lessons › Lesson 9.1 Free with a free account

Types of Malware

Introduction to Operating Systems · Chapter 9: Computer Security and Threat PreventionSection 9.1 · lesson 69 of 838 min · free with a free account

← Computer Security FundamentalsNext lesson: Security Risks →

A free account plays all of Chapter 1 and 3 more lessons of Introduction to Operating Systems. Create a free account →

Earn 3 college credits for Introduction to Operating SystemsRecommended for credit by NCCRS · Computer Science 354 · self-paced · one payment, lifetime access

In this lesson

Sorting malware by how it spreads and what it does.

  • Distinguish viruses, worms, and trojans by how they travel
  • Describe common payloads such as ransomware, spyware, rootkits, and botnets
  • Classify a real attack by both its delivery and its payload
  • List everyday habits that defend against most malware

Free study notes

Get this lesson's notes by email

The key points and 4 practice questions with answers, in your inbox. One email, free.

One email. Unsubscribe in one click.

Transcript

Everything said in the video, section by section (1,045 words). Read along, or search it.

Opening Story

Three Symptoms on an Old Laptop

Sam, who runs a small online bakery, notices the old laptop acting strangely. The fan roars, even with nothing open. A toolbar nobody installed sits in the browser. And a message on the screen says the files are locked. Three different problems, and quite possibly, three different kinds of bad software. Doctors name diseases so they can treat each one. Security people name harmful programs for the same reason.

Two Questions

Delivery and Payload

Malware, short for malicious software, is any program built to harm a computer, steal from its owner, or spy on them. People call all of it a virus. But a virus is only one kind, the way a sedan is only one kind of car. To tell the kinds apart, ask two questions. First, how does it get in and spread? That's its delivery. Second, what does it do once it's there? That's its payload: the part that does the real job, like the data a packet carries in lesson 8.3. Viruses, worms, and trojans are named for how they travel. The other six are named for what they do.

How It Spreads

Viruses, Worms, and Trojans

Start with the three travelers. A virus attaches itself to a file or a program, like a germ riding on a host. By itself, it does nothing. It spreads when someone runs the infected program, or shares the file. A worm needs no host, and no click. It copies itself from computer to computer, across a network. It usually gets in through a weakness in a running service that was never updated. Each new victim attacks others, so worms spread very fast. A trojan, named for the Trojan horse, pretends to be something useful: a free game, a required update, or an invoice. It doesn't copy itself. It waits for you to invite it in.

Quick Check

Forty Library Computers Overnight

Quick check. Overnight, forty computers in a library fall ill, one after another. The staff were home asleep, and nobody opened a file. Every machine had skipped the same update. Which kind of malware is this most likely to be? Pause, and decide. A worm. The machines fell one after another with no one clicking anything, so it traveled across the network by itself. The skipped update was its way in: a known weakness in a service. A virus needs someone to run or share an infected file, and a trojan needs someone to install it. Nobody did either.

What It Does

Ransomware, Spyware, Keyloggers, and Adware

Once inside, malware does something. Ransomware locks the owner's files with encryption, and demands payment for the key. That attacks availability, from lesson 8.7: the files are still there, but no use to anyone. Spyware quietly gathers information, such as the sites you visit and your saved logins, and sends it away. That attacks confidentiality. A keylogger is spyware that records what you type, passwords included. Adware floods you with ads, or changes the browser's search page. It's the mildest, but it often arrives bundled with worse things.

Hiding and Recruiting

Rootkits, Botnets, and Mirai

A rootkit is built to hide. It buries itself deep in the operating system, even in the kernel. It hides its own files and processes, so ordinary tools can't see it. That makes it very hard to remove. A botnet is a network of infected computers, called bots, quietly taking orders from one controller. The controller can make them all flood one website with requests at once, so real visitors can't get in. Or send spam. In 2016, the Mirai botnet took over home routers, cameras, and video recorders, using a list of sixty-two common default passwords. Their owners usually noticed nothing.

Combined Attacks

WannaCry Was a Worm and Ransomware

Real attacks often combine the two questions: one type for delivery, another for the payload. A trojan might be the way in, carrying a keylogger as its payload. In May 2017, WannaCry was both a worm and ransomware. It spread on its own through a Windows file-sharing flaw, then locked each machine's files. Microsoft had released the fix for that flaw about two months earlier. Lesson 9.5 comes back to why that matters.

Quick Check

A Flashlight App That Steals Contacts

Quick check. A free flashlight app works fine. But every night, it quietly sends its owner's contacts to a stranger. It never copies itself anywhere. The owner installed it from a link in a message. Use both questions. How did it travel, and what does it do? Pause, and decide. A trojan carrying spyware. It looked useful, and the owner installed it, so its delivery is a trojan. Sending contacts away in secret is spyware's job. It isn't a worm, because it never copied itself. And adware shows ads. It doesn't steal your contacts.

Warning Signs

Symptoms and Everyday Defenses

Most malware isn't subtle forever. Warning signs include crashes, slowdowns, a busy fan, strange pop-ups, new toolbars, and logins you didn't make. But the best malware shows no sign at all. And infections don't only come from downloads: attachments, links, USB sticks, and network weaknesses all work. So judge a computer by habits and checks, not by the absence of warnings. The same few defenses come up again and again. Keep software updated. Install only from sources you trust. Run with the least access you need. Keep backups that malware can't reach. And be careful with email and links.

Real Example

Limited Access and Offline Backups Pay Off

Ivy, who looks after the computers at a school, saw these habits pay off. A staff member opened an invoice attached to an email. It was a trojan, and within minutes it tried to lock the shared files. But each person could change only their own folders, as in lesson 8.6. So only one person's files were hit. And Ivy's team kept offline backups. Those files were restored the same afternoon.

Story Ending

Naming the Laptop's Three Problems

Back to Sam's laptop, and its three problems. The new toolbar points to adware: mild, but a warning. The roaring fan, with nothing open, may be a bot doing someone else's work. And the locked files are ransomware. What gets them back is a recent backup, kept where the malware can't reach. Lesson 9.9 shows how antivirus tools find and remove the rest.

Key Takeaways

Delivery and Payloads Reviewed

To recap. Ask two questions of any malware: how does it travel, and what does it do? Viruses ride on files, worms spread by themselves, and trojans trick you into installing them. Payloads lock files, spy, show ads, hide, or recruit your computer into a botnet. And a few habits, updates, trusted sources, least access, and backups, defend against most of them.

About Introduction to Operating Systems at UPI Study

Introduction to Operating Systems (Computer Science 354) is a self-paced online course of 83 video lessons in 10 chapters, from what an operating system does and process scheduling to concurrency, memory, devices, file systems, networks, the internet, security and virtual machines. It carries a NCCRS credit recommendation for 3 semester credits.

Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Compare: Linux vs Operating Systems

Why take it here

Why students take Introduction to Operating Systems with UPI Study

What happens under every app you runIntroduction to Operating Systems explains the software that runs a computer: processes and scheduling, threads and synchronization, deadlock, memory and paging, devices and storage, file systems, networking, security and virtualization. It suits computer science and information technology degrees.
Credit at a fraction of the priceThe same 3 credits can cost $750 or more at a US college. Here it is one payment, self-paced, with lifetime access.
Finish your degree soonerTransfer credits reduce the courses you still owe, so you can graduate earlier or lighten a heavy semester.
Strengthen an applicationA completed college-level course on an official transcript shows admissions and scholarship committees you can do the work.
Study on your own scheduleNo start dates, no deadlines. Watch the lessons, practice, and take the final when you are ready.
130,000+students helped with college creditsACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Where the credit goes

Universities that work with NCCRS

Introduction to Operating Systems carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.

Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.

FAQ

Questions students ask us

About Types of Malware

What is the difference between a virus, a worm, and a trojan?
They differ in how they travel. A virus attaches itself to a file or program and spreads only when someone runs or shares the infected file. A worm needs no host and no click; it copies itself across a network, often through an unpatched service. A trojan pretends to be useful software, such as a free game or an invoice, and relies on the user to install it.
What does ransomware do to a computer?
Ransomware encrypts the owner's files and demands payment for the key. The files stay on the disk but cannot be used, so it attacks availability. A reliable way to recover is a recent backup kept where the malware cannot reach it. WannaCry, in May 2017, combined ransomware with a worm, spreading on its own through a Windows file-sharing flaw that Microsoft had already fixed.
What is a botnet?
A botnet is a network of infected computers, called bots, that quietly take orders from one controller. The controller can make them all flood a website with requests so real visitors cannot get in, or send spam. In 2016, the Mirai botnet took over home routers, cameras, and video recorders by trying a list of sixty-two common default passwords, and most owners noticed nothing.
How can you tell if a computer has malware?
Common warning signs include crashes, slowdowns, a busy fan with nothing open, strange pop-ups, new browser toolbars, and logins you did not make. However, well-built malware can show no sign at all, so a computer should be judged by habits and checks rather than by missing symptoms. Updating software, installing from trusted sources, using least access, and keeping backups defend against most infections.

About the Introduction to Operating Systems course

How many college credits is Introduction to Operating Systems?
Introduction to Operating Systems (Computer Science 354) carries a NCCRS credit recommendation for 3 semester credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
How much does Introduction to Operating Systems cost and what is included?
$250, paid once, with lifetime access: all 83 video lessons, a practice quiz after each, the graded work and final exam, and an official transcript when you finish. Students who want several courses choose UPI Study PRO instead.
Which universities accept UPI Study credits?
UPI Study has signed partner agreements with universities such as Thomas Edison State University, University of the People and Charter Oak State College, and works with universities such as Penn State, SNHU and SUNY. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities. Use "Find my college" on this page to check yours.
How long does Introduction to Operating Systems take?
It is self-paced with no deadlines. The 83 lessons total about 10 hours of video; most students add reading and practice time and finish in a few weeks to a few months, on their own schedule.
How are the exams done?
Quizzes and assignments are online in the course. The final exam is taken online with proctoring; a person on the UPI Study team checks assignments, usually within two days.
How do my credits reach my college?
When the course shows 100% complete, request the official transcript from your dashboard. It is sent to the college you name, and you can send it to more than one. Check your college first with "Find my college" on this page, or ask Athena.

Ready for the full course? Earn 3 credits in Introduction to Operating Systems.

83 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.

Updated

Introduction to Operating Systems
3 credits · NCCRS
Enroll →