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

Preview

Extra: Security labs: attack and defend

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

60 minutes · This lesson goes beyond the exam. It is extra, for students who want more.

A flight simulator for security

Pilots learn on a simulator, not on a real plane with passengers.

Security people learn the same way. The labs in this lesson are websites that are broken on purpose. Each one is your own private copy.

Here you see how the attacks from earlier lessons really work, so you can learn to stop them.

The one rule

data-callouts.warning.label

Attack only your own lab copy, and nothing else. It has no way out to the internet, so nobody else is affected. Trying these things on a system that is not yours is a crime in the UK under the Computer Misuse Act 1990. It does not matter if you were curious or meant no harm.

Key words

WordWhat it meansExample
LabA private practice system that is yours alone.a practice shop that is broken on purpose
Vulnerable on purposeBuilt with weak points so students can learn from them.a shop with a weak search box
PermissionThe owner says you may test. Your own lab copy always gives it.a letter from the owner
EvidenceProof of what you did and what you saw.a screenshot
ReportA short write-up of what you found and how to fix it.a lab report
SQL injectionTyped text that changes the question a program asks its stored data.a search box that shows secrets
Cross-site scriptingAn attacker makes a page run their code in other people's browsers.a harmful comment
Brute forceTrying many passwords, one after another, until one works.trying 1000 passwords
AuthenticationProving that you are who you say you are.a password
MFAMulti-factor authentication: a second proof you are you, as well as a password.a code sent to your phone
Access controlRules that say who may see or change what.only staff open the admin page
DefenceA way to stop or reduce an attack.checking input
CIA triadThree things security protects: confidentiality (kept secret), integrity (not changed) and availability (there when needed).a leak breaks confidentiality

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

Quick check: the rule

Have a go

Quick check: the rule

4 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.

Which lab shows which threat?

LabWhat it isThreats and weak points you meet
Juice ShopAn online shop with many weak pointsSQL injection, cross-site scripting, weak passwords
DVWAA web app with levels from easy to hardSQL injection, cross-site scripting, brute force
WebGoatA course of guided security lessonsInjection, access control, old parts with known weak points
MutillidaeA web app with hints and levelsInjection, cross-site scripting, weak input checks
WrongSecretsSecrets kept in the wrong placesPasswords and keys left in code or settings
Linux privilege escalationA machine with three ordinary mistakesA user given too much power, weak settings

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

How to work in a lab

Three steps in every lab.

1. Read. Read what the lab says it is for.

2. Try. Press Start. Do what the lab asks. Keep notes of what you see.

3. Defend. Ask: how would a company stop this? Write it down. This is the part that matters most.

The lesson goes on

8 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.