Famous computer worms, explained as clearly as we can
These are true stories about harmful programs that copied themselves from computer to computer. SERUM keeps only their stories, patterns, and published fingerprints — never the harmful programs themselves. Some details are technical because the real lessons are in those details, but each card starts with the plain story.
Morris Worm (1988)
What happened: Self-propagating across networked UNIX hosts with no user action required. In plain language, each copy looked for neighbouring machines it could reach, tried several well-known weak doors in standard UNIX services of the era — a debug feature in the mail program, a buffer-overflow flaw in the finger service, trusted-host relationships between machines, and guessing weak or reused passwords — and, if one worked, copied a small bootstrap across and built a fresh copy of itself on the new host, which then repeated the process. A design flaw mattered more than any single door: to avoid being fooled by defenders pretending a host was already infected, the worm re-infected anyway about one time in seven, so hosts accumulated copy after copy until they ground to a halt.
How it spread: by reusing passwords or sign-in details it found · Speed: extremely fast · Was it hidden? not very well hidden
What it aimed at: Sun-3 and VAX systems running 4BSD-derived UNIX
How it got started: Network reachability to a vulnerable or trusting UNIX host; no user action
Story timeline:
- 1988-11-02 — Evening (after 5 p.m. EST): the worm is released onto the Internet, launched from a machine at MIT rather than Cornell. It begins breaking into UNIX hosts and copying itself onward.
- 1988-11-03 — Early morning: teams at UC Berkeley and MIT capture copies and begin analysis. By about 5 a.m. EST, Berkeley's Computer Systems Research Group publishes interim steps to halt its spread, including a preliminary sendmail patch.
- 1988-11-03 — By about 9 p.m. EST, Purdue publishes another simple, effective method of stopping the worm, and Berkeley posts patches for the flaws it used. Sites disconnect and clean up over the following days.
- 1988-11 — In the aftermath, DARPA asks Carnegie Mellon's Software Engineering Institute to establish a computer emergency response team — CERT/CC, the first organisation of its kind.
- 1990-01 — Morris is convicted — the first felony conviction under the 1986 US Computer Fraud and Abuse Act — receiving probation, community service and a fine (as widely reported in historical accounts).
No trustworthy published fingerprint is available for this worm.
What this teaches us:
- Coordinated incident response needs a standing home: CERT/CC, created directly in response, became the template for CSIRTs worldwide.
- Default and debug features left enabled in shipped software are attack surface — disable what you do not need.
- Weak, reused and guessed passwords, and implicit trust between machines, let one compromise become many; least-privilege trust and strong authentication break that chain.
- Unsafe programming patterns (such as unbounded string input) can be exploited at network scale; bounds checking and later memory-safety practice trace part of their urgency to this era.
- Self-limiting logic in any self-replicating code is safety-critical: a small re-infection probability turned a measurement experiment into an outage.
- Disconnecting to quarantine works, but it also slows the spread of fixes — response communication channels matter as much as patches.
Where we read about it: https://citeseerx.ist.psu.edu/document?doi=8e351f1fc37ab53b72c78aa8cc5521ede4757b5d&repid=rep1&type=pdf · https://www.sei.cmu.edu/history-of-innovation/fostering-growth-in-professional-cyber-incident-management/ · https://www.alikemalkaradeniz.com/incidents/morris-worm
WannaCry (2017)
What happened: Network-to-network spread over the SMB file-sharing protocol, with no click required. In plain language: each infected machine scanned for other Windows machines reachable over SMB, and where it found one that had not applied Microsoft's March 2017 MS17-010 security update, it used the publicly leaked 'EternalBlue' exploit for that SMBv1 flaw to install a copy of itself, which then encrypted the new victim's files and scanned onward. Before encrypting, the original sample tried to contact a long, unregistered domain; if the domain answered, the malware exited — the check that became its kill switch once the domain was registered.
How it spread: through a Windows file-sharing weakness · Speed: extremely fast · Was it hidden? not very well hidden
What it aimed at: Unpatched Windows systems with SMBv1 enabled, from Windows XP / Server 2003 era through Windows 2016
How it got started: Reachability over SMB (TCP 445) to a Windows host unpatched for MS17-010; no user action
Story timeline:
- 2017-03-14 — Microsoft publishes MS17-010, patching the SMBv1 vulnerabilities later used for spread — 59 days before the outbreak.
- 2017-04-14 — The Shadow Brokers publicly leak the EternalBlue exploit (per Cloudflare's account).
- 2017-05-12 — Outbreak day: WannaCry spreads worldwide within hours, hitting the NHS, Telefónica, FedEx, Honda, Nissan and many others; ransom notes demand payment in bitcoin.
- 2017-05-12 — Researcher Marcus Hutchins (MalwareTech) registers the unregistered domain the malware checked before running; copies that can reach the now-live domain stop executing, sharply slowing the original wave.
- 2017-05-13 — Microsoft takes the unusual step of issuing emergency patches for out-of-support Windows XP, Windows 8 and Windows Server 2003.
- 2017-12 — The US and UK governments publicly attribute WannaCry to North Korea (attribution noted as disputed by some researchers, per Cloudflare).
Known file fingerprints (SHA-256 safety codes):24d004a104d4d54034dbcffc2a4b19a11f39008a575aa614ea04703480b1022c (Dropper sample analysed by LogRhythm Labs)ed01ebfbc9eb5bbea545af4d01bf5f1071661840480439c6e5babe8e080e41aa (Encrypter component analysed by LogRhythm Labs)b9c5d4339809e0ad9a00d4d3dd26fdf44a32819a54abf846bb9b560d81391c25 (Decrypter component (@WanaDecryptor@.exe) analysed by LogRhythm Labs)
What this teaches us:
- A patch available is not a patch applied: the fix existed for 59 days before the outbreak. Patch latency on internet-facing and flat internal networks is the risk.
- Disable legacy protocols: SMBv1 should be removed or disabled, and SMB should not be exposed to untrusted networks; block inbound TCP 445/139 at boundaries.
- Flat networks let worms run: segmentation between workstations, servers and clinical/operational systems limits how far one infection travels.
- Backups that are tested and isolated are the recovery path for ransomware — paying was never a reliable route to decryption.
- Unsupported operating systems in critical services are a standing emergency; vendors may issue exceptional patches, but that is luck, not a plan.
- A kill switch saved the day by accident. Defenders cannot design around an attacker's mistake — but rapid researcher/registry cooperation (sinkholing) is a real containment tool.
Where we read about it: https://archive.orkl.eu/956309a9915f74f31fc086973764c850cfd106c5.pdf · https://www.cloudflare.com/learning/security/ransomware/wannacry-ransomware/
NotPetya (2017)
What happened: Two-stage shape. Entry: a trusted supply-chain door — the automatic update channel of widely installed tax software delivered the malicious code as if it were a legitimate update, so the first victims installed it themselves through a channel they were supposed to trust. Spread: inside each organisation's Windows network it moved laterally by several routes in parallel — the same SMBv1 EternalBlue/EternalRomance exploits WannaCry had used, plus reusing credentials harvested from the infected machine to log into other machines' administrative shares and execute copies remotely with ordinary administration tools (PsExec and WMI). Because the credential route worked even on patched machines, a single infected host could compromise an entire enterprise network.
How it spread: through a Windows file-sharing weakness · Speed: extremely fast · Was it hidden? somewhat hidden
What it aimed at: Windows enterprise networks; initial seeding concentrated in organisations using the compromised Ukrainian tax software, then their global corporate networks
How it got started: Initial: installation of a trojanised trusted software update. Lateral: SMB reachability, or any harvested credential with administrative rights on another host
Story timeline:
- 2017-04 — The M.E.Doc update infrastructure is compromised months in advance; reporting describes malicious updates pushed on 14 April and 15 May 2017 delivering reconnaissance tooling (per Safeguard's account).
- 2017-06-22 — A further trojanised M.E.Doc update delivers the NotPetya loader, five days before detonation (per Safeguard's account).
- 2017-06-27 — From about 10:30 UTC, systems across Ukraine display the ransom screen; within about two hours the same screen appears at Maersk (Copenhagen), Merck (Pennsylvania), Mondelēz and Reckitt Benckiser worldwide. Ukrainian banks, ministries, transport and Chernobyl's radiation-monitoring workstations are hit.
- 2017-06-28 — Researchers distinguish the malware from Petya ransomware — hence 'NotPetya' — and establish that recovery by payment is not possible by design; Ukrainian authorities say the spread is contained, while global recovery runs for weeks.
- 2017-07-04 — Ukrainian police raid the software vendor's offices and seize compromised update servers (as widely reported in incident databases).
- 2018-02-15 — The White House, UK NCSC and allied governments formally attribute NotPetya to the Russian GRU, Unit 74455 (Sandworm); total damage is put at more than $10 billion.
Known file fingerprints (SHA-256 safety codes):027cc450ef5f8c5f653329641ec1fed91f694e0d229928963b30f6b0d7d3a745 (Analysed NotPetya sample (perfc.dat DLL), Carbon Black / VMware technical analysis; also listed by LogRhythm Labs)64b0b58a2c030c77fdb2b537b2fcc4af432bc55ffb36599a31d418c7c69e94b1 (Second sample analysed by LogRhythm Labs (July 2017 report))
What this teaches us:
- An auto-update channel is a standing, privileged remote-execution channel: verify update signing properly, protect signing keys and vendor build infrastructure, and treat small vendors with fleet-wide access as critical suppliers.
- Patching alone does not stop credential-reuse spread: unique local admin passwords, tiered administration, and not logging on with domain-admin credentials on ordinary workstations deny the worm its second engine.
- Segment enterprise networks and restrict workstation-to-workstation SMB; one infected machine should never be able to reach every other machine.
- Backups that are online and reachable are not backups: offline or immutable copies — and tested Active Directory forest recovery — are what recovery actually runs on.
- Assume some 'ransomware' is destruction in disguise: if decryption is impossible by design, the only plan is containment and rebuild, not payment.
- Geography is in the dependency graph: a subsidiary's locally mandated software can import geopolitical risk into a global network.
Where we read about it: https://blogs.vmware.com/security/2017/06/carbon-black-threat-research-technical-analysis-petya-notpetya-ransomware.html · https://gallery.logrhythm.com/threat-intelligence-reports/notpetya-technical-analysis-logrhythm-labs-threat-intelligence-report.pdf · https://safeguard.sh/resources/blog/notpetya-ukraine-supply-chain-origin
Shai-Hulud (2025)
What happened: Registry-poisoning spread through the package ecosystem, in plain language: a trojanised package version looks like a routine patch release from a trusted maintainer. When a developer or CI runner installs it, a script that npm runs automatically at install time (postinstall in wave 1; the earlier preinstall hook in wave 2) executes a bundled payload on Linux/macOS machines. The payload uses a legitimate open-source secret scanner to harvest credentials from the machine — npm publish tokens, GitHub tokens, cloud keys — publishes the stolen secrets to public GitHub repositories, and then uses any npm token it found to ask the registry which other packages that maintainer owns, inject the same payload into up to about 20 of them, bump their patch versions and publish them. Every maintainer who installs an infected package thereby becomes the publisher of the next generation. Wave 2 added stealth and persistence (running through the Bun runtime, registering infected machines as self-hosted GitHub Actions runners); Mini Shai-Hulud (2026) broadened the same pattern across npm and PyPI and abused developer-tool configuration as an additional persistence and spread route, per Microsoft's account.
How it spread: by hiding inside trusted software ingredients · Speed: extremely fast · Was it hidden? hard to notice
What it aimed at: Developer laptops and CI runners (primarily Linux/macOS in wave 1), and — via their stolen publish tokens — every package those developers maintain
How it got started: Running npm install (or the PyPI equivalent in the Mini wave) on a project whose dependency tree includes a trojanised version; install-time lifecycle scripts execute automatically
Story timeline:
- 2025-08 — Late August: the Nx build-tool ('s1ngularity') compromise leaks npm and GitHub tokens — assessed by Wiz as the seed credential source for wave 1 (per osec.one's account).
- 2025-09-14 — GitHub is notified (14 September); first malicious versions are dated to 15 September, including @ctrl/tinycolor 4.1.1/4.1.2, a library with 2M+ weekly downloads.
- 2025-09-22 — GitHub reports 500+ compromised packages removed and announces npm publishing hardening; on 23 September CISA issues an alert urging credential rotation.
- 2025-11-24 — Wave 2, 'Shai-Hulud 2.0 / Sha1-Hulud: The Second Coming': execution moves to the preinstall hook via the Bun runtime; roughly 700–800 packages (Zapier, ENS, PostHog, Postman, AsyncAPI among them) and 25,000+ exfiltration repositories are counted within days. GitHub removes most repositories by 26–27 November.
- 2026-05-11 — 'Mini Shai-Hulud' resurgence identified by Microsoft Security Research: 170+ npm packages and 2 PyPI packages across 404 malicious versions, spanning both registries in one coordinated operation (per Microsoft Defender's guidance, via ThreatCluster).
Known file fingerprints (SHA-256 safety codes):46faab8ab153fae6e80e7cca38eab363075bb524edd79e42269217a083628f09 (Wave 1 bundle.js payload (September 2025); variants exist)
What this teaches us:
- Install-time code execution is trust: disable lifecycle scripts by default in CI (e.g. install with scripts ignored) and allow-list only the packages that genuinely need them.
- Long-lived, broadly scoped publish tokens turn one infected laptop into an ecosystem event. Prefer trusted publishing (short-lived, workflow-bound OIDC credentials), or granular tokens scoped to named packages with expiry in days, plus phishing-resistant 2FA.
- Slow the uptake: commit lockfiles, install exactly from them, and use a minimum release age / update cooldown of a few days — both 2025 waves were detected and removed within hours to days.
- Keep secrets off machines that install dependencies: separate install/test jobs from publish/deploy jobs, use OIDC instead of stored cloud keys in CI, and consider containers/dev containers on laptops.
- Rotate, don't review: any credential a secret scanner could have read on an affected machine should be treated as compromised and rotated.
- Registries are defensive infrastructure: GitHub/npm's removals, upload blocking on malware markers, and the retirement of classic tokens all materially shrank later waves.
Where we read about it: https://www.osec.one/articles/shai-hulud-2025-npm-worm-stolen-maintainer-tokens · https://www.protoslabs.io/resources/deep-dive-shai-hulud-the-self-replicating-npm-supply-chain-worm · https://threatcluster.io/article/shai-hulud-20-campaign-a0d01cd4
CanisterWorm (2026)
What happened: Registry-poisoning spread, in plain language, with a persistent backdoor attached. A compromised package version carries an install-time (postinstall) script. On Linux developer machines and CI runners, installing it quietly installs a small Python backdoor as a user-level system service disguised with PostgreSQL-like names (the service 'pgmon'), which survives reboots without administrator rights and periodically checks the blockchain canister for a link to the next payload to run. Separately, the worm side hunts for npm publish tokens on the machine (in token files, environment variables and npm configuration); with a valid token it looks up every package that maintainer can publish, bumps each one's patch version so it looks like a routine update, preserves the original README as camouflage, and republishes it carrying the same payload — Aikido observed 28 packages republished in under 60 seconds. One compromised machine thereby becomes a new distribution point, closing the loop: install → token theft → malicious publishing → more installs.
How it spread: by hiding inside trusted software ingredients · Speed: extremely fast · Was it hidden? hard to notice
What it aimed at: Developer endpoints and CI runners (credential theft and propagation on any platform; the persistent backdoor itself is Linux-focused), and every npm package reachable by a stolen publish token
How it got started: Running npm install on a project that resolves to a compromised package version; the install-time script runs automatically and fails silently on unsupported platforms
Story timeline:
- 2026-03-19 — TeamPCP compromises the Trivy project (Aqua Security's vulnerability scanner), abusing retained access from an earlier incident; npm publishing credentials are among the secrets stolen (per Picus and Wiz reporting).
- 2026-03-20 — 20:45 UTC: Aikido detects CanisterWorm spreading across npm — 28 packages in the @emilgroup scope, 16 in @opengov, plus @teale.io/eslint-config, @airtm/uuid-base32 and @pypestream/floating-ui-dom among the first known. Wiz attributes the campaign to TeamPCP the same day.
- 2026-03-21 — Socket's update counts 135 malicious package artifacts spanning more than 64 unique packages; the pace of new compromises then slows, likely due to npm registry intervention. Aikido documents the worm's evolution across waves — from a dry-run staging form to a self-propagating form with the armed canister backdoor.
- 2026-03-23 — Orca Security's analysis, published this date, puts the total at over 140 affected npm packages and frames the campaign as a CI-to-registry-to-workstation chain.
Known file fingerprints (SHA-256 safety codes):e9b1e069efc778c1e77fb3f5fcc3bd3580bbc810604cbf4347897ddb4b8c163b (Malicious index.js, Wave 1 (dry run, empty payload, manual deploy) — Aikido IOC list)61ff00a81b19624adaad425b9129ba2f312f4ab76fb5ddc2c628a5037d31a4ba (Malicious index.js, Wave 2 (armed ICP backdoor, manual deploy) — Aikido IOC list)0c0d206d5e68c0cf64d57ffa8bc5b1dad54f2dda52f24e96e02e237498cb9c3a (Malicious index.js, Wave 3 (self-propagating, test payload) — Aikido IOC list)c37c0ae9641d2e5329fcdee847a756bf1140fdb7f0b7c78a40fdc39055e7d926 (Malicious index.js, Wave 4 (final form: self-propagating + armed ICP backdoor) — Aikido IOC list)f398f06eefcd3558c38820a397e3193856e4e6e7c67f81ecc8e533275284b152 (Malicious deploy.js, Wave 1 — Aikido IOC list)7df6cef7ab9aae2ea08f2f872f6456b5d51d896ddda907a238cd6668ccdc4bb7 (Malicious deploy.js, Wave 2 — Aikido IOC list)5e2ba7c4c53fa6e0cef58011acdd50682cf83fb7b989712d2fcf1b5173bad956 (Malicious deploy.js, Wave 3+ (minified) — Aikido IOC list)
What this teaches us:
- A compromise does not end when it is 'contained': retained access from the earlier Trivy incident seeded this campaign. Incident closure must include rotating every credential and auditing every persistence route, or the next wave is already loaded.
- Your security tooling is part of your supply chain: a vulnerability scanner runs with broad access in CI, so its compromise hands an attacker exactly the secrets a worm needs. Pin actions/tools to immutable revisions and scope their tokens minimally.
- The Shai-Hulud lessons held and were re-proven six months later: short-lived, scoped publish credentials (or trusted publishing), scripts-off installs in CI, lockfiles and release-age cooldowns all cut this worm's chain.
- Hunt persistence, not just packages: removing a bad package version does not remove a user-level service already installed on developer machines — check for unexpected services and for the published filesystem artifacts (pgmon-named files) on Linux endpoints.
- Decentralised control channels defeat single-server takedown thinking; the effective containment levers were registry-side (package removal, token revocation) and credential rotation, not C2 seizure.
- Watch your own publishing: unexpected patch bumps across many of your packages at once is a high-signal alarm — registry publish activity deserves the same monitoring as production logins.
Where we read about it: https://socket.dev/blog/canisterworm-npm-publisher-compromise-deploys-backdoor-across-29-packages · https://archive.orkl.eu/3a3be7db51b80f49b5c80715c787ee9eab89dead.txt · https://orca.security/resources/blog/canisterworm-npm-worm-ci-cd-breach/ · https://www.picussecurity.com/resource/blog/canisterworm-how-teampcp-turned-the-npm-ecosystem-into-a-weapon
🧬 Lab-born strains — invented in the Lab, for practice
These strains were invented by SERUM's Incubator. Each one is a recipe of spreading habits — numbers the practice dish runs on imaginary computers — and nothing else. They are not real viruses or worms, no harmful software exists for them, and there are no file fingerprints to list: there is no file. They exist so the Watch can practise against shapes it has never seen.
Glass Mirror
SYNTHETIC — LAB-BORN (SIMULATED)
Its recipe: spreads at a medium speed · can also jump to far-off machines · hard for the Watch to spot · starts from 2 machines at once · each machine needs 2 Watch hits to stop
Born in the Lab November 29, 2026 by Culture Proof Keeper · birth proof record #6 · recipe number 20261129
Not vaccinated yet — nobody has beaten it in the dish and minted its vaccine.