Back to Glossary
By 
October 19, 2026

What Is Pen Testing (Penetration Testing)?

Pen testing is authorized security testing in which assessors imitate the methods of real attackers to find ways around the controls protecting an application, system, or network. NIST sets out the practice in its Technical Guide to Information Security Testing and Assessment, published in September 2008 and never revised since.

What makes the exercise a test rather than an intrusion is permission, since the technical activity is the same either way. The shorter form of pen testing is the one in common use, and the engagement NIST describes hunts for something narrower than a list of flaws, namely combinations of vulnerabilities across one or more systems that together yield more access than any single one of them would.

The Four Phases, and What Gets Misread About Them

The phases NIST names are planning, discovery, attack, and reporting, and the first of them involves no testing at all, since planning is where the rules get fixed, management approval is documented, and the goals are set. Discovery splits in two, beginning with information gathering and scanning, then moving to vulnerability analysis against public databases and the testers' own knowledge. The attack phase takes the candidates that analysis produced and tries to exploit them.

Reporting is where the model gets misstated most often, because NIST places it alongside the other three rather than after them, with written logs kept and periodic reports going to administrators and management while discovery and attack are still running.

The sequence is not a line either, since a successful exploit feeds back into discovery as fresh access exposes systems and credentials that were invisible from outside, and the guide draws that loop explicitly. A footnote to the same diagram goes further, stating that this is one example of how the process can be divided and that many groupings of the same activities are acceptable, which leaves the four phases as a teaching model with no obligation attached.

Sorting the Types of Penetration Testing

Where the tester stands accounts for one set of labels, and outsider scenarios hand testers nothing beyond target addresses, leaving them to work from public sources and scanning, which returns far less than an internal view because the traffic crosses a firewall. Insider scenarios place testers on the internal network with the access a standard employee holds, or an administrator's where the goal warrants it, and the work proceeds upward through privilege escalation. When an engagement covers both, NIST notes the external portion usually runs first.

Who inside the organization knows is a separate question, and overt testing proceeds with the knowledge and consent of the IT staff, which lets them limit the impact and turns the engagement into a training opportunity. Covert testing carries upper management's permission but keeps the IT staff uninformed, sometimes with a trusted third party mediating so that detected activity is verified as a test before anyone launches a real incident response.

NIST's own names for those two are a trap, since it calls them white hat and black hat testing, which collides with the far more common use of white box and black box for how much internal detail a tester receives. One distinction records who was told, the other what the testers were handed, so an engagement can be covert and fully documented at once.

What covert work buys is different in kind, because it aims at the damage an adversary could do and leaves the counting of weaknesses to other techniques, so it typically exploits only the most rudimentary ones needed to get in. NIST's assessment is that overt testing costs less, carries less risk, and sees more use, while covert testing gives a truer reading of everyday security precisely because administrators are not on heightened alert.

Where Penetration Testing Tools Fit

Discovery leans on scanners and on the identification of open ports and running services, while the attack phase adds exploit code aimed at individual flaws. NIST treats the kit as a moving target, since what a team carries shifts with each test's scope while the team keeps a core set current, assembled from some mix of in-house, open source, commercial, and government off-the-shelf code.

Vetting that kit is where the guide turns blunt, asking that every tool be evaluated before use, on a range running from downloading only from a trusted site to a full code review confirming the tool carries no malicious code of its own, with the same caution extended to exploit programs and scripts.

No inventory of penetration testing tools settles what an engagement can accomplish, which is why NIST publishes a baseline skill set for the technique. It asks for extensive TCP/IP, networking, and operating system knowledge, advanced command of vulnerabilities and exploits, and knowledge of the techniques used to evade security detection.

Pen Testing and Vulnerability Scanning

NIST draws the difference in a single sentence, holding that a scanner establishes only that a vulnerability may be present, while the attack phase of a test settles the question by exploiting it.

Treating the two as alternatives misreads the relationship, because NIST describes penetration testing as usually relying on port and service identification together with vulnerability scanning, which makes scanning an input to the test rather than a cheaper substitute for it.

How Often Should a Pen Test Run?

Cost and potential impact lead NIST to suggest that testing an organization's networks and systems annually may be sufficient, with less demanding activities running on a regular schedule in between. Real exploits are fired at production systems and data during an engagement, and the guide is direct that systems may be damaged or left inoperable, a hazard experienced testers reduce without ever removing.

Policy decides what a team is permitted to do, since particular techniques may be forbidden outright or confined to certain hours, and a test can be designed to halt at the point where the next action would cause damage, which establishes that the damage was available without inflicting it.

Run as a standing program, the work leaves a public record, and CISA reported 143 Risk and Vulnerability Assessments in fiscal year 2023 alongside a sample attack path drawn from the weaknesses its own teams found.

What a Pen Test Cannot Tell You

Every finding in the report describes one window of time, and the report ages from the day it arrives, since nothing deployed afterward was covered by it. A clean result and a secure application are therefore different claims, and the distance between them is what runtime security observes while the application serves traffic.

Scope draws the other boundary and draws it silently, because systems left out were never examined and the report's silence on them is not a clean bill of health. NIST is explicit that no single technique yields a complete picture of a system's security, which gives a test the standing of one input among several.

A report tells you what a specific team reached inside a defined scope during a fixed window. Raven watches what the application does outside that window, once the next release has shipped and no assessor is engaged. Book a demo and see what it reports on a day with no test scheduled.

‍

Share this post