Skip to content

How to prepare for a penetration test: a practical checklist

How to prepare for a penetration test: agree the scope, gather accounts and documentation, set rules of engagement, and plan the time to fix and retest what is found.

Axrok Team8 min read

The quality of a penetration test is decided before the first request is sent. Testers can only examine the systems you put in scope, with the access and information you give them, in the window you agree. Preparation is not paperwork for its own sake. It is how you avoid paying for a narrow test that misses the systems you actually needed examined.

NIST SP 800-115 treats planning as a phase of its own: you identify the systems, the rules, the data handling, and the way findings will be reported before testing starts. The checklist below follows that idea in practical terms for a founder, a security lead, or an engineering manager about to commission a test.

Key takeaways

  • Write down the objective, the systems in scope, and the systems out of scope before you ask for quotes.
  • Testers need accounts, roles, documentation, and a technical point of contact. A test without those often becomes a shallow scan of the login page.
  • Agree the rules of engagement in writing: windows, forbidden techniques, emergency contacts, and how critical findings will be escalated during the test.
  • Budget engineering time to fix findings, and book the retest when you book the test.
  • If the test is for an audit period, schedule it early enough for treatment and retest to fall inside that period.

Start with the question the test should answer

A useful engagement has one primary question. Examples:

  • What can an unauthenticated attacker do against our internet-facing product?
  • Can one customer reach another customer's data through the API?
  • Are the controls in our SOC 2 or ISO 27001 boundary actually holding?
  • After this cloud migration, what is now exposed?

If you cannot state the question, you are not ready to compare quotes. Two firms will bid on different work and you will not be able to tell why the prices differ. For published price ranges and what drives a quote, see penetration testing cost in 2026.

The question also decides the perspective: external attacker, authenticated user, administrator, or someone with a foothold inside the network. Each finds different problems. You can include more than one perspective, but you should name them.

Write a scope that a tester can actually use

A good scope document is short and specific. It usually includes:

  • The applications, APIs, hosts, and cloud accounts in scope, with URLs and account identifiers
  • The environments to be tested (production, staging, or both) and why
  • User roles to be tested, including at least two customer roles for a multi-tenant product
  • What is out of scope, and why
  • Any third-party services that must not be attacked, such as a payments provider or an identity platform you do not own
  • Known constraints: rate limits, change freezes, peak traffic hours, or data that cannot be used in testing

NIST SP 800-115 emphasizes that the rules of engagement and the scope should be agreed with management before testing. If a system you care about is missing from that list, it will not appear in the results.

For a SOC 2 Type 2 audit, map the scope to the trust services boundary and the audit period, not to a generic "web app pentest" label. See SOC 2 Type 2 penetration testing scope. For ISO 27001, start with does ISO 27001 require penetration testing.

Give the testers the access and documents they need

Most serious findings in a SaaS product come from authenticated testing: broken access control, object-level authorization flaws, and business logic issues. The OWASP Top 10:2025 puts Broken Access Control first. The OWASP API Security Top 10 (2023) puts Broken Object Level Authorization first. Testers cannot examine those problems if they have no accounts.

Prepare, before the start date:

  • Test accounts for each in-scope role, clearly labelled, with enough data to exercise normal workflows
  • A second tenant or second organization account, so testers can check whether one customer can reach another customer's records
  • API documentation, a Postman collection, or an OpenAPI file, even if it is incomplete
  • A current list of in-scope hostnames and environments
  • Any staging caveats (missing features, sanitised data, or feature flags that differ from production)
  • A technical contact who can reset accounts, explain odd behaviour, and pause a test if something breaks

If you can only offer production, say so and agree tighter rules. If you can offer staging, be honest about how closely it matches production. A perfect looking test of an incomplete staging site can miss the issues that exist only in production.

Agree the rules of engagement in writing

The rules of engagement are the safety net for both sides. At a minimum, agree:

  • Test windows and time zones
  • Whether denial-of-service testing, social engineering, or physical testing is allowed (usually they are not, unless you asked for them)
  • How credentials and reports will be handled
  • Emergency contacts on both sides, including an out-of-hours path if production is in scope
  • How a critical finding will be reported during the test, not only at the end
  • What happens if the testers cause an unexpected outage

Write this down and have someone who owns the product sign it. Informal chat in email is how a test gets paused halfway through because a reviewer was not told it was happening.

Decide what to fix before the test, and what to leave

It is reasonable to fix known, trivial breakage that would waste test time: a staging environment that cannot log in, a documented outage, or a feature flag that hides the product under test.

It is not useful to spend the week before the test rushing through a scanner report so the testers "find less." If a scanner already opened a ticket, either fix it properly or leave it and tell the testers it is known. A last-minute patch that is not retested by your own team can still be exploitable, and you will have spent the preparation window on the wrong work.

Do tell the testers about findings you already know and have accepted, so they do not spend days rediscovering a risk you have already documented. They can then spend that time on paths you have not examined.

Plan the work that comes after the test

A penetration test that nobody has time to remediate becomes a document in a folder. Before the start date:

  • Name an internal owner for incoming findings
  • Reserve engineering time in the two to four weeks after delivery
  • Ask how many retests are included, and by when they must be requested
  • If an audit is involved, place the test early enough that fixes and a retest can fall inside the period

PCI DSS v4.0.1 is one framework that makes the cadence explicit. Requirement 11.4.2 requires internal penetration testing at least once every 12 months and after any significant infrastructure or application upgrade or change, performed per the entity's defined methodology by a qualified tester with organizational independence (PCI DSS v4.0.1, as reproduced by PCI Compliance Hub). External testing is required on a similar cadence. Even if you are not in scope for PCI DSS, the "after a significant change" idea is a sound trigger for a new test.

When the report arrives, use what a penetration test report includes as a reading guide, and keep the letter of attestation in mind for customer requests that do not need the full findings list.

A short preparation checklist

  • Objective and success criteria are written down
  • In-scope and out-of-scope systems are listed, with URLs and account identifiers
  • Environments and roles are agreed, including a second tenant where relevant
  • Test accounts and documentation are ready
  • Rules of engagement, contacts, and escalation path are signed
  • Engineering time for remediation is reserved
  • A retest is booked or clearly priced
  • Audit dates, if any, are on the same calendar

If you can tick those items, the testers can spend the engagement testing, not waiting for logins.

FAQ

How long does it take to prepare for a penetration test?

For a single web application and API, a week is often enough to gather accounts, documentation, and a written scope, if the environment already exists. Larger scopes, production-only testing, or audit-driven work can take longer because more people have to agree the rules.

Should we test staging or production?

Either can be valid. Staging is safer, but only if it closely matches production. Production is more realistic, and it needs tighter windows, clearer escalation, and more care with customer data. Many teams test staging thoroughly and add a narrower production check for the issues that only appear there.

Do we need to tell the testers about known issues?

Yes, if you have already accepted or ticketed them. It saves test time and leads to a clearer report. You do not need to "clean" the environment of every scanner finding before the start date.

What if we are not ready by the start date?

Say so early. A test that starts without accounts or a stable environment wastes the window. It is better to move the dates than to receive a report that only covers an unauthenticated login page.

How do we prepare if the test is for SOC 2 or ISO 27001?

Map the scope to the audit boundary, and place the test early enough in the period to fix findings and retest. Confirm the timing your auditor expects before you book the work.

Talk it through

If you are preparing for a test and want a second view on scope, access, or timing, we are happy to talk it through. Book a free 15-minute call through our contact page or email zayan@axrok.com, and we can help you see whether a penetration test fits your situation right now.

Sources

  • penetration testing
  • Security strategy

Want this looked at in your environment?

Book a free 15-minute call. A founder reads every enquiry and replies personally.