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
| Word | What it means | Example |
|---|---|---|
| VPN | Virtual private network (a safe link over the internet): an encrypted tunnel for your traffic. | working from home |
| MFA | Multi-factor authentication (proving who you are in two or more different ways). | a password and a phone code |
| Password manager | A program that stores and creates strong passwords for you. | one master password opens the rest |
| Port | A numbered door on a computer for network traffic. | port 443 for secure web pages |
| Port scanning | Checking which ports are open on a computer. | a list of open doors |
| Penetration testing | A test where an expert tries to break in, with permission, to find weak points. | a hired burglar |
| Ethical hacking | Hacking with permission, to help the owner. | a pen test |
| Unethical hacking | Hacking without permission, to harm or to steal. | breaking into a school site |
| Scope | What a tester may and may not test. | only these two servers |
| API | A way for one program to ask another program for data. | a weather app asking a weather service |
| SQL injection | Typed text that changes the question a program asks its data store. | a search box that shows secrets |
| Certification | A 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 questionsSix tools: purpose, benefit, drawback
| Tool | Purpose | Benefit | Drawback |
|---|---|---|---|
| VPN | Make a private encrypted tunnel across the internet | Safe on public Wi-Fi. Lets staff reach work from home | Can slow the connection. You must trust the VPN owner |
| MFA | Ask for two or more different proofs of who you are | A stolen password is not enough | Extra steps. A lost phone is a problem |
| Password manager | Store and create strong, different passwords | No need to remember them all | If the master password is lost or stolen, all the passwords are at risk |
| Certified APIs | Use only APIs that a trusted group has checked against a security standard. Give each program a key | Fewer insecure doors | Checking takes time and money |
| Port scanning | Find open ports that should be shut | Shows weak points early | Attackers scan too. A scan can slow or break a weak system |
| Penetration testing | Try to break in, with permission | Finds weak points before criminals do | Costs 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
| Kind | Meaning | Example |
|---|---|---|
| Something you know | A secret in your head | Password, PIN, passphrase (a password made of several words) |
| Something you have | A thing you hold | A phone, a card, a security key |
| Something you are | A part of your body | Fingerprint, face |
| Not MFA | Two proofs of the SAME kind | A 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 questionsYour 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.
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 questionsKey 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