Penetration testing
Penetration testing is an authorised attempt to break into a system in order to find weaknesses before a real attacker does. Testers use the techniques of an attacker within agreed limits and report what they reached, how, and what to fix.
What it is
Penetration testing is a security test in which authorised testers try to defeat the protections of a system, as an attacker would, to show which weaknesses can really be used. The result is a report of what the testers reached and the steps to correct it.
NIST’s technical guide to security testing and assessment places penetration testing among the techniques that validate vulnerabilities. It describes a phased approach of planning, execution and post-execution, and says the post-execution phase produces recommended actions to reduce the weaknesses found.
A test usually has these elements:
- Scope: the systems, networks or applications that may be tested, and the ones that may not.
- Rules of engagement: written permission, the methods allowed and the contacts if something goes wrong.
- Execution: the testers look for a way in, try to use it, and record how far they get.
- Report: findings with evidence, an assessment of the risk of each and recommended fixes.
- Retest: a later check that the fixes work.
Tests differ by what the testers know in advance. In a black-box test they know nothing about the target; in a white-box test they have inside information such as design documents. They also differ by target, such as external networks, internal networks, web applications and people, through social engineering.
The ECB describes TIBER-EU as a framework for intelligence-led red team tests of live production systems. Its procurement guidance notes that these tests differ from conventional penetration tests. See TLPT for the threat-led form.
Why it matters
A scan can list a flaw without showing whether it can be used in practice. A test shows whether a flaw can be chained with others into real access.
Information security teams, risk functions and auditors use the findings as evidence about the strength of controls. The report tells owners what to repair first.
Worked example
Illustrative numbers. A firm asks testers to test a customer web application and its supporting servers over two weeks.
- The scope and rules are signed. The production payment system is excluded.
- The testers find 12 weaknesses. Three are used to read test accounts that should be private.
- The report ranks the three first, gives the steps taken and recommends fixes.
- The owners fix them and the testers retest the three. All three are closed, and the others join the normal vulnerability management list.
Who uses it
- Cybersecurity GRC consultants plan the programme of tests, set the scope and review the reports.
- Cyber risk consultants in banking link test results to the assessment of the entity’s technology risk.
- Operational risk analysts record the findings and follow the repair plan.
- IT auditors check that tests cover the main systems and that findings are closed.
Common confusions
- A penetration test is not a vulnerability scan. A scan is automated and broad; a test is directed and tries to exploit.
- A test without written authorisation is not a test. Permission and scope separate it from an attack.
- A clean report shows only what was tried in the scope and time. It does not prove that no weakness exists.
- A penetration test is not a threat-led penetration test, which follows a scenario built from threat intelligence.