AQA GCSE Computer Science (8525), section 3.6.2 (Cyber security threats)
What is penetration testing?
Penetration testing (pen testing) is the process of attempting to gain access to resources without the normal means of access (such as usernames and passwords). It is done on purpose, with permission, by testers employed by an organisation. It is used to find weaknesses in a system before real attackers do, so they can be fixed.
Two types
| Type | What the testers know | Simulates |
|---|---|---|
| Inside (white box) test | the testers have knowledge of the system and may have basic login details | an attack from inside the system, by a malicious insider such as an unhappy employee |
| Outside (black box) test | the testers have no knowledge or login details | an external attack, by an outside hacker |
Process
- Agree what is to be tested, with the organisation's permission.
- Try to break in, using the same methods as real attackers.
- Record which weaknesses were found.
- Report to the organisation, so the weaknesses can be fixed.
Benefits
- Finds weaknesses before criminals do.
- Tests whether existing security actually works.
- Helps to protect data and comply with the law.
- Staff awareness is improved if people are tested.
Example
A company hires a security firm. One team is given a staff login and tries to see files they should not (inside test). Another team tries to break in from the internet with no details (outside test). The company fixes the weaknesses found.
Legal note
Pen testers have written permission. Trying the same thing without permission is illegal (see the Computer Misuse Act in section 3.8).
Common mistake: thinking penetration testing is hacking done by criminals. It is authorised and the aim is to improve security. Also, remember the two types: an insider (with knowledge) and an outsider (with none).
Exam tip: say what the tester knows in each type. The purpose is always to find and fix weaknesses before attackers use them.
Check yourself
What is the purpose of penetration testing?
To find weaknesses in a system by attempting to break in, so that they can be fixed.
What does a test simulating a malicious insider involve?
Testers who have knowledge of the system, and possibly basic login details, try to attack from inside.
Why do penetration testers need permission?
Trying to gain unauthorised access without permission is illegal.