Glossary termSecurity practice

Penetration Testing

Also known as: Pen testing, Pentest, Ethical hacking

An authorized, simulated attack on a system, network or application, performed to find and fix security weaknesses before real attackers do.

Penetration testing is an authorized assessment in which security professionals attempt to compromise an organization's systems using the kinds of techniques a real attacker might, within an agreed scope and set of rules. Unlike an automated vulnerability scan, which lists potential weaknesses, a penetration test tries to confirm whether those weaknesses can actually be used and how far an intruder could get. Engagements may target web applications, internal networks, cloud environments, wireless networks, physical premises or staff through social engineering.

Tests are commonly described by how much information testers receive: black-box tests start with little knowledge, white-box tests have full access to documentation or source code and grey-box tests fall in between. A typical engagement moves through planning and scoping, reconnaissance, vulnerability identification, controlled exploitation and reporting. Written authorization is essential, since the same activities performed without permission are illegal in most countries. Testers often use tools bundled in distributions such as Kali Linux, including the network scanner Nmap. Standards such as PCI DSS require regular penetration testing for organizations that handle payment card data.

The value of a penetration test lies mainly in its report: clear findings, evidence, risk ratings and practical remediation advice that developers and administrators can act on. A test is a snapshot of one point in time and only covers its agreed scope, so it complements rather than replaces continuous vulnerability management. Broader, goal-driven exercises that also test an organization's detection and response are usually called red team engagements. Professional certifications and formal codes of conduct help clients judge testers' competence and ethics.

Key points

  • Penetration testing is legal only with explicit written authorization and an agreed scope.
  • It goes beyond scanning by confirming which weaknesses can actually be exploited and with what impact.
  • Black-box, grey-box and white-box tests differ in how much information testers receive in advance.
  • The final report, with prioritized remediation advice, is the main deliverable of a test.

Related entries

Glossary term

Red Team

Cybersecurity

A group that plays the role of an adversary in authorized exercises, testing an organization's defenses, detection and response against realistic attacks.

Glossary term

Vulnerability

Cybersecurity

A weakness in software, hardware, configuration or process that an attacker could exploit to compromise confidentiality, integrity or availability.

Glossary term

Bug Bounty

Cybersecurity

A program in which an organization invites independent researchers to report security vulnerabilities in its systems in exchange for recognition or money.

Technology

Kali Linux

CybersecurityFOSS

Debian-based Linux distribution maintained by OffSec that bundles hundreds of tools for authorized penetration testing, security research and forensics.

Technology

Nmap

CybersecurityFOSS

Free and open-source network scanner used by administrators and authorized security testers to discover hosts, services and exposures on networks.

Technology

Metasploit

Cybersecurity

Penetration testing framework maintained by Rapid7 that security professionals use to validate vulnerabilities and test defenses with authorization.

Glossary term

Capture the Flag

CybersecurityVideo Games

Security competition in which players solve hacking challenges or attack and defend practice systems to find hidden strings of text called flags.

Glossary term

Threat Modeling

CybersecurityOPSEC

A structured process for identifying what could go wrong with a system, who might cause it and which defenses matter most before problems occur.

Referenced by

Other entries that discuss or point to Penetration Testing.