How to prepare for a pentest: documents, access and data before you start

By Kike Gandia · Co-Founder & CEO, OSCP · Last updated:

For a pentest to start without delays, the pentester needs three things: a signed authorization to attack your systems, access (test accounts for each role, environments and URLs) and a reachable person during the tests. Without a signed authorization no test is launched. This guide is a generic checklist, valid with any provider, of what is worth having ready before starting and who should provide it.

The full checklist: what, who and why

WhatWho provides itWhy
NDA (confidentiality agreement)Both partiesProtect the information the pentester accesses
Contract with scope and express authorizationClient and providerState in writing which systems are attacked and with whose permission
Rules of engagementClient and providerSet responsible people, schedules, phone numbers and excluded tests
Test accounts for each roleClientTest the application from the inside at each permission level
Environments and URLsClientKnow where testing happens and what is production
Exposed services and IPsClientDefine the infrastructure within scope
Estimated number of featuresClientSize the testing effort
Time windowsClientTest when the impact is lowest
Contacts and escalation phone numberClientBe able to stop or alert in case of an incident
Monitoring and allow listClientAvoid blocks or false alarms
Third-party services out of scopeClientMake clear what is not attacked
BackupsClientBe able to restore if something is altered

Documents signed before starting

There are three, and no test starts without them:

  • NDA: confidentiality of whatever the pentester sees, from architecture to data.
  • Contract with scope and express authorization: attacking a system without permission is a crime, and the authorization must come from whoever has authority over it. If the system is hosted by a third party, their consent is sometimes needed too.
  • Rules of engagement: the operational document. It lists the responsible people on each side, schedules, contact phone numbers and the tests that are excluded.

If the authorization is not signed, no test is launched, however urgent it is.

Accounts, environments and data

This is what delays a pentest most when it is not ready:

  • Test accounts for each role of the application. There is no fixed number: it depends on the roles that exist. If possible, more than one account of the same role, to check whether one user can see another's data.
  • Environments and URLs: the address of each environment and which one is production. If there is a staging environment, with fictitious data and equivalent to the real one.
  • Exposed services and IPs within scope, so that no asset is left out by oversight.
  • Estimated number of features: screens, modules, API endpoints. An exact inventory is not needed; an idea of the size is enough.

The scoping form collects these questions in order. And if you are unsure whether to ask for tests with or without credentials, see black, grey and white box.

Monitoring, SOC and allow list

Before starting, talk to whoever watches your systems:

  • Notify the SOC, the team that manages the WAF and the hosting provider: dates, windows and the IPs the pentester will come from.
  • Decide whether to test with defences active or with the IPs on an allow list. With defences active, detection capability is measured; with allowed IPs, the application is assessed in depth without the WAF blocking every test.
  • Ask them to log what they detect, because detections are useful information and can be attached to the report.

Without this step, an authorized pentest can trigger like a real incident, or a real attack can hide in the noise of the test.

Common mistakes when preparing a pentest

These are the slip-ups that waste the most time:

  • A single administrator account for everything. Without accounts for the other roles you cannot test whether an ordinary user reaches what only an administrator should see.
  • Accounts with two-factor authentication with no agreement on how they will be accessed during testing. How the second factor is handled must be decided beforehand.
  • An environment that does not resemble the real one, with old versions or without the same protections: what is found there may not apply in production.
  • Not notifying the SOC or the hosting provider, so that the pentester's IP gets blocked or a false incident is opened.
  • A vague scope: "the website" is not a scope. It is worth listing domains, applications and IP ranges.

Reviewing this list the day before starting saves more time than any other preparation.

Third-party services, backups and contacts

Three details that are often forgotten:

  • Third-party services: a payment gateway, an identity provider or a cloud CRM are not attacked, because they are not yours and you cannot authorize it. What is assessed is whether they pose a risk to you, for example through how they are integrated or what data they receive.
  • Recent backups, especially if testing will be done in production.
  • Contacts and escalation phone number: a technical person reachable during the tests and another with decision-making authority, to stop or escalate if a critical flaw appears.

The sooner the better, and how we do it at QuantumSec

There is no universal preparation time: the sooner the accounts and the environment are available, the sooner the test starts. What usually takes longest is creating accounts per role and confirming the environment, so it is worth requesting them on day one.

If you want to see how we organize this in a project with us, it is in how to work with QuantumSec. And if you are still choosing a provider, the guide on how to hire a pentest helps you compare proposals. To get started with your specific case, contact us.

FAQ

Which documents are signed before a pentest starts?

Three: an NDA, a contract with the scope and the express authorization to attack the systems, and the rules of engagement, with responsible people, schedules, phone numbers and excluded tests. Without the signed authorization no test is launched, because attacking a system without permission is a crime.

What data do I have to provide to the pentester?

The application's roles and one test account for each, the environments and URLs, the exposed services and IPs, an estimate of the number of features, and the contacts and time windows. The pentest scoping form brings these questions together in order and takes a few minutes to fill in.

Do I have to disable the WAF during the pentest?

Not necessarily. There are two options: test with the WAF active, to measure whether it detects and blocks, or put the pentester's IPs on an allow list to assess the application in depth. What matters is deciding it beforehand in writing, because each option measures something different.

What happens with third-party services during a pentest?

They are not attacked: they are not yours and you cannot authorize tests on them. What is assessed is the risk they pose to you, for example how they integrate with your application and what data they receive. If a provider has its own testing policy, it must be respected.

How far in advance should everything be prepared?

There is no fixed deadline: the sooner the test accounts and the environment are available, the sooner the test starts. What delays things most is usually creating accounts per role and confirming the environment, so it is worth requesting them from day one. The rest of the checklist can be prepared in parallel.

Related service

penetration testing for companies

Related content

Sources

Prepare your pentest with us