Security Basics — SSH, TLS and Certificates›Everyday hygiene · Cheat sheet & self-check

Everyday hygiene · wrap-up

Cheat sheet & self-check

9 questions across 3 lessons. Each answer links back to the lesson it came from.

Pick an answer to see if you got it, and why.

  1. Q1. How should a website store user passwords?

    Show answer

    B. A slow, salted hash cannot be reversed and makes guessing each password expensive, even if the database leaks.

    From lesson 14 · Passwords, MFA and secrets
  2. Q2. Which MFA method resists phishing?

    Show answer

    B. FIDO2/passkeys check the website's real domain, so a fake site cannot use them. Codes can be typed into a fake site.

    From lesson 14 · Passwords, MFA and secrets
  3. Q3. An AWS access key was pushed to a public GitHub repository 10 minutes ago. What comes first?

    Show answer

    B. Bots scan public commits within minutes. Removing it from Git doesn't un-leak it; only revoking the key does.

    From lesson 14 · Passwords, MFA and secrets
  4. Q4. ss shows a database listening on 0.0.0.0:5432. What does that mean?

    Show answer

    B. 0.0.0.0 means all IPv4 interfaces. If only local apps need it, bind it to 127.0.0.1.

    From lesson 15 · Firewalls, open ports and patching
  5. Q5. You enabled ufw with default deny, but a Docker container published with -p 8080:80 is still reachable from the internet. Why?

    Show answer

    B. Docker's NAT rules bypass ufw's input chain. Publish on 127.0.0.1 (-p 127.0.0.1:8080:80) or filter in the DOCKER-USER chain.

    From lesson 15 · Firewalls, open ports and patching
  6. Q6. After apt upgrade fixes a vulnerable OpenSSL, is the server protected?

    Show answer

    B. Running processes keep the old library in memory until restarted. needrestart and reboot-required tell you what is still old.

    From lesson 15 · Firewalls, open ports and patching
  7. Q7. Why create a personal admin user instead of logging in as root?

    Show answer

    B. Personal accounts give an audit trail and let you block the one account every attacker tries.

    From lesson 16 · Capstone: harden a new server
  8. Q8. In which order should you run these on a remote server: (a) ufw enable, (b) ufw allow OpenSSH?

    Show answer

    B. Enabling a default-deny firewall before allowing SSH cuts off your own connection.

    From lesson 16 · Capstone: harden a new server
  9. Q9. Which check proves certificate renewal will work in 60 days?

    Show answer

    B. The dry run exercises the full renewal path now; the external alert catches anything that breaks later.

    From lesson 16 · Capstone: harden a new server