How to Prepare for a Penetration Test
How to prepare for a penetration test: the five things to have ready before day one, the two decisions to make in advance, and what to tell your own team.
To prepare for a penetration test, have working accounts for every role tested from outside your network, a named environment, a contact who is actually available, signed authorisation and an allowlisting decision ready before day one, and tell your own operations team. The single most common reason a test delivers less than it could is not the tester or the scope: it is that the first day and a half went on access.
The five things to have ready
- Working accounts, one per role, tested the day before. Not "we will create them on the morning". Log in as each of them yourself and confirm they work from outside your network. If multi-factor is enforced, decide how the tester enrols, because a code going to somebody else’s phone stops a day dead.
- The environment decided and named. Production or a staging copy, and if staging, an honest statement of how it differs. Different data, stubbed integrations and a WAF that is off in one and on in the other all change what a test means.
- A named contact who is actually available. Not a shared mailbox. Somebody who can answer at four in the afternoon and can authorise a rollback if something goes wrong.
- Written authorisation. Signed by somebody with the authority to grant it, naming the targets and the window, in the form shown in this penetration test authorisation letter guide. If any system is hosted by a third party, check whether their terms require notice.
- Allowlisting decided. If a WAF or rate limiter sits in front, decide deliberately whether the tester works through it or around it. Both are legitimate; which one you chose belongs in the report.
Giving a tester one account and expecting them to find authorisation problems. Crossing a boundary needs two accounts on either side of it, which means at least two accounts per role you care about.
Two decisions to make in advance
How much do you tell them? A black-box test simulates an outsider with no knowledge and spends days rediscovering your architecture. A grey-box test hands over documentation and accounts and spends those days testing instead. Unless you are specifically exercising your detection capability, grey box finds more per day, and most buyers who ask for black box are paying for reconnaissance they already had the answers to. Black box, grey box or white box sets out the trade in full.
Does your operations team know? An unannounced test is a legitimate exercise of your monitoring. An accidentally unannounced test is an incident, with somebody paged at 2am and a scramble that costs more than the test. If you want the detection exercise, plan it as one and tell exactly one person.
What to tell your own team
Engineering needs to know the window and that spikes in errors are expected. Support needs to know so a customer report of odd behaviour is triaged correctly. Whoever watches the logs needs to know unless you are deliberately testing them.
Say plainly that the point is to find problems, and that finding them is a good outcome rather than a verdict on anybody’s work. Teams that believe they are being audited hide things, and a test where somebody quietly excluded the service they are worried about is worth much less than it cost.
Get the scope conversation right
Five answers move an estimate more than anything else: how many distinct user roles, whether the application changes state or only reads, how much is bespoke versus framework, how many external integrations, and whether an API is in scope separately from the interface in front of it. Scoping a penetration test without guessing explains why each one matters.
Answer those honestly, including the parts that make the number bigger. A test scoped against an optimistic description finds less, runs over, or quietly stops at the boundary of what was described.
Data, and what you are handing over
A test against a system holding real customer data means a tester will see real customer data, and that has consequences beyond the engagement. Decide in advance whether the environment can be populated with realistic but synthetic records instead, because it removes a whole category of problem at the cost of some fidelity.
Where it cannot, agree what evidence may be captured. The usual answer is that proofs are built against records the tester created themselves, and access to real ones is described rather than screenshotted. Ask what the firm holds afterwards, for how long, and how it is deleted. A firm that has not thought about this will say so by hesitating.
The week before
- Log in as every account you have supplied, from outside your network, and confirm each works.
- Check the accounts will not expire or lock during the window.
- Confirm any allowlisting is in place and tested, not merely requested.
- Take a backup of anything the test could plausibly alter, and know how long a restore takes.
- Tell support and operations the window, unless you are deliberately testing detection.
- Confirm the named contact is not on leave. This happens more than you would think.
Prepare for the results, not just the test
Decide before the report arrives who owns remediation, what your internal severity thresholds mean in days, and whether there is budget for a retest. Reports that sit unread for six weeks are almost always reports nobody had been assigned to receive.
Book the debrief when you book the test, and invite the people who will fix things rather than only the person who bought the test. If a customer or auditor will want proof of testing, say so now, because an attestation letter is easier to plan for than to request afterwards. What happens after a penetration test covers the first week with the report.
And agree what happens if something critical is found mid-test. The tester should tell you immediately rather than saving it for the report, and you should know in advance who they call.
For firms running their delivery on Pental, clients hand credentials over through the portal as a logins grid or as files, rather than in a mail thread, and testers view them once and acknowledge them, so the accounts agreed are the accounts tested. Each phase of the engagement holds its own scope and test days, and the checklist for that kind of phase can be made visible to the client, so they can see what will be covered before the window opens. See the client portal.
Common Questions
- What do I need to provide before a penetration test?
- Working accounts for every role in scope, tested from outside your network the day before; a named environment with an honest note of how it differs from production; a contact who can answer during the window and authorise a rollback; signed written authorisation naming targets and dates; and a decision on whether the tester works through or around your web application firewall.
- Should a penetration test be done in production or staging?
- Either can be right, but decide deliberately and say how they differ. A staging copy with different data, stubbed integrations or a firewall switched off changes what the results mean. Production gives the truest answer and needs agreed windows, backups and a named contact who can stop the test. Whichever you choose belongs in the report.
- Should I tell my IT team about a penetration test?
- Yes, unless you are deliberately testing detection, in which case plan it as an exercise and tell exactly one person. Engineering needs the window, support needs to triage odd customer reports correctly, and whoever watches the logs needs to know. An accidentally unannounced test becomes an incident, with somebody paged at night and a scramble that costs more than the test.
- How many test accounts does a penetration tester need?
- At least two per role you care about. Authorisation problems are found by crossing a boundary, which needs an account on each side of it: one user requesting another user's data, or a lower role attempting a higher role's action. One account per role lets a tester explore the application but not test whether it keeps users apart.
Keep Reading
What Happens After a Penetration Test
What happens after a penetration test: the first week with the report, triage and fixing, accepted risks, the retest, and what to tell your customers.
When a Client Accepts the Risk Instead of Fixing It
When a client accepts the risk instead of fixing a finding: what to record, who signs it off, how it reads in the report, and why accepted is not closed.
Vulnerability Scan or Penetration Test: Which One You Actually Need
Vulnerability scan or penetration test: sold interchangeably, they answer different questions. What each finds, what neither finds, and which you were sold.
Setup guide
See the product set up, end to end
The whole setup in 12:10, with chapters you can jump to: registering, your own domain, your own database in any of three places, your own mail server, branding, the first sign-in, updating the database on Supabase Cloud, and moving the database if you change your mind.
- 0:00 · Registering, signing in, and the free trial
- 0:51 · Your name and your firm’s name
- 0:57 · Custom domain
- +6 more