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

Free lesson

8.3 (4 of 5): VPNs, MFA and security testing

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.

50 minutes

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

Already have an account? Sign in

The bank hires a burglar

A bank wants to know if its vault (the strong room for money) is safe. So it hires a burglar (a thief who breaks in). The burglar has a signed letter of permission.

The burglar tries to get in, writes a report, and tells the bank what to fix.

The same idea works for computers. Penetration testing means an expert tries to break in, with permission, to find weak points.

Key words

WordWhat it meansExample
VPNVirtual private network (a safe link over the internet): an encrypted tunnel for your traffic.working from home
MFAMulti-factor authentication (proving who you are in two or more different ways).a password and a phone code
Password managerA program that stores and creates strong passwords for you.one master password opens the rest
PortA numbered door on a computer for network traffic.port 443 for secure web pages
Port scanningChecking which ports are open on a computer.a list of open doors
Penetration testingA test where an expert tries to break in, with permission, to find weak points.a hired burglar
Ethical hackingHacking with permission, to help the owner.a pen test
Unethical hackingHacking without permission, to harm or to steal.breaking into a school site
ScopeWhat a tester may and may not test.only these two servers
APIA way for one program to ask another program for data.a weather app asking a weather service
SQL injectionTyped text that changes the question a program asks its data store.a search box that shows secrets
CertificationA check by an independent group that something meets a standard.a checked and approved API

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

Quick check: which tool?

Have a go

Quick check: which tool?

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

Six tools: purpose, benefit, drawback

ToolPurposeBenefitDrawback
VPNMake a private encrypted tunnel across the internetSafe on public Wi-Fi. Lets staff reach work from homeCan slow the connection. You must trust the VPN owner
MFAAsk for two or more different proofs of who you areA stolen password is not enoughExtra steps. A lost phone is a problem
Password managerStore and create strong, different passwordsNo need to remember them allIf the master password is lost or stolen, all the passwords are at risk
Certified APIsUse only APIs that a trusted group has checked against a security standard. Give each program a keyFewer insecure doorsChecking takes time and money
Port scanningFind open ports that should be shutShows weak points earlyAttackers scan too. A scan can slow or break a weak system
Penetration testingTry to break in, with permissionFinds weak points before criminals doCosts money. It shows only what was tested on that one day

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

A VPN tunnel

flowchart LR
  laptop[Your laptop in a cafe] ==>|encrypted tunnel| vpn[Company VPN server]
  vpn --> work[Company systems]
  laptop -.->|a stranger on the cafe Wi-Fi sees only hidden data| spy([Stranger])

Match the problem to the tool

Have a go

Loading…

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

Three kinds of proof

KindMeaningExample
Something you knowA secret in your headPassword, PIN, passphrase (a password made of several words)
Something you haveA thing you holdA phone, a card, a security key
Something you areA part of your bodyFingerprint, face
Not MFATwo proofs of the SAME kindA password plus a PIN: both are things you know

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

How a penetration test goes

flowchart TD
  agree[1 Agree the scope and get written permission] --> scan[2 Look for weak points, for example open ports]
  scan --> try[3 Try to use the weak points, inside the scope]
  try --> report[4 Write a report of what was found]
  report --> fix[5 The owner fixes the weak points]
  fix --> retest[6 Test again]

Ethical or unethical?

Warning

Many people think a good reason makes hacking fine. It does not. Hacking is ethical only with written permission and a clear scope: what you may test, and when. Without both, it is unethical hacking. It can also be a crime under the Computer Misuse Act 1990.

Ethical or unethical?

Have a go

Ethical or unethical?

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 turn: three small checks

Nothing here touches a real computer. The first function finds ports that are open but not expected. The second says if a list of proofs is real MFA: two different kinds. The third, may_test, says if a test is allowed: written permission and in scope. Press Run Tests.

Code: python
def unexpected_ports(open_ports, expected):
    # open_ports and expected are lists of port numbers.
    # Give back a sorted list of the ports that are open but NOT expected.
    return []


def is_mfa(factors):
    # factors is a list made of "know" (a password), "have" (a phone) and "are" (a fingerprint).
    # Real MFA needs at least TWO DIFFERENT kinds.
    return False


def may_test(permission_in_writing, in_scope):
    # An ethical test needs written permission AND the target must be in scope.
    return False

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

Extra: Fix what a test finds

A test is only useful if somebody fixes what it finds. In the next lab, a small shop has a search box with a SQL injection weak point. You see the weak point in your own copy, then fix the code and test again.

The rule: attack only your own lab copy. The Computer Misuse Act 1990 makes it a crime to do this to a system that is not yours.

Scenario: what went wrong?

Have a go

Scenario: what went wrong?

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

Key words crossword

Have a go

Loading…

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

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

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.