What Is Penetration Testing? A Plain Guide for Product Teams
Penetration TestingHetz Team

What Is Penetration Testing? A Plain Guide for Product Teams

What penetration testing is, how it differs from a vulnerability scan, what a good test covers, how long it takes and what you should get at the end of it.

A penetration test, or pentest, is an authorized attack on your own product. Someone you have given permission to, a person, a tool or both, tries to break into your website, app or API the way a real attacker would. The goal is not to produce a long list of things that might be wrong. The goal is to find out what an attacker can actually do, prove it, and tell you exactly how to fix it.

This guide explains what a penetration test is in plain words, how it differs from a vulnerability scan, what a good test covers for a modern SaaS or web product, and what you should expect to receive at the end. If you are pricing a test, read our guide to penetration testing cost next.

Penetration Testing in One Paragraph

A penetration test starts with a scope: which domains, apps and APIs are in, which are out, and which test accounts the tester may use. The tester then maps the attack surface, looks for weaknesses, tries to exploit them, and chains small issues into bigger ones where possible. Every finding is backed by evidence, usually the exact request that was sent and the response that proves the problem. The test ends with a report that ranks findings by severity and explains the fix, and ideally with a retest that confirms each fix works.

Penetration Test vs Vulnerability Scan

The two are often confused, and many "penetration tests" sold online are really scans with a nicer cover page. The difference matters because it decides whether you can trust the findings.

Vulnerability scanPenetration test
What it doesChecks for known patterns and versionsAttacks the product and tries to exploit what it finds
OutputA list of possible issuesA list of proven issues with evidence
False alarmsCommon, often manyRare, because each finding is proven
Business logic and access controlMostly missedThe main focus
Chained attacksNoYes, small issues combined into a real path
TimeMinutes to hoursHours (automated) to weeks (manual)

A scanner is useful hygiene. It tells you that a library is outdated or a header is missing. But it cannot tell that user A can read user B's invoices by changing a number in the URL, because nothing about that request looks wrong to a pattern matcher. That class of bug, broken access control, is the most common serious weakness in web applications according to the OWASP Top 10, and finding it takes an attacker's way of thinking.

What a Good Penetration Test Covers

For a modern web or SaaS product, the infrastructure is usually managed by a cloud provider and the frameworks are reasonably safe by default. The serious problems live in the parts you wrote yourself. A good test spends most of its time there.

Access control

Can a normal user reach admin functions? Can one customer read or change another customer's data? Can a user escalate their own role? These questions, tested across every endpoint and every role, find the bugs that lead to data breaches. Our guide to IDOR and broken access control shows how these bugs look in practice.

Authentication and sessions

Login, sign-up, password reset, magic links, OAuth, multi-factor authentication and session handling. Common findings include missing rate limits on login, reset tokens that do not expire, and sessions that survive a password change.

Injection and input handling

SQL injection, cross-site scripting (XSS), server-side request forgery (SSRF), template injection and unsafe file uploads. Modern frameworks prevent many of these by default, which is exactly why the remaining ones are worth finding: they hide in the places where a developer stepped around the framework.

APIs

Most products today are a frontend talking to an API, and the API is the real target. A good test maps every endpoint, including the ones the frontend no longer calls, and tests each for authorization, input handling and data exposure. The OWASP API Security Top 10 is a useful checklist.

Business logic

Can a coupon be applied twice? Can a free plan reach paid features? Can a negative quantity produce a refund? No scanner understands your business rules. Testing them means understanding what the product is supposed to do and then trying to make it do something else.

Secrets and configuration

API keys in frontend bundles, open storage buckets, debug endpoints left on in production, verbose error messages and overly permissive CORS. These are often quick to fix and embarrassing to leave.

The Phases of a Penetration Test

Whether it is run by people or by an automated system, a serious test follows the same broad method, which is described in public frameworks such as NIST SP 800-115.

  1. Authorization and scope. Written permission from the owner, a confirmed list of targets, test accounts and rules (for example, no destructive actions on production data).
  2. Reconnaissance. Mapping subdomains, pages, API endpoints, technologies and roles. You cannot test what you have not found.
  3. Discovery. Looking for weaknesses across the map, by hand, with tools, or both.
  4. Exploitation. Trying to actually use each weakness, and chaining issues into a realistic attack path.
  5. Verification. Replaying each finding to confirm it is real, and dropping anything that cannot be proven.
  6. Reporting. Each finding with severity, evidence, impact and a fix.
  7. Retest. After you fix, the same attack is run again to confirm the fix works.

The last two phases are where many tests disappoint. A report that lists problems without proof wastes your developers' time on false alarms. A report without a retest leaves you guessing whether the fix actually closed the hole.

Types of Penetration Tests

TypeWhat is testedTypical buyer
Web applicationYour site or app, logged out and logged inSaaS companies, startups, agencies
APIREST or GraphQL endpoints directlyProducts with mobile apps or public APIs
External networkInternet-facing servers and servicesCompanies with their own infrastructure
Internal networkWhat an attacker inside the office network can reachLarger organizations
MobileiOS and Android apps and their backendConsumer apps
Cloud configurationAWS, GCP or Azure accounts and permissionsTeams running their own cloud setup

For most SaaS and web products, a web application and API test covers the risks that matter most. If your product was built with an AI app builder, read our guide to security for AI app builders like Lovable, Bolt and Base44, because those apps have their own common weak spots.

Black Box, Grey Box and White Box

These terms describe how much the tester knows before starting.

  • Black box: the tester gets only the domain, like an outside attacker. Realistic, but slow, and it can miss logged-in areas.
  • Grey box: the tester gets test accounts for each role. This is the most common choice for web applications, because most serious bugs are only reachable after login.
  • White box: the tester also sees the source code. Deepest coverage, highest cost.

Grey box is usually the best balance. Give the tester at least two accounts per role, so they can test whether one customer can reach another's data.

Manual, Automated and Agent-Driven Testing

Traditionally, a penetration test meant one or two human specialists working for one to three weeks. That model produces excellent results, but it is slow to book, expensive and impossible to repeat every time you ship.

Automated scanners are fast and cheap, but they are not penetration tests: they do not exploit, chain or prove.

A newer approach uses AI agents that run real attack tools, reason about the results, chain findings and verify each one with a real request and response. This is how Hetz works: you point it at a verified domain, agents map and attack the product in parallel, and only findings with proof reach the report. Each one comes with the fix. We compare the approaches in detail in automated vs manual penetration testing.

What You Should Get at the End

Whoever runs your test, insist on these:

  • Evidence for every finding. The request and response that prove it, so your developers can reproduce it in minutes.
  • A severity that reflects your product. A missing header on a marketing site is not critical. Reading every customer's invoices is.
  • A concrete fix. Not "implement proper access control", but the change your code needs.
  • A retest. Proof that the fix works, recorded in the report.
  • Something you can share. A summary letter or certificate for customers and auditors, without exposing the details of your weaknesses.

If you need the test for SOC 2 or ISO 27001, the report also needs a clear scope, dates and methodology. Our guide to penetration testing for SOC 2 and ISO 27001 explains what auditors look for.

When You Need a Penetration Test

  • Before launching a product that stores customer data.
  • Before a large customer's security review, or when one asks for a recent report.
  • When preparing for SOC 2, ISO 27001 or a similar audit.
  • After major changes: new authentication, new roles, a new API, a big refactor.
  • After a security incident, to check that nothing else is open.
  • Regularly, if you ship every week. Code that was safe in January may not be in March.

Common Misconceptions

"We use a secure framework, so we are fine." Frameworks prevent some bug classes. They cannot know that a customer should not see another customer's data. That rule lives in your code.

"Our cloud provider handles security." Cloud providers secure their infrastructure. Your application, your access rules and your configuration are yours. This is the shared responsibility model, and it surprises many teams.

"We are too small to be a target." Most attacks are automated and opportunistic. Bots do not check company size before they try a leaked key or a known weakness.

"A pentest will break our production." A professional test agrees on rules first: which actions are allowed, which data is off limits, and when to stop. Good tests prove a weakness without causing damage.

Getting Started

If you have never tested your product, start with a quick check of one domain to see where you stand, then run a full test before your next big release. You can see how a full run works, step by step, on our home page, compare plans on pricing, or read how we keep testing safe and limited to what you own on security. When you are ready, start a scan.

FAQ

Frequently asked questions

Keep reading