Student Hub · Cybersecurity

Malware Basics: Viruses, Worms, Trojans and Ransomware

Malware is software or code intended to perform harmful or unauthorized actions. Learning the differences between common types helps students understand security warnings and choose safer responses.

Digital cybersecurity imagery representing malicious software and device protection
Digital cybersecurity imagery representing malicious software and device protection. Image served externally; Avenqora Vortax does not host the image file.

What you will learn

  • Define malware in plain language
  • Distinguish viruses, worms, Trojans, spyware and ransomware
  • Identify everyday habits that reduce infection risk

What is malware?

Malware is short for malicious software. It describes software or code designed to harm a device, disrupt operations, steal information or gain unauthorized access. Malware is a broad category, not the name of one specific program.

Malware may arrive through an unsafe download, an attachment, a compromised website, a malicious advertisement, a vulnerable service or an infected removable device. The route depends on the threat and the system involved.

Common malware categories

  • Virus: malicious code that attaches to a file or program and may spread when the infected host is executed or shared.
  • Worm: malware that can spread between systems, often by exploiting a weakness or using network access.
  • Trojan horse: a program that appears legitimate or useful but performs an unauthorized action when installed or run.
  • Spyware: software that secretly gathers information about a person or organization.
  • Ransomware: malware that blocks access to systems or data and demands payment for restoration or non-disclosure.

These descriptions are learning categories. Real incidents can combine techniques, so a piece of malware may not fit neatly into only one label.

How malware reaches a device

An infection can begin when someone installs an untrusted application, opens a dangerous attachment, follows a deceptive link or uses software that has not been updated. In other cases, attackers exploit an exposed service without a user opening a file. The important lesson is that there is no single “malware button” to avoid; protection depends on several habits and controls.

Warning signs to take seriously

Unexpected pop-ups, unknown applications, unusual account activity, files that will not open, security settings that change without permission or unexplained device slowdowns can be reasons to investigate. These signs do not prove malware by themselves. Hardware faults, browser extensions and ordinary software bugs can produce similar symptoms.

Reduce everyday risk

  1. Install software from official developer stores or trusted vendor websites.
  2. Keep the operating system, browser and applications updated.
  3. Use a standard user account for daily work where possible and reserve administrator privileges for tasks that require them.
  4. Do not enable macros or install unexpected files simply because a message asks you to.
  5. Use multi-factor authentication and unique passwords to protect important accounts.
  6. Keep backups that are protected from accidental deletion and ransomware access.
  7. Use reputable security protections and pay attention to their warnings.

What to do if you suspect an infection

Do not try random removal tools from search advertisements or unverified websites. Follow the security instructions provided by your device or organization's support team. If it is a school or work device, contact the approved IT support channel. Avoid connecting backup drives until the situation is assessed, because an infected system may affect connected storage.

If important accounts may be exposed, use a separate trusted device to review account activity and change credentials as advised by the service provider. Preserve useful details such as the warning message, time and file name for support staff.

Worked example: an unexpected attachment

You receive a message saying that a delivery failed and that an attached file contains the new tracking details. You were not expecting the message. Before opening anything, check whether the sender and delivery company are genuine using a website or contact detail you already trust. If the message is unexpected or the address does not match, do not open the attachment. Report it through the appropriate channel.

Practice task

  1. Write one sentence that distinguishes a virus from a Trojan.
  2. Explain why ransomware makes backups important.
  3. List three places where you should obtain software updates.
  4. Describe what you would do if a work computer displayed a malware warning.

Quick review

  • Malware is a broad category of harmful or unauthorized software.
  • Viruses, worms, Trojans, spyware and ransomware describe different behaviors.
  • Updates, trusted downloads, account protection and backups reduce risk.
  • Suspicious symptoms need investigation; they are not proof by themselves.

Further reading