To prepare for a penetration test, get written authorisation for every system in scope, tell the tester what might break, build and check the test accounts and access they need, warn the people who would otherwise report the test as an attack, take backups, and name a contact who can answer the phone throughout.
Most of that is a few emails. Left until the Friday before, it becomes the reason the tester spends Monday morning waiting for a password.
This post puts the preparation in the order it needs doing, with an owner for each step. It assumes the test is booked and scoped. If you’re still comparing providers, start with our guide to penetration testing cost, which covers how a test is scoped and priced.
What You Need Before You Start Preparing
You need three things before step one: a written scope, the name of the person who can authorise testing, and the tester’s list of requirements. Everything else follows from those.
The scope is the document your provider agreed with you. The National Cyber Security Centre’s guidance on commissioning a test expects the scoping exercise to record, among other things, the penetration testing team’s requirements (opens in a new tab), because, in its words, “this will allow you to do any necessary preparation before the date of the test”. Its examples are creating test accounts and allocating desk space (NCSC, Penetration testing, last reviewed 10 January 2022). If your provider hasn’t sent that list, ask for it now. It’s the most useful page in the whole engagement.
Here is the whole job on one page. The timings are a sensible default for a test of a week or two, not a rule.
| Step | What | Owner | When |
|---|---|---|---|
| 1 | Written authorisation for every system in scope, including anything a third party hosts | System owner, signed off by a senior manager | Four weeks before |
| 2 | Tell the tester what might break, and when not to test | IT manager | Three to four weeks before |
| 3 | Work through the tester’s requirements list | IT manager | Two to three weeks before |
| 4 | Build the test accounts and access, then check them yourself | System administrators | One to two weeks before |
| 5 | Tell the people who would otherwise report the test as an attack | Security or IT operations lead | One week before |
| 6 | Take backups and hold back risky changes | System administrators | The days before |
| 7 | Name a contact and an escalation route, and keep them available | IT manager (contact); senior manager (escalation) | Day one to the final day |
Step 2: Tell the Tester What Might Break
List the fragile systems, the busy periods and the dates when nobody should be testing anything, and send the list to the tester before the test is planned in detail.
The NCSC says so directly: “During scoping, you should outline any issues which might impact on testing.” It also expects the scoping document to record “any specific time constraints on testing or reporting, that a penetration testing company will need to consider when allocating resources” (opens in a new tab). Month-end, a product launch, a legacy system that falls over if you look at it: the tester would much rather know.
Testers do try to be careful. The NCSC notes that “The testers should make every effort to avoid causing undue impact to the system being tested.” They can only avoid what they’ve been told about.
The mistake this prevents: the payroll system stopping on the one day of the month it can’t.
Step 3: Work Through the Tester’s Requirements List
Take the list your provider sent at scoping and assign every line to a named person with a date. A requirement with no owner won’t be ready on day one.
CREST expects a scope statement to set out “Information and resources that the testers will need prior to testing”, as well as “Defined testing times and locations”. In practice the list usually covers some mix of the following, depending on the test type.
- For an external test: the IP ranges and domains in scope, confirmed as yours
- For an internal test: a network port or VPN account, a desk if the tester is on site, and building access
- For a web application or API test: a test environment or agreement to test production, and accounts for each user role in scope
- For any test with an open-box element: architecture diagrams, asset lists and relevant documentation
Our post on internal vs external penetration testing explains why the two need such different access. For mobile apps, the build itself needs preparing too, and we’ve covered that separately in preparing for a mobile app penetration test.
The mistake this prevents: discovering on the morning of the test that the VPN account needs a manager’s approval, and the manager is on holiday.
Step 4: Build the Test Accounts and Access, Then Check Them Yourself
Create every account and access route the tester needs, then log in with each one yourself before the test starts. An account nobody has tried is an account that doesn’t work.
This is the step most often left late, and the one that costs the most testing time when it goes wrong. Check each account has the permissions its role should have, not administrator rights “to make things easier”. A tester given more access than a real user tests a system your real users never see.
Decide, too, whether the tester’s traffic should be allowed through your web application firewall or intrusion prevention system. If the question is whether the application is secure, letting the tester through saves days spent fighting a filter. If the question is whether the filter works, don’t. Either way, make it a decision and write it down.
The mistake this prevents: a report that says little about your application because most of the test was spent being blocked by the thing in front of it.
Step 5: Tell the People Who Would Otherwise Report the Test as an Attack
Tell your security operations team, your IT support desk and any managed security provider when the test runs and where it comes from. Otherwise they’ll do their job and stop it.
CREST puts it plainly: the details of the test “will need to be disseminated throughout the organisation, for example to operations staff that may mistakenly report testing activities as actual attacks on the organisation.” Give them the tester’s source IP addresses, the dates and times, and the name of your point of contact (step 7).
There is one exception. If the point of the exercise is to find out whether your team notices, don’t tell them. That’s a test of detection and response rather than of your systems, and it’s usually run as a red team exercise with its own rules about who knows what.
The mistake this prevents: your managed security provider blocking the tester’s IP address at 10am and raising an incident about it at 10.05.
Step 6: Take Backups and Hold Back Risky Changes
Back up the critical systems in scope before testing starts, and hold back any change to them that could wait until the test is over.
CREST’s advice is one line long: “Take back-ups of critical systems and files before testing.” A careful tester rarely breaks anything, but careful isn’t the same as never, and restoring from a backup you took on Friday is a much better Monday than restoring from one you didn’t.
The change freeze is common sense rather than a formal requirement. A system that changes mid-test gives you a report about something that no longer exists, and makes it hard to tell whether an outage was the test or the change.
It’s rather like having the decorators in. You move the good furniture out first, and you don’t choose that week to have a new kitchen fitted as well.
The mistake this prevents: a deployment on day two that breaks something, and a morning spent arguing about whose fault it was.
Step 7: Name a Contact Who Will Answer the Phone
Name one technical contact who can be reached throughout testing, and agree how critical findings will be escalated. The tester needs someone to call, and so will you.
The NCSC is specific: “During the test phase, you should ensure that a technical point of contact is available at all times.” It adds, reasonably, that “The point of contact does not need to spend all their time working with the test team but should be available at short notice.” The purpose, in the NCSC’s words, is to allow “the test team to raise any critical issues found during testing, and resolve problems which are blocking their testing”.
CREST goes a step further and suggests you “Nominate a senior manager (who can be easily contacted during the testing process) to be accountable for managing test delivery”, and expects “A problem escalation process” to be agreed at scoping. Agree what counts as critical, who is told, and how fast. A serious finding shouldn’t sit in someone’s inbox until the report arrives.
The mistake this prevents: the tester finding something serious on a Thursday afternoon and nobody picking up until Monday.
How to Tell You’re Ready for the Penetration Test
You’re ready when the tester could start at nine on the first morning without needing to email you.
Check that:
- Authorisation is signed for every system in scope, including third-party hosting.
- Every test account has been logged into by someone on your side, with the right role.
- Network, VPN and building access have been tested, not just requested.
- Operations, the service desk and any managed security provider know the dates and the source IP addresses.
- Backups of the critical systems in scope are complete and recent.
- The point of contact knows they’re the point of contact, and has a deputy.
Troubleshooting Common Penetration Test Preparation Problems
Most day-one delays come from three things: access that doesn’t work, people who weren’t told, and a system nobody mentioned.
| Symptom | Likely cause | Fix |
|---|---|---|
| “The tester can’t log in” | Test account created but never tried; wrong role; password expired | Log in with every account before day one (step 4) |
| “Our SOC has blocked the tester’s IP” | Operations team not told, or told without the source IPs | Send the dates, times and source IPs a week ahead (step 5) |
| “The hosting provider has suspended our server” | Third-party environment tested without permission or notice | Check the provider’s terms and get permission in writing (step 1) |
| “The test found almost nothing” | The web application firewall blocked the tester throughout | Decide in advance whether the tester’s traffic is allowed through (step 4) |
| “A system fell over and we don’t know why” | A fragile system nobody mentioned, or a change made mid-test | Tell the tester what might break (step 2); hold back changes (step 6) |
| “We only heard about a critical finding in the report” | No agreed escalation route | Agree what counts as critical and who is called (step 7) |
Penetration Test Preparation FAQs
Should You Tell Your SOC About a Penetration Test?
Yes, unless the test’s purpose is to check whether they detect it. CREST advises telling operations staff, who may otherwise report testing as a real attack. Give them the dates, times and source IP addresses. A detection test is a different engagement, usually a red team exercise.
What Access Does a Penetration Tester Need?
It depends on the test. An external test needs confirmed IP ranges and domains; an internal test needs network or VPN access; an application test needs accounts for each user role in scope. The NCSC expects your provider to list its requirements at scoping, so ask for that list.
Do You Need to Back Up Before a Penetration Test?
Yes. CREST’s guidance is to take backups of critical systems and files before testing. Testers work to avoid disruption, and the NCSC expects them to make every effort not to cause undue impact, but a recent backup is your insurance if something fails anyway.
Do I Need Permission From My Hosting or Cloud Provider?
Check the provider’s terms before testing anything it runs. Some require notice, some restrict certain kinds of testing, and a written authorisation from you doesn’t cover their infrastructure.
What a Well-Prepared Penetration Test Gets You
A well-prepared test spends its days testing. That’s the whole return on the preparation, and it’s why the preparation is worth doing properly.
Once the test is over, the next job is acting on the report. If you’re still at the stage of choosing a provider, our checklist on how to choose a penetration testing company and our guide to comparing penetration testing quotes cover the steps before this one.
If you’d like a second opinion on your own preparation list before a test, whoever is running it, do get in touch.
The best preparation isn’t the longest checklist. It’s a tester who starts testing on the first morning.