Typosquatting and malicious packages
Publishing a malicious package or site with a name almost the same as a trusted one, like reqeusts for requests, hoping people use it by mistake.
Understanding Typosquatting and malicious packages in ACARA Digital Technologies Years 9–10
What it does: The two names differ by only two swapped letters. That small difference is what typosquatting depends on. Reading the name carefully and checking it against the official source stops a look-alike package from being installed. reqeusts swaps two letters in requests. Attackers hope people mistype the name and install the fake package by mistake. Typosquatting relies on human typing mistakes. Slowing a server down describes a denial of service attack, not typosquatting. Typosquatting copies a trusted name with small spelling changes. A clearly different, honest project name is not typosquatting. The official project page shows the exact name. Search results can include fake lookalike packages.
Common mistakes: The package name is misspelled as reqeusts, a typosquatting trap that could install a malicious look-alike. It should be requests==2.31.0. nunpy is a look-alike name that could be a malicious typosquat. The trusted package is spelled numpy, so the line should be pip install numpy.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 810–827) and word search (Modules 810–859).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
typosquattingFill in the Blanks
Spot the Error
Student with a class code? Join your class →