A penetration test is only as useful as the time you spend preparing for it. Teams that arrive with a clear scope, working test accounts and a plan for the findings get more proof for the same money. Teams that arrive unprepared lose the first days to questions, blocked logins and arguments about what is in bounds.
This checklist covers the preparation that matters most: what to define, what to hand over, who to tell, which rules to agree on and how to plan the fix. For the basics of the test itself, read what penetration testing is first.
Step 1: Define the Scope
Scope is the list of what the tester may touch. Without it, the test either covers too little or touches things you did not intend to expose. Write it down as a short table:
| Item | In scope | Out of scope | Notes |
|---|---|---|---|
| Main web app | app.example.com | none | Includes logged-in areas |
| Public marketing site | www.example.com | none | Low risk, check forms |
| Public API | api.example.com | Admin API | Document all versions |
| Staging | none | Yes | Only if it holds real data |
| Third-party services | none | Yes | Payment and email providers |
Include every domain and subdomain you own that users reach, including old ones that still answer requests. The forgotten staging host is a common source of findings. Be just as clear about what is out of scope, such as partner systems you do not control, because testing them without permission is a legal problem, not a security one.
If you are not sure what you expose, start with an external inventory. A quick check of a website's security helps you list what is reachable from the internet before you decide.
Step 2: Prepare Test Accounts
Most serious bugs only appear after login, so the accounts you hand over decide how deep the test goes. For each role in your product, create at least two accounts:
- An admin or owner account, if your product has one.
- A regular member account, the most common role.
- A guest, read-only or limited account, if you have one.
- A free trial or lowest-tier account, because plan limits are a common source of bugs.
Two accounts per role are the minimum, because the most common serious bug is one customer reaching another customer's data. The tester needs a second account in the same role to check it. Make the data realistic but not sensitive: sample records that look like production but contain no real customer information. Document what each account is for and which features it should be able to reach.
Plan how the accounts will be removed or disabled after the test. A forgotten admin account with a known password is a finding waiting to happen.
Step 3: Set Up Authentication Details
Think about how the tester will sign in. If your product uses multi-factor authentication, one-time codes or magic links sent to email, decide how the tester will receive them. Options include a test mode that skips the second factor for the test accounts, a shared inbox that the provider can read, or a test-only phone number. Whatever you choose, do not weaken the protection for real users.
If your product uses single sign-on, arrange a test tenant or give the tester a way to complete the flow. If the login has IP restrictions or device checks, agree on how the tester's traffic will pass them.
Step 4: Brief Your Team and Your Providers
Tell the people who would otherwise respond to the test as if it were an attack:
- Engineering: the developers who can answer questions about features and roles.
- Operations or DevOps: the people who watch production, deployments and rate limits.
- Hosting and CDN providers: some have their own rules for testing and may need notice.
- Customer support: so they can explain unusual emails or account changes.
Give each group the start and end dates, the test source addresses if known, and one contact who can stop the test. If your web application firewall or intrusion detection blocks traffic, agree in advance whether the tester's traffic should be allowed or whether the alert is the thing being tested. Both are valid, but the decision should be yours.
Step 5: Agree on the Rules of Engagement
Rules of engagement set the limits of the test in writing. A good set includes:
- Permitted techniques: for example, authenticated testing, attempts to exploit findings and automated tools.
- Forbidden actions: for example, denial of service, social engineering of your staff and destructive changes to production data.
- Data handling: how the tester will treat any real customer data they see, and whether copies can be kept.
- Stop conditions: what would cause the test to pause, such as a live incident or a fragile system.
- Communication: the channel for urgent questions and how fast the provider responds.
- Authorization: written permission from someone who has the right to approve the test.
The OWASP Web Security Testing Guide describes the kinds of tests these rules should cover. The NIST SP 800-115 guide includes planning steps that help you decide what to allow.
Step 6: Prepare for the Findings
Most of the value of a test arrives after the report. Before the test starts, decide:
- Who owns each fix. Assign a developer or team per product area, so findings do not wait for someone to notice them.
- How severity is decided. Agree on how a finding is ranked, using impact on your customers and data, not only a generic score.
- When you will retest. Schedule the retest before the report arrives, so fixes are checked soon after they ship.
- Where findings are tracked. Use your normal ticketing system, not a PDF that nobody opens again.
If your product was built with AI tools, plan for the common patterns too. Our guide to AI app builder security lists the weaknesses that show up most often.
Step 7: Check the Day-Before List
Run through this list before the test starts:
- Scope document is final and approved.
- Test accounts work, and each role has two accounts.
- Authentication steps for the tester are in place.
- Engineering, operations and support know the dates and contacts.
- Hosting, CDN and firewall rules are checked.
- Rules of engagement are signed.
- Backups are current, in case something unexpected happens.
- Someone is named to pause the test.
- Retest date and fix owners are on the calendar.
Common Preparation Mistakes
Most delays come from a short list of avoidable problems:
- A scope that changes during the test. If a new feature goes live mid-test, decide in writing whether it is in scope. Otherwise the report and the team disagree about what was tested.
- Accounts that expire. Trial accounts often lapse after a week. Check their validity on the first day and extend them before they break.
- Sending the tester to the wrong environment. Confirm the domain list with the people who run DNS, not just with the person who wrote the brief.
- No owner for the findings. A report that waits for "someone in engineering" can sit for months. Name the owner before it arrives.
- Treating the test as a one-time certificate. A test is evidence about one version of the product. Plan the next one, or the next release check, while the current one is still fresh.
During the Test
Keep the contact available, but do not hover over the tester. Answer questions quickly, especially about test accounts and expected behavior. If a finding looks like a live incident, verify it with the provider before you assume the worst, and do not block the tester without telling them. Keep a log of any alerts that fired, because they will help you tune your monitoring afterward.
After the Test
When the report arrives, read the findings with the evidence in front of you. Reproduce the most serious ones first. Fix them, then retest. A guide to reading the report, finding by finding, is in how to read a penetration test report.
Preparation also pays off the next time. A documented scope, a list of test accounts and a short set of rules make the next test faster and cheaper, and they show auditors and customers that your testing is a process, not a one-off event. The question of how often to repeat it is covered in how often you should run a penetration test.
How Hetz Makes Preparation Simpler
With Hetz, the preparation is mostly the same as above, with a few specific steps. You prove ownership of your domain with a DNS TXT record, sign an authorization that names the scope, and give the agents test accounts for your roles. A network firewall enforces the scope during the run, so the scan cannot wander to domains you did not list. Each finding comes with the exact request and response and a full fix, and a one-click retest closes it once the change is live.
Next Steps
Write the scope, create two accounts for each role, and send the briefing to the teams who will see the traffic. Compare the plans on pricing, read how we keep scans inside your scope on security, and when your preparation is done, start a scan.
FAQ