On this page
- What is a penetration test, in plain terms?
- How is a pen test different from a vulnerability scan?
- What types of penetration tests are there?
- Who actually needs a penetration test?
- How do you scope a penetration test?
- What are rules of engagement and written authorization?
- What should a good pen test report contain?
- What happens after the report?
- How do you choose a penetration tester?
- The short version
What is a penetration test, in plain terms?
A penetration test, or pen test, is a hired, authorized attack on your own systems. A skilled tester uses the same tools and tricks a real attacker would, tries to get in, and then writes up exactly what worked, what it exposed and how to close the gap.
NIST's Technical Guide to Information Security Testing and Assessment (SP 800-115) describes penetration testing as security testing in which assessors mimic real-world attacks to find ways around the security features of an application, system or network. Most real break-ins chain several small weaknesses together, such as an exposed login page, a reused password and an account with too much access, and a good tester looks for those chains rather than single flaws.
NIST adds that a test can show how skilled an attacker would need to be and whether your people notice when someone is attacking.
How is a pen test different from a vulnerability scan?
This is the most common point of confusion, and it matters because the two are scheduled and judged very differently. The PCI Security Standards Council's Penetration Testing Guidance says the difference "still causes confusion" in the industry and lays it out side by side.
| Vulnerability scan | Penetration test | |
|---|---|---|
| Goal | Find and rank known weaknesses | Show whether and how weaknesses can be used to get in |
| How | Mostly automated tools, with some manual checking | Mostly manual work by a skilled person, using tools along the way |
| Output | A ranked list of possible issues | A narrative of what was tried, what succeeded and what it exposed |
| Who reads it | Your IT or development team | Owners, managers, customers and auditors, plus the technical team |
| How often | Frequently, often on a schedule | Periodically and after significant changes |
Both have a place. NIST notes that vulnerability scanners can have a high false positive rate, reporting flaws that do not exist, and that someone with expertise should interpret the results. A pen test confirms which findings are real and which ones matter in your environment. On the other hand, a test is a snapshot of one moment, while scanning keeps watching between tests. If you only have budget for one, ask what your requirement actually says before choosing.
What types of penetration tests are there?
Tests are usually described by what is being attacked and from where. A single engagement can combine several.
External network test
The tester starts from the internet, like an outsider would. NIST describes external testing as viewing your security from outside the perimeter, often beginning with public information such as domain records and then probing the servers, remote access portals and services you expose. It covers what any stranger can reach.
Internal network test
The tester works from inside your network, playing the role of a disgruntled employee, a compromised laptop or an attacker who already got past the perimeter. NIST notes that internal testers are often given ordinary user access and then try to escalate it, for example from a regular account to administrator. For an office with shared drives, a file server and a dozen laptops, this is often where the most uncomfortable findings live.
Web application test
This focuses on a website, customer portal, online store or software product: logins, forms, user roles, payment flows and the APIs behind them. The OWASP Web Security Testing Guide is the open reference many testers use for this kind of work. If your business runs a customer-facing app or a SaaS product, this is usually the test your customers will ask about.
Social engineering test
Here the target is people rather than machines. NIST describes social engineering as an attempt to trick someone into revealing information, such as a password, and gives examples like phishing emails and phone calls posing as the help desk. The PCI guidance adds in-person tests, such as persuading someone to hold open a door. Both sources stress that the point is to improve training and procedures, not to embarrass or single out an employee.
Black-box, gray-box and white-box
You will also hear tests described by how much the tester is told up front. In a black-box test, the tester gets almost nothing; in white-box, full details; gray-box sits in between. It is tempting to think black-box is more realistic. The PCI guidance says white-box and gray-box tests yield more accurate results and a more thorough look, while pure black-box testing can take more time and money for less value. A paid tester has limited time, so for PCI-style tests sharing information is often money well spent.
Who actually needs a penetration test?
Not every business does. A five-person landscaping company with a brochure website and a hosted email account will get far more from the basics in cybersecurity basics for small businesses and website security basics than from a formal test. Turn on multi-factor authentication and keep things updated before you pay someone to attack you.
A test starts to make sense when one or more of these is true:
- A customer asks for it. Larger customers often send security questionnaires asking whether you have had a recent independent penetration test and whether findings were fixed.
- A standard or contract requires it. The PCI guidance describes penetration testing at least annually and after any significant change for organizations in scope of the payment card standard. Frameworks such as SOC 2, and some cyber insurance applications, also raise the question. The exact requirement depends on the framework and version, so confirm with your compliance advisor or auditor what you need.
- You hold sensitive data. Health records at a dental practice, financial data at an accounting firm, or customer accounts in an online store raise the stakes of a breach.
- You are launching or changing something significant. A new customer portal, a new app, a move to the cloud or a major rebuild is a natural point to test, before attackers find what changed.
- You have built custom software. Off-the-shelf tools are tested by their vendors; your own code is tested by nobody unless you arrange it. See custom software vs. off-the-shelf for that tradeoff.
A practical example: a regional medical billing company builds a portal where clinics upload patient files. A hospital network wants to sign on and asks for a recent pen test report. That is a clear case for a web application test of the portal, plus an external test of what the company exposes to the internet.
How do you scope a penetration test?
Scope is where most of the value, and most of the cost, gets decided. A vague scope produces a vague report.
- Start from the reason. Write down why you are testing: a customer request, a compliance requirement, a new launch or general peace of mind. If someone else asked for the test, get their exact wording, because it often specifies the type and coverage.
- List what is in. Name the domains, IP addresses, applications, environments and user roles to be tested. For an app, include each kind of account (customer, staff, administrator) the tester should log in as.
- List what is out. Name systems that must not be touched, such as a fragile legacy system, a shared server or a vendor's platform you do not control.
- Decide production or copy. Testing a staging copy is safer; testing production is more realistic. NIST suggests that techniques likely to cause outages should probably be used against a non-production system.
- Decide on depth. Agree how far the tester may go once inside. The PCI guidance calls these success criteria: without them, a tester could go further than you intended.
- Check third-party permissions. If your systems are hosted by someone else, the PCI guidance says any approval a service agreement requires must be in hand before testing starts.
Cost follows scope. The main drivers are how many systems and applications are in scope, how complex the application is, how many user roles need testing, whether social engineering is included, and whether a retest is part of the price. Ask each tester to price the same written scope so you can compare fairly.
What are rules of engagement and written authorization?
Before any testing starts, you and the tester sign a document that says exactly what is allowed. The PCI guidance says this agreement on conditions and the permitted degree of exploitation is what authorizes the tester to test the environment. NIST includes a rules of engagement template in SP 800-115 and lists management approval, finalized and documented, as part of planning.
The signed authorization is what separates a test from an attack. It also protects you: if something goes down during testing, everyone knows who was doing what and who to call. Have your attorney review the agreement if it touches liability, data handling or third-party systems.
Good rules of engagement typically cover:
- Who authorized the test, and who on your side can stop it
- Exact targets in and out of scope
- Testing windows, such as evenings for a busy production site
- Contacts on both sides, reachable during testing
- The IP addresses the tester will test from, so your team can recognize the traffic
- What happens if the tester finds a critical flaw or signs of a real, earlier break-in
- How passwords or sensitive data the tester sees will be handled, kept or destroyed
- Whether your IT team or security provider will be told in advance
That last point is a real choice. NIST calls testing with staff aware "overt" and testing without warning "covert." Covert testing shows whether your monitoring catches an attack, but NIST notes it is more time-consuming and costly and finds fewer vulnerabilities overall. Most first tests are overt.
What should a good pen test report contain?
The report is what you are paying for. The PCI guidance says merely listing vulnerabilities does not meet the intent of a penetration test, and that a report should clearly communicate what was tested, how and with what results. Its suggested outline is a useful checklist for any report:
- Executive summary in plain language: scope and major findings, readable by an owner
- Statement of scope: exactly which systems and applications were tested
- Methodology: how the testing was done
- Limitations: anything that restricted the test, such as time windows or excluded systems
- Testing narrative: how the test progressed, including what was tried and failed
- Findings, each with a description, the affected systems, how it was or could be used, and a severity rating
- An explanation of how severity was rated, so you can trust the priorities
- Specific fix recommendations for each finding
- A record of anything the tester changed in your environment, such as test accounts or files, so it can be cleaned up
A report that reads like a raw scanner export, hundreds of pages of generic findings with no story of how the tester got in, is a sign you bought a scan dressed up as a test. Ask for a sample report, with client details removed, before you hire.
What happens after the report?
Fix the findings, starting with the most severe, then have the tester verify the fixes. The PCI guidance says the organization should fix exploitable vulnerabilities within a reasonable period and the tester should then retest to confirm the fix works. It also warns that a flaw in one place often reflects a weakness in process that may have produced the same problem elsewhere, so look beyond the exact page or server named.
Ask before signing whether a retest is included. A retest letter showing the critical findings were closed is often exactly what a customer or auditor wants to see. If fixes drag on for a long time, the PCI guidance notes a new test may be needed, because the environment has changed.
Keep perspective, too. The OWASP testing guide's introduction argues that a pen test at the end of development is "too little too late" to be the only form of testing, and recommends building security checks into every stage of building software. A pen test is a checkpoint, not a security program.
How do you choose a penetration tester?
Choose on independence, relevant experience and the quality of the report, in that order.
Independence. The PCI guidance requires that the tester be organizationally independent of whoever manages the systems being tested. Outside PCI scope, the company that built or maintains your systems ideally should not be the one testing them. Separation of that kind makes the result more credible to customers and auditors.
Relevant experience. The PCI guidance suggests asking how long the tester and their firm have been testing, whether they have tested organizations of similar size and scope, and what experience they have with your specific technologies, such as web applications, cloud platforms or a particular kind of network.
Certifications. The same guidance lists examples of common penetration testing certifications, including OSCP, CEH, GIAC credentials such as GPEN and GWAPT, and CREST certifications. It is careful to say these are not required, that they indicate a common body of knowledge, and that experience cannot be measured by certifications alone. Treat them as one signal among several.
Questions worth asking any candidate:
- Who exactly will do the testing, and what is their experience with systems like ours?
- How much of the work is manual, and how much is automated scanning?
- Can we see a redacted sample report?
- Is a retest included, and within what window?
- How will you handle data you see, and how is it stored and destroyed afterward?
- What insurance do you carry, and what does your authorization agreement say about liability?
- Will the report satisfy the specific customer or compliance requirement we have?
The penetration testing services page explains what agencies in this area typically cover, and the cybersecurity services overview shows how testing fits alongside monitoring and compliance work. For rough US ranges on security projects, see the pricing page, where figures are estimates, not offers.
The short version
Get the basics in place first. Order a pen test when someone requires it, when you hold data that would hurt to lose, or when you have launched something significant. Write down why you are testing, scope it tightly, sign rules of engagement, insist on a report that tells the story of the test, fix what it finds and get a retest. If you would like help finding a team that fits, Dinozoom can match you with a security agency through a short, free quote request.
Questions
Is a penetration test the same as ethical hacking?
Close. Ethical hacking is the broad term for authorized attempts to break into systems; a penetration test is a scoped, documented engagement with agreed rules and a written report at the end. When a customer or auditor asks for a pen test, they mean the documented engagement, not informal probing.
Can a penetration test break my website or systems?
It can. NIST notes that systems may be damaged or made inoperable during testing and that experienced testers can reduce this risk but never fully remove it. That is why good engagements agree on testing windows, avoid risky techniques on fragile production systems, test a copy where possible and keep a contact on call during testing.
How long does a penetration test report stay useful?
It describes one moment, so it ages as you change code, servers and accounts. The PCI guidance describes testing at least annually and after any significant change. Customers and auditors set their own limits on how recent a report must be, so ask what age they will accept before you rely on an old one.
Do I need permission from my hosting or cloud provider?
Check before testing. Some hosting agreements require approval before anyone runs a penetration test, and the PCI guidance says that approval must be in hand before the assessment starts. Many large cloud providers publish their own testing policies, so ask your tester to confirm what applies to your setup.
Will a penetration test make us compliant?
Not by itself. A test can satisfy a specific requirement in a standard or a customer contract, but compliance frameworks cover many other controls, from access policies to logging and vendor management. Confirm with your compliance advisor or auditor exactly what kind of test, scope and evidence your requirement calls for.