Penetration Testing

Penetration testing is an authorized, simulated attack on a business's systems, networks or applications by security experts, to find and prove exploitable weaknesses before real attackers do, followed by a report on how to fix them.

BeginnerCategory: Website, application and API security

Also called: pen testing, pentest, penetration test, ethical hacking test

What is penetration testing?

NIST describes penetration testing as security testing in which assessors mimic real-world attacks to identify ways to get around the security features of an application, system or network. Unlike an automated scan, a pen test uses human skill to chain weaknesses together and show what an attacker could actually achieve.

Types of penetration tests

  • External network: your internet-facing systems, such as firewalls, VPNs and websites.
  • Internal network: what an attacker could do once inside, for example from an infected laptop.
  • Web application and API: your online apps, usually against the OWASP Top 10.
  • Cloud: configuration and access in AWS, Azure, Google Cloud or Microsoft 365.
  • Social engineering: phishing emails and calls to the help desk.
  • Wireless and physical: Wi-Fi and building access.

How a pen test works

NIST outlines four phases: planning (agreeing scope and rules of engagement), discovery, attack and reporting. A good report ranks findings by risk, explains them in plain language and gives specific fixes. Many testers include a free retest.

Pen testing vs. vulnerability scanning

A vulnerability scan is automated, broad and cheap enough to run monthly. A pen test is deeper, manual and usually annual or after major changes. Most businesses need both. PCI DSS requires regular penetration tests for businesses that handle card data, and customers, insurers and frameworks like SOC 2 often expect them.

Learn more in our guide to what penetration testing is, or compare penetration testing providers.

Related terms

Sources

  1. SP 800-115: Technical Guide to Information Security Testing and Assessment (NIST)
  2. PCI DSS Document Library (PCI Security Standards Council)

Drafted with AI assistance, then edited and fact-checked by a person. How we use AI.