Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

DS 1.28: Hardening a device and testing the result

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

55 minutes

The till with a game on it

A café till runs a payment program. Staff have also installed a free game, shared the admin password and left every setting as it came.

The game has a hole. An attacker uses it to reach the payment program.

Six small jobs, done once, would have closed every door.

Key words

WordWhat it means
HardeningMaking a device safer by removing what it does not need and tightening its settings.
Default passwordThe password a device is sold with, which everyone can look up.
PermissionA setting that says who may read, change or run a file.
Unauthorised deviceA device that has not been approved for use, such as a personal memory stick.
Test planA list of checks to run, and what a pass looks like.
EvidenceA record that shows a check was made and what it found.
End user deviceA computer, phone or tablet used by a member of staff.
VulnerabilityA weak point that an attacker could use.

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can carry out the six hardening steps on a device and write a test that shows the work succeeded.

Starter: installing software

Have a go

Starter: installing software

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Cycle 1: six hardening steps

  1. Change default passwords. Everyone knows them.
  2. Set correct permissions on files and services: give only the access that is needed.
  3. Apply updates and fixes.
  4. Remove unnecessary software. Less software means fewer holes.
  5. Apply security policies, such as a screen lock and a password rule.
  6. Disable unauthorised devices, such as unknown memory sticks.

Run: lock an unused account

Command
useradd -m olduser 2>/dev/null; usermod -L olduser && passwd -S olduser

A command for the lesson’s lab terminal. It is shown here and not run.

What you should see

Note

A line with olduser and the letter L: the account is locked. A leaver's account, or one nobody uses, is a door that should be shut.

Run: fix a file everyone can change

Command
echo secret > /tmp/keys.txt && chmod 666 /tmp/keys.txt && find /tmp -maxdepth 1 -name keys.txt -perm -o+w; chmod 600 /tmp/keys.txt && ls -l /tmp/keys.txt

A command for the lesson’s lab terminal. It is shown here and not run.

What you should see

Note

First the file name: it was open to everyone. Then a line starting -rw------- : now only the owner can use it.

The lesson goes on

15 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.