Skip to content
— CH. 1 · INTRODUCTION —

Malware

9 min listen · Ch. 1 of 7
7 sections
  • Malware - a portmanteau of "malicious software" - is any program deliberately built to disrupt, destroy, or steal. By 2017, Symantec's Internet Security Threat Report counted 669,947,865 distinct malware variants in existence. That figure was twice the total from the year before. Cybercrime, with malware attacks at its center, was projected to cost the global economy six trillion US dollars in 2021, growing at a rate of 15 percent each year.

    What begins with a floppy disk slipped into a drive can end with a hospital locked out of its own patient records. A device no more suspicious than a USB-connected desk fan can carry the infection. How did a theoretical curiosity dreamed up by mathematicians become one of the most costly threats in human history? What shapes does it take, how does it hide, and what can actually stop it?

  • John von Neumann was the first to argue, on purely theoretical grounds, that a computer program could reproduce itself. His work established a plausibility result in computability theory long before the personal computer existed. Fred Cohen then moved the idea from theory into practice, experimenting with actual computer viruses and confirming von Neumann's postulate. Cohen's 1987 doctoral dissertation was devoted entirely to the subject.

    Cohen also investigated early properties like detectability and self-obfuscation using rudimentary encryption. From the mid-1990s onward, researchers began combining cryptographic technology with malicious payloads, an approach that laid the groundwork for both ransomware and modern evasion techniques.

    Before the internet reached ordinary households, viruses traveled on floppy disks, inserting copies of themselves into executable programs or boot sectors. The first IBM PC virus documented in the wild was a boot sector virus called (c)Brain. The Farooq Alvi brothers created it in Pakistan in 1986. Early computer viruses had already targeted the Apple II and Mac, but (c)Brain's appearance on the IBM PC signaled a much wider battlefield.

  • The Morris worm of 1988 was the first well-known network-borne infectious program. It spread across SunOS and VAX BSD systems not by inserting itself into other programs, but by exploiting security holes in network server software and running as its own separate process. Like many early pieces of infectious code, it was written as an experiment rather than an act of sabotage.

    Since 2003, the majority of widespread viruses and worms have been designed to take control of machines for illicit purposes. Infected computers, sometimes called "zombie computers," have been used to send email spam, host illegal content, and launch distributed denial-of-service attacks as a form of extortion.

    By 2012, it was estimated that roughly 60 to 70 percent of all active malware relied on some form of click fraud, generating payments from advertisers by simulating user clicks. Around 22 percent of all advertising clicks at that time were fraudulent. In 2024, a botnet owner was arrested for running a pay-per-install scheme, illustrating how malware has become a structured commercial enterprise with its own business model.

  • Stuxnet is the most cited example of malware deployed as a political weapon. It was engineered specifically to interfere with industrial control systems, and it can travel across an air-gapped network via a USB drive without ever needing to exfiltrate data. Its existence confirmed that malware could be used to physically damage infrastructure, not just steal data.

    The attack on Sony Pictures Entertainment in November 2014 used malware known as Shamoon, also called W32.Disttrack, to delete files on a massive scale and damage master boot records. A similar strike hit Saudi Aramco in August 2012, actions described by researchers as acts of "computer killing."

    Since 2021, malware has been increasingly aimed at systems running critical infrastructure such as electricity distribution networks. Microsoft's Digital Crimes Unit reported in May 2025 that a program called Lumma Stealer had become the favored information-stealing tool among hundreds of cyber threat actors, capable of emptying bank accounts, holding schools for ransom, and disrupting critical services.

  • Ransomware splits into two broad types: locker ransomware, which freezes access to a computer without touching its files, and crypto ransomware, which encrypts the contents and demands payment before releasing them. Programs such as CryptoLocker and WannaCry belong to the crypto category, typically demanding payment in Bitcoin.

    On Android, Jisut and SLocker are among the most prevalent forms of lock-screen ransomware, with Jisut accounting for nearly 60 percent of all Android ransomware detections. A separate category called Trojan horses disguises itself as ordinary software; in spring 2017, Mac users encountered a new version of the Proton Remote Access Trojan, which was designed to extract password data from browser autofill systems, the macOS keychain, and password vaults.

    Rootkits solve a different problem for attackers: concealment. They modify the host operating system so that malware becomes invisible in process lists and inaccessible to file readers. An early illustration of this persistence appears in the Jargon File, describing two programs on a Xerox CP-V time-sharing system that would detect when the other had been terminated and relaunch it within milliseconds. The only reliable way to stop them was to kill both simultaneously.

  • An estimated 33 percent of malware is not detected by antivirus software. The most common evasion technique involves encrypting the malicious payload so that scanners cannot match it to a known signature. A tool called a crypter packages an encrypted blob of harmful code alongside a decryption stub. Because antivirus programs typically scan files on disk rather than contents held in memory, the stub can decrypt and load the payload into memory undetected.

    Polymorphic malware takes evasion further by transforming itself into new variations, generating signatures that do not match previous versions. Fileless malware goes further still, operating entirely within memory and exploiting legitimate system tools rather than installing its own files. Researchers call this approach Living off the Land, or LotL. In 2017, LotL attacks increased by 432 percent; by 2018 they accounted for 35 percent of all attacks.

    Timing-based evasion adds another layer, with malware choosing to run only during vulnerable windows, such as the system boot process, and staying dormant the rest of the time. The 2018 Data Breach Investigations Report by Verizon found that email remains the dominant delivery channel, responsible for 96 percent of malware delivery worldwide.

  • Antivirus software works through two core methods: static analysis, which studies program code and builds a signature, and dynamic or heuristic analysis, which watches how a program behaves at runtime and blocks unexpected activity. Microsoft Security Essentials covered Windows XP, Vista, and Windows 7, while Windows Defender extended that coverage to Windows 8, 10, and 11.

    Sandboxing confines applications to a controlled environment, restricting their access to system resources and isolating them from other processes. Browser sandboxing specifically isolates web browser tabs from the operating system, trapping potentially harmful code before it can exploit vulnerabilities. Escaping a sandbox is possible, but it requires targeting flaws in the sandbox mechanism itself or in the operating system's sandboxing features.

    Network homogeneity is a systemic risk that defenses often overlook. It was estimated that approximately 83 percent of malware infections between January and March 2020 spread through systems running Windows 10. When every machine on a network runs the same operating system, a single exploited vulnerability can propagate across all of them. Segmenting networks into isolated subnetworks with firewalls between them reduces this exposure, and tools like Secunia PSI, available free for personal use, can scan machines for outdated software listed in public databases such as the National Vulnerability Database.

Common questions

What is malware and what does the word mean?

Malware is a portmanteau of "malicious software" and refers to any program intentionally designed to disrupt, destroy, steal data, or gain unauthorized access to computer systems. Researchers classify it into sub-types including viruses, worms, Trojan horses, ransomware, spyware, adware, rootkits, and keyloggers.

Who created the first IBM PC virus?

The first IBM PC virus documented in the wild was a boot sector virus called (c)Brain, created in 1986 by the Farooq Alvi brothers in Pakistan.

How much does cybercrime cost the global economy?

Cybercrime, which includes malware attacks, was predicted to cost the global economy US$6 trillion in 2021 and is increasing at a rate of 15 percent per year.

What is the difference between crypto ransomware and locker ransomware?

Locker ransomware locks down a computer system without encrypting its files, while crypto ransomware both locks the system and encrypts its contents, demanding payment, typically in Bitcoin, before restoring access. CryptoLocker and WannaCry are examples of crypto ransomware.

What was the Stuxnet malware and how did it spread?

Stuxnet was malware engineered to interfere with specific industrial control systems, widely cited as a politically motivated cyberweapon. It could spread across air-gapped networks via a USB drive without needing to exfiltrate any data.

What percentage of malware is not detected by antivirus software?

An estimated 33 percent of malware is not detected by antivirus software. Techniques such as payload encryption, polymorphic code, fileless execution in memory, and Living off the Land methods all help malware evade detection.

All sources

98 references cited across the entry

  1. 1An Undirected Attack Against Critical InfrastructureUnited States Computer Emergency Readiness Team(Us-cert.gov)
  2. 2BookProceedings of the 29th Annual ACM Symposium on Applied ComputingAndrea Cani et al. — Association for Computing Machinery — 2014-03-24
  3. 3JournalRansomware attacks: detection, prevention and cureRoss Brewer — 2016-09-01
  4. 4JournalMalware-on-the-Brain: Illuminating Malware Byte Codes with Images for Malware ClassificationFangtian Zhong et al. — 2022
  5. 7JournalThe rise of "malware": Bibliometric analysis of malware studyMohd Faizal Ab Razak et al. — 2016-11-01
  6. 8JournalA Novel Malware Classification Method Based on Crucial BehaviorFei Xiao et al. — 2020-03-21
  7. 9Cybercrime To Cost The World $10.5 Trillion Annually By 2025Steve Morgan — Cybersecurity ventures — 13 November 2020
  8. 10JournalMalware propagation in smart grid networks: metrics, simulation and comparison of three malware typesPeter Eder-Neuhauser et al. — 2019-06-01
  9. 11BookMalicious cryptography - exposing cryptovirologyAdam Young et al. — Wiley — 2004
  10. 12BookComputer system security: basic concepts and solved exercisesGildas Avoine — EFPL Press — 2007
  11. 15Top cybersecurity facts, figures and statistics for 2018Josh Fruhlinger — October 10, 2018
  12. 16Computer Virus historyWilliam A Hendric — 4 September 2014
  13. 19BookInformation Security Management HandbookHarold F. Tipton — CRC Press — 2002-12-26
  14. 20MalwareFEDERAL TRADE COMMISSION- CONSUMER INFORMATION
  15. 25MiniDuke Malware Used Against European Government OrganizationsEduard Kovacs — Softpedia — 27 February 2013
  16. 26NewsUkrainian indicted by US govt on cybercrime chargesThomas Claburn — October 26, 2022
  17. 33What are viruses, worms, and Trojan horses?The Trustees of Indiana University
  18. 34BookThe Art of Computer Virus Research and DefensePeter Szor — Pearson Education — 3 February 2005
  19. 38Malware: Types, Analysis and ClassificationsHarjeevan Gill — 2022-06-21
  20. 39NewsInside TAO: Documents Reveal Top NSA Hacking UnitSPIEGEL Staff — SPIEGEL — 2013-12-29
  21. 40Top Zombie, Trojan Horse and Bot ThreatsJohn Edwards — IT Security
  22. 41NewsShopping for Spy Gear:Catalog Advertises NSA ToolboxJacob Appelbaum — SPIEGEL — 2013-12-29
  23. 42A taxonomy of computer program security flaws, with examplesC. E Landwehr — DTIC Document — 1993
  24. 47Non-Windows MalwareBetanews — 24 August 2017
  25. 48Trojan DropperMalwareBytes — 2020-01-30
  26. 49JournalRansomware: Evolution, Mitigation and PreventionRonny Richardson et al. — 2017-01-01
  27. 50NewsThe 5 biggest ransomware attacks of the last 5 yearsJosh Fruhlinger — CSO — 2017-08-01
  28. 53JournalEvolution of ransomwarePhilip O'Kane et al. — 2018
  29. 56Sony, Rootkits and Digital Rights Management Gone Too FarMark Russinovich — Microsoft MSDN — 31 October 2005
  30. 57Rating the best anti-malware solutionsArstechnica — 2009-12-15
  31. 58BookProceedings of the 2012 ACM conference on Computer and communications securityMarkus Kammerstetter et al. — Association for Computing Machinery — 2012-10-16
  32. 59Latest adware disables antivirus softwareHenry T. Casey — Yahoo.com — 25 November 2015
  33. 60Peer To Peer InformationNORTH CAROLINA STATE UNIVERSITY
  34. 61JournalChallenge of Malware Analysis: Malware obfuscation TechniquesJagsir Si̇ngh et al. — 2018-09-01
  35. 64Deniable Password Snatching: On the Possibility of Evasive Electronic EspionageAdam Young et al. — IEEE — 1997
  36. 65JournalThe New Threats of Information Hiding: The Road AheadKrzysztof Cabaj et al. — May 2018
  37. 66JournalAn emerging threat Fileless malware: a survey and research challengesSudhakar et al. — 2020-01-14
  38. 68Malware Dynamic Analysis Evasion Techniques: A SurveyAmir Afianian et al. — 2018
  39. 69Book2015 IEEE 13th International Symposium on Intelligent Systems and Informatics (SISY)Zoltan L. Nemeth — 2015
  40. 70Global Web Browser... Security TrendsKaspersky lab — November 2012
  41. 71Updated Browsers Still Vulnerable to Attack if Plugins Are OutdatedFahmida Y. Rashid — pcmag.com — 27 November 2012
  42. 72Kaspersky: 12 different vulnerabilities detected on every PCDancho Danchev — pcmag.com — 18 August 2011
  43. 75BookSecurity and Privacy in Communication NetworksJose Andre Morales et al. — Springer — 2010
  44. 76BookProceedings of the 18th ACM conference on Computer and communications securityAdrienne Porter Felt et al. — Association for Computing Machinery — 2011-10-17
  45. 77BookICC 2019 - 2019 IEEE International Conference on Communications (ICC)Sha Wu et al. — May 2019
  46. 79The Hard and Soft Cost of ApathyJohn Mutch et al. — Apress — 2011
  47. 80BookRising Threats in Expert Applications and SolutionsVaishali Singh et al. — Springer — 2021
  48. 83Book2016 IEEE Symposium Series on Computational Intelligence (SSCI)Neal Wagner et al. — December 2016
  49. 84BookProceedings of the Genetic and Evolutionary Computation Conference CompanionErik Hemberg et al. — Association for Computing Machinery — 2018-07-06
  50. 86The Best Free Antivirus Software for 2025Neil J. Rubenking — 22 January 2025
  51. 90ReportGuide to Malware Incident Prevention and Handling for Desktops and LaptopsMurugiah Souppaya et al. — National Institute of Standards and Technology — 2013-07-22
  52. 91JournalAntivirus performance characterisation: system-wide viewMohammed Ibrahim Al-Saleh et al. — 2013
  53. 942014 9th International Conference on Malicious and Unwanted Software: The Americas (MALWARE)Mordechai Guri et al. — IEEE — 2014
  54. 952015 IEEE 28th Computer Security Foundations SymposiumMordechai Guri et al. — IEEE — 2015
  55. 96GSMem: Data Exfiltration from Air-Gapped Computers over GSM FrequenciesMordechai Guri et al. — USENIX Security Symposium — 2015
  56. 97Fansmitter: Acoustic Data Exfiltration from (Speakerless) Air-Gapped ComputersMichael Hanspach et al. — 2016
  57. 98JournalThe rise of "malware": Bibliometric analysis of malware studyMohd Faizal Ab Razak et al. — 2016-11-01