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

Free lesson

Extra: 8.2, 8.3: Security labs: attack and defend

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

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

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

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.

By the end of this lesson: I can name the defence for an attack I have seen in a lab.

The one rule

Warning

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's yes to testing. Your own lab copy always has 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 data.a search box that shows secrets
Cross-site scriptingMaking a page run an attacker's code in other people's browsers.a harmful comment
Brute forceTrying many passwords, one after another, until one works.trying 1000 passwords
AuthenticationProving you are who you say you are.a password
MFAMulti-factor authentication: a second proof 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

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.

Match the word to what it is

Have a go

Loading…

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

Read, try, then defend

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.

Match the attack to the defence

Have a go

Loading…

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

Write your lab report

Write a short report on the lab you did. Use these four headings. 1. Which lab, and which threat from the lessons did it show? 2. What happened, in two or three sentences? You do not need to list every step. 3. Which part of the CIA triad did it break: confidentiality, integrity or availability? 4. How could a company defend against it? Give two ways, for example a rule, a setting or a habit.

A teacher marks this in a college. Nothing you write here is kept: it goes when you leave the page.

Make a free account to save your work, or press Start lab to work through the whole lesson.

Final check

Have a go

Final check

5 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

Remember

Important

Attack only your own lab copy. Every attack has a defence. A good security person can say both.

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.