Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1pip install reqeusts | Apip install acme-internal-tools | |
| 2npm view express maintainers downloads | BA typosquatting trap: the name is a misspelt version of the trusted package requests, so it could install malware by mistake | |
| 3A misspelt package name is a typosquatting risk because it looks almost the same as a trusted one | CChecks who publishes a package and how popular it is before installing, to spot a fake lookalike | |
| 4Dependency confusion: a public package uses the same name as a private internal one so the build installs the wrong one | DThe name is misspelt (lodsah instead of lodash) and was not checked, so a typosquatted malicious package could be installed. | |
| 5npm install lodsah # copied from memory, no check | Epip install colourama | |
| 6Installed it because it had 12 downloads and an unknown publisher | FThe student ignored warning signs: a very low download count and an unknown publisher suggest a fake lookalike package. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
typosquatting — Publishing a malicious package or site with a name almost the same as a trusted one (like reqeusts for requests), hoping people install or visit it by mistake.# Trusted library for making web requests
pip install requests# View the author before you trust it
pip show requeststrusted ← "requests"
IF package ≠ trusted THEN
PRINT "Possible typosquat"IF downloads < 100 THEN
PRINT "Low downloads, be careful"
ENDIFIF name IN ownPackages THEN
get from private registry
ENDIF