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.

Also called: penetration test · pen testing · pen test · ethical hacking

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:

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.

  1. The scope and rules are signed. The production payment system is excluded.
  2. The testers find 12 weaknesses. Three are used to read test accounts that should be private.
  3. The report ranks the three first, gives the steps taken and recommends fixes.
  4. 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

Common confusions

6Roles that need it

7Skills behind it

Sources behind this page (2) · Updated 5 Nov 2026

Concept