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 | |
|---|---|---|
| 1nmap -p- 192.168.1.10 | AScans every port on a device to list the open ports an attacker could try, which maps part of its attack surface | |
| 2net user | Bdeny tcp any any eq 23 | |
| 3Reducing the attack surface by closing a port that is not needed | CUnused user accounts are extra entry points. Unneeded accounts should be disabled or deleted to shrink the attack surface. | |
| 4Reducing the attack surface by turning off a running service that nobody uses | Dsystemctl disable --now telnetd | |
| 5Open ports: 22, 23, 80, 443, 3389 Action: keep every port open just in case | ELeaving unneeded ports open widens the attack surface. Only the ports the system needs should stay open and the rest should be closed. | |
| 6Old accounts: guest, intern2019, test Action: leave them enabled in case they are needed later | FLists the user accounts on a computer, each of which is a possible way in and part of the attack surface |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
attack surface — All the points where an attacker could try to get into a system or take data out, such as open ports, running services and user accounts. A smaller surface means fewer ways in.surface = ports + services + accountsopenPorts.remove(23)for acct in unusedAccounts: disable(acct)if len(openPorts) > 5: print("Too big")print(openAfter < openBefore)