Penetration Testing: Proving What an Attacker Could Actually Do
The definition, phases, types and outputs of a penetration test, and how it differs from vulnerability scanning and red teaming.
What Is Penetration Testing
The output that distinguishes a penetration test from other assessments is evidence. A finding should show that a weakness was exploited, what access or data it yielded, and how to reproduce it. That is what makes a pentest different from a vulnerability scan, which reports potential issues, and from a vulnerability assessment, which inventories and rates them.
The Four Phases (NIST SP 800-115)
| Phase | Activities |
|---|---|
| Planning | Scope, objectives, rules of engagement, authorization, test windows, contacts |
| Discovery | Reconnaissance, asset and service enumeration, vulnerability identification |
| Attack | Gaining access, escalating privileges, moving through the system, and looping back to discovery when new access reveals new targets |
| Reporting | Findings with evidence, impact, reproduction steps and remediation guidance |
NIST SP 800-115 describes the attack phase as iterative: each new level of access can expose new systems and information, which sends the tester back into discovery. This is how individual weaknesses become an attack path.
Types of Penetration Tests
| Type | Target |
|---|---|
| Web application | Authentication, authorization, input handling and business logic of web apps |
| API | REST, GraphQL and other APIs, mapped to the OWASP API Security Top 10 |
| Network (external and internal) | Internet-facing hosts and services; internal networks and Active Directory |
| Cloud | Cloud configuration, identities and services |
| Mobile | Mobile apps and their back-end APIs |
| LLM application | Prompts, retrieval, tools and outputs of AI features |
| Social engineering and physical | People and premises, usually within red team engagements |
Black Box, Gray Box and White Box
Tests also differ in how much the tester knows in advance: nothing (black box), credentials and some documentation (gray box), or full access to source and architecture (white box). Gray box is the most common for applications because it reaches authenticated functionality efficiently. See black box, gray box and white box testing.
Penetration Testing vs Related Activities
| Activity | Question it answers | Output |
|---|---|---|
| Vulnerability scanning | What known weaknesses might exist? | Automated list of potential issues |
| Vulnerability assessment | What weaknesses exist and how severe are they? | Prioritized inventory |
| Penetration testing | What can an attacker actually exploit and reach? | Exploited findings with evidence |
| Red teaming | Can the organization detect and stop a realistic, objective-driven attack? | Attack narrative and detection gaps |
| Bug bounty | What can outside researchers find over time? | Individual reports, paid per valid finding |
How Often to Test
Many standards set an annual minimum. PCI DSS Requirement 11.4, for example, requires internal and external tests at least every 12 months and after significant changes. Applications that ship weekly change far faster than an annual test can track, which is why continuous penetration testing and automated penetration testing are used to cover the time between engagements.
What the Report Must Show
- Scope, dates, methodology and any limitations.
- Each finding with severity, affected asset, evidence of exploitation (proof of concept), business impact and reproduction steps.
- Remediation guidance specific enough for engineers to act on.
- Retest results confirming fixes.
See the penetration testing report example.
How FireCompass Performs Penetration Testing
FireCompass uses AI agents to run web application, API and external network penetration tests on demand or continuously, reporting findings with proof of exploit and reproducible steps. See AI penetration testing and the continuous automated pen testing page.
Sources and Standards
- NIST CSRC Glossary: Penetration Testing
- NIST SP 800-115: Technical Guide to Information Security Testing and Assessment
- OWASP Web Security Testing Guide
- PTES: Penetration Testing Execution Standard
Frequently Asked Questions
What is penetration testing?
An authorized, simulated attack in which testers try to circumvent security controls to find exploitable weaknesses and demonstrate their impact with evidence.
What are the phases of a penetration test?
NIST SP 800-115 describes four: planning, discovery, attack and reporting, with the attack phase looping back to discovery as new access is gained.
What is the difference between a penetration test and a vulnerability scan?
A scan reports potential vulnerabilities automatically. A penetration test attempts to exploit them and shows what an attacker could actually access.
How often should penetration testing be done?
At least annually and after significant changes is a common compliance minimum. Organizations that release frequently add continuous or automated testing between engagements.
What is the difference between penetration testing and red teaming?
Penetration testing aims to find as many exploitable weaknesses as possible in a defined scope. Red teaming pursues a specific objective stealthily to test detection and response.
Further Reading
- FireCompass continuous automated pen testing
- Continuous Penetration Testing vs Annual Pentests: Why the 362-Day Gap Is Killing Enterprise Security in 2026
- Why an LLM Alone Cannot Run an AI Penetration Test
- Web Application Penetration Testing in 2026: A Practical Guide for CISOs
Related Terms
Run a Penetration Test This Week, Not Next Quarter
Run a free AI pentest against your web app and API surface and get proof-of-exploit findings.
Free AI Pen TestNo credit card. Findings include reproducible steps and exploit code.
On this page
- What Is Penetration Testing
- The Four Phases (NIST SP 800-115)
- Types of Penetration Tests
- Black Box, Gray Box and White Box
- Penetration Testing vs Related Activities
- How Often to Test
- What the Report Must Show
- How FireCompass Performs Penetration Testing
- Sources and Standards
- FAQ
- Further Reading
- Related Terms
