Loading
0x70Lesson 8 of 8

Harden VM security

Apply patching, identity, and network controls to reduce risk.

15 min 5-question quiz
By the end of this lesson you can
  • Build a practical VM hardening checklist.

VM security is layered: hardened base images, timely patching, least-privilege identity, host firewall rules, endpoint telemetry, and backup/restore testing. Disable unnecessary services, rotate secrets, and enforce MFA for privileged access. Security is not a one-time setup; it is continuous operations.

Defense-in-depth assumes one control can fail. Combine preventive controls (hardening), detective controls (monitoring), and corrective controls (rollback and recovery). Practice restores: an untested backup is just hope with storage costs.

Practice: review a hardening config

Try it

Up to 15 XP

Audit this SSH config

This is the SSH server config from a public VM. Click every setting you’d change, then check.

/etc/ssh/sshd_config (round 1 of 1)Flags found 0/0

Click every suspicious section. There are 3.

Port 22 PermitRootLogin yes PasswordAuthentication yes PubkeyAuthentication yes PermitEmptyPasswords yes LogLevel VERBOSE X11Forwarding no

Try it

Up to 15 XP

What kind of control is this?

Good defenses assume that one layer will fail, so you need all three kinds.

0 of 6 sortedScore 0/0
  • “Closing unused ports.”

  • “Requiring MFA for admin access.”

  • “Alerting on logins from unusual places.”

  • “Reviewing audit logs.”

  • “Restoring a VM from a clean backup.”

  • “Replacing a compromised VM from a golden image.”

Key takeaways

  • Build a practical VM hardening checklist.

  • VMs are powerful when automation and guardrails stay strong.

  • Observe before scaling; recover before incidents become outages.

Lesson quiz

5 questions · pass with 4 correct · up to 50 XP

Passing this quiz completes the lesson and keeps your streak going. Questions you miss come back in review sessions later.

Questions about this lesson

Stuck? Ask. Figured something out? Share it. Explaining is one of the best ways to learn.

Loading posts…