MongooseWeb

File

Edit

View

History

Bookmarks

Profiles

Tabs

Window

Help

Mon 15 Oct

13:37

How to Prepare for a Penetration Test: A UK Checklist

Introduction

Knowing how to prepare for a penetration test is the difference between a test that proves something and a test that burns budget. Most of the value is decided before the first packet is sent: what you ask the testers to prove, what is in scope, what they are allowed to do, and whether your systems and people are ready on day one.

Consider a hypothetical example. A five-day internal test starts on a Monday. The testers' VPN accounts have not been created, the firewall team has not been told, and nobody can confirm whether the payroll system is in scope. By Wednesday the team is testing, but two days have gone on admin, and the report carries a long list of limitations. Nothing was technically wrong with the testing. The preparation let it down.

This article explains how to prepare for a penetration test in practical steps: setting objectives, scoping, choosing black box, grey box or white box testing, putting authorisation and rules of engagement in writing, getting your environment and people ready, and planning for the results. It ends with a penetration test preparation checklist you can use for your next engagement.

Why preparation decides the value of a penetration test

The National Cyber Security Centre (NCSC) describes penetration testing in its penetration testing guidance as a powerful but expensive operation, and as "a method for gaining assurance in your organisation's vulnerability assessment and management processes". It also says that, in an ideal world, "you should know what the penetration testers are going to find, before they find it".

That framing has a direct consequence for preparation. A test is time-boxed, usually priced in resource days. Every hour the testers spend waiting for access, chasing approvals or testing the wrong system is an hour not spent finding the attack paths that matter. Good preparation turns a fixed budget into maximum coverage, and it produces a report your board, auditors and insurers can rely on.

Step 1: Decide what the penetration test needs to prove

Start with the question, not the target list. Different objectives lead to very different tests:

  • Assurance for a customer or contract. You may need evidence that a specific platform or service has been tested to a recognised standard.
  • Compliance. Standards such as PCI DSS set specific penetration testing requirements. Our post on PCI DSS penetration testing under Requirement 11.4 covers these in detail.
  • A significant change. A new internet-facing application, a cloud migration or a new remote access solution. Our guide to how often you should do a penetration test explains which changes should trigger a test.
  • A specific scenario. The NCSC lists scenario-driven testing such as a lost laptop, an unauthorised device connected to the internal network or a compromised DMZ host, and suggests choosing scenarios based on previous incidents.
  • Checking your own processes. Confirming that your vulnerability management, patching and hardening are working as well as your internal reports say.

Write the objective down in one or two sentences. It will shape every decision that follows, and it gives the testers a clear target for the report.

Step 2: Scope the penetration test properly

Get the right people in the room

The NCSC says scoping should involve all relevant risk owners, technical staff who know the target system, and a representative of the penetration test team. Risk owners explain what worries them. Technical staff define the boundaries of the estate. The testers explain what testing will give a full picture. Leave any one of them out and the scope will have gaps.

If you have a current vulnerability assessment, share it. The NCSC recommends doing this at the scoping stage so that testing can support an opinion on how accurate and complete your internal assessment is.

Agree a written scope

According to the NCSC, the output of scoping should be a document that states:

  • The technical boundaries of the test: IP ranges, hostnames, applications, APIs, cloud accounts and sites.
  • The types of test expected, for example external network testing, internal network testing (including wireless, where relevant) or web application and API testing.
  • The timeframe and effort, usually in resource days.
  • Any scenarios or use cases to be tested.
  • The testing team's requirements, such as test accounts or desk space, so you can prepare before the start date.
  • Compliance or legislative requirements the testing must meet.
  • Reporting requirements, such as CVSS scores.
  • Time constraints on testing or reporting.

Be explicit about what is out of scope, and why. "Out of scope" should be a deliberate risk decision, not a way of keeping awkward systems out of the report. The NCSC notes that if testers discover systems outside scope that affect in-scope systems, the choice is either to change the scope or to record the exclusion as a limitation. That decision sits with the risk owner, so decide in advance who that is.

If you are unsure whether you need an internal test, an external test or both, our article on internal vs external penetration testing sets out the differences.

Check third-party, cloud and SaaS systems

You can only authorise testing of systems you own or control. Hosted services, managed service providers and SaaS platforms often need their own permission, or have their own rules.

The major cloud providers publish these rules. AWS's penetration testing policy allows customers to test their AWS infrastructure without prior approval for a listed set of permitted services, prohibits denial of service testing outside its separate DDoS simulation policy, and requires prior approval for testing that includes command and control. Microsoft's Security Testing Rules of Engagement apply equally to the resource owner and to "their duly authorized agents, such as third-party security consultancies", prohibit denial of service testing, and require testing to stay within your own tenant or assets you are explicitly authorised to test.

Before you scope a cloud security assessment, list which provider hosts each in-scope asset and confirm the relevant policy. For anything run by a supplier, get their written agreement or record it as out of scope.

Step 3: Choose black box, grey box or white box testing

How much the testers know at the start changes what the test can tell you. The NCSC describes two ends of the spectrum:

  • Transparent or open box (white box) testing. Full information is shared with the testers. The NCSC says this confirms how effective your internal vulnerability assessment and management controls are.
  • Opaque or closed box (black box) testing. No internal information is shared. The NCSC says this more accurately models an attacker unknown to your organisation, but warns that the lack of information "can also result in vulnerabilities remaining undiscovered in the time allocated for testing".

Grey box testing sits in between. Testers receive some information, such as user-level credentials, architecture diagrams or API documentation, so they spend their time testing rather than rediscovering what you already know.

For most commercial engagements we recommend a grey or white box approach. Attackers have unlimited time to research your organisation. Your testers have a fixed number of days. Giving them context makes the most of that time and gives you deeper findings. Black box testing still has a place when the specific question is "what can an outsider see and do with no inside knowledge?"

Step 4: Put authorisation and rules of engagement in writing

Written authorisation

Penetration testing involves deliberately attempting to access systems. Under section 1 of the Computer Misuse Act 1990, a person commits an offence if they cause a computer to perform any function intending to secure access that is unauthorised, knowing it is unauthorised. Clear, written authorisation from someone with the authority to give it is what separates a penetration test from an attack.

The authorisation should name the organisation commissioning the test, the testing company, the scope, the testing window and the person signing. If systems are owned by a parent company, a subsidiary or a supplier, make sure the signatory can actually authorise testing of them.

Rules of engagement

NIST's SP 800-115, Technical Guide to Information Security Testing and Assessment, explains that rules of engagement provide authorisation for testers to carry out activities that would normally be prohibited by an organisation's policies, and includes a rules of engagement template in Appendix B. It also recommends planning for what happens if testers discover a real intruder: should testing stop, and if so, when can it restart and on whose authority?

Your rules of engagement should cover at least:

  • Testing windows. Business hours, out of hours, or both. The NCSC notes you should flag any need for out-of-hours testing during scoping.
  • Fragile and critical systems. Systems that need special handling, and any techniques that are not permitted against them.
  • Prohibited activities. Denial of service is a common exclusion, and is prohibited outright by some cloud providers' policies.
  • Points of contact. Named people on both sides, with phone numbers, available at short notice.
  • Emergency stop. Who can halt testing, how, and how quickly.
  • Critical finding escalation. How the testers will tell you immediately about a serious issue, rather than waiting for the report.
  • Incident handling. What happens if testers find evidence of a real compromise.

Data handling

Testers may encounter personal data during an engagement. Agree how evidence is captured, stored, transferred and deleted. Where a testing company processes personal data on your behalf, the Information Commissioner's Office explains that UK GDPR Article 28 requires a contract with specific minimum terms, including processing only on your documented instructions, confidentiality and appropriate security measures. See the ICO's guidance on what needs to be included in the contract.

Step 5: Prepare your environment and your people

Access and accounts

Create test accounts at each permission level the testers need, such as a standard user, a privileged user and, for applications, users in different tenants or roles. Confirm VPN access, network ports, jump hosts or on-site desk space. Test all of it before day one. Access problems are the most avoidable cause of lost testing time.

Decide what to tell your security team

Decide deliberately whether your security operations team or managed detection provider will be told about the test. If the goal is to find vulnerabilities efficiently, tell them, and agree how they should treat test traffic. If the goal is to see whether they detect and respond, that is closer to a red team exercise, which we explain in Red Teaming: What Penetration Tests Can't Tell You. Either way, someone senior must know, so a genuine alert is not escalated as a real incident by mistake.

Allow-listing

For many infrastructure and application tests, temporarily allow-listing the testers' source IP addresses in tools such as a web application firewall lets them assess the application itself rather than the protective layer in front of it. Whether to do this depends on your objective. Agree it during scoping and record it in the report.

Stability and recovery

The NCSC is clear that testers should avoid undue impact, but that "it's impossible to guarantee that no unexpected reactions to testing will occur". Confirm that backups of in-scope systems are recent and that you can restore them. Avoid scheduling major changes or releases during the testing window, so that any instability can be traced quickly.

Do not hide the problems

It can be tempting to run a last-minute patching sprint before the testers arrive. Normal patching should, of course, continue. But a rushed clean-up for the test gives a flattering picture of a single week, not of how your processes perform the rest of the year. The NCSC's view is that a test should verify what you already expect to find. Let it.

Brief the people who need to know

Tell the service desk, system owners and any on-site reception or facilities staff who need to know, especially for on-site testing. If the engagement includes physical penetration testing or social engineering, agree in advance who may and may not be told, and provide testers with a signed authorisation letter to carry.

Step 6: Plan how you will handle the results

Preparation includes the end of the engagement. Before testing starts:

  • Book the debrief. The NCSC notes that a debrief lets you run through findings and ask for clarification. Put it in the diary now.
  • Name remediation owners. Know who will own fixes for infrastructure, applications and cloud configuration.
  • Agree the reporting format. Make sure the report will work for both technical teams and leadership.
  • Plan the retest. Every Mongoose engagement includes a complimentary retest within 90 days of the initial report. Leave time for remediation before any audit or contract deadline.

Our guide You Have Your Penetration Test Report. Now What? covers what to do once the report arrives.

Penetration test preparation checklist

Use this as a starting point and adapt it to your environment.

Two to four weeks before testing

  • Objective agreed and written down in one or two sentences.
  • Scope document signed off with technical boundaries, test types, effort, scenarios and reporting requirements.
  • Out-of-scope items recorded with the reason and the risk owner.
  • Third-party and cloud permissions confirmed for every in-scope asset not wholly owned by you.
  • Test basis chosen: black box, grey box or white box.
  • Written authorisation signed by someone with the authority to give it.
  • Rules of engagement agreed, including testing windows, prohibited activities, emergency stop and escalation.
  • Data handling terms agreed for any personal data testers may encounter.

One week before testing

  • Test accounts created at each required permission level, and verified.
  • Remote or on-site access tested, including VPN, firewall rules and desk space.
  • Security team decision made on whether they are informed, and senior awareness confirmed.
  • Allow-listing decision made and implemented if agreed.
  • Backups confirmed for in-scope systems, and major changes scheduled away from the testing window.
  • Points of contact confirmed on both sides, with phone numbers.

After testing

  • Debrief booked.
  • Remediation owners named.
  • Retest scheduled within 90 days.

Common mistakes that undermine a penetration test

  • Scoping by budget alone. Cutting days without cutting scope means shallower testing across the board. Prioritise the systems that matter most instead.
  • Excluding the systems that worry you most. Legacy and fragile systems can usually be tested safely with the right rules of engagement. Excluding them leaves the biggest risks unexamined.
  • Forgetting suppliers. Assets run by third parties are easy to miss until the testers try to reach them.
  • Treating the test as a pass or fail exam. The aim is to improve your security, not to get a clean report.

FAQ: preparing for a penetration test

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

It depends on the size and complexity of the scope. Allow enough time for scoping, sign-off of the authorisation and rules of engagement, third-party permissions and account creation. Third-party approvals are often the slowest part, so start them first.

Should we tell our IT team about the penetration test?

Usually, yes. The people who manage the in-scope systems need to know so they can provide access and respond to problems. Whether you tell your security monitoring team depends on whether you are testing vulnerabilities or detection and response. In every case, someone senior should know.

Should we patch everything before a penetration test?

Keep your normal patching cycle running, but avoid a rushed clean-up just for the test. The NCSC sees penetration testing as a way to check your vulnerability management processes. A test of an artificially tidy environment tells you less about your real risk.

Do we need permission from our cloud provider?

Check the provider's policy. AWS allows testing of its listed permitted services without prior approval, with restrictions such as no denial of service testing. Microsoft requires testing to follow its Rules of Engagement and stay within your own tenant or authorised assets. SaaS suppliers may have separate terms.

Can a penetration test affect live systems?

It can. Experienced testers work to minimise impact, but the NCSC says no one can guarantee that unexpected reactions will not occur. Clear rules of engagement, agreed testing windows, recent backups and a named point of contact keep that risk managed.

What is the difference between black box, grey box and white box testing?

Black box testers start with no internal information, white box testers have full information, and grey box sits in between, often with user credentials and documentation. Grey or white box usually gives deeper coverage in a fixed number of days.

Key Takeaways

  1. Start with the objective. Know what the test must prove before you decide what to test.
  2. Scope with the right people. Risk owners, technical staff and testers together, with a written scope document.
  3. Confirm you can authorise everything in scope. Cloud providers and suppliers have their own rules.
  4. Give testers context. Grey or white box testing makes the most of a fixed number of days.
  5. Put it in writing. Authorisation, rules of engagement and data handling, before testing starts.
  6. Make day one count. Accounts, access and allow-listing ready and tested in advance.
  7. Test reality, not a tidy-up. Keep normal processes running and let the test show how they perform.
  8. Plan for the results. Debrief, remediation owners and a retest within 90 days.

Conclusion

Learning how to prepare for a penetration test is one of the cheapest ways to get more from your security budget. Most of the work is organisational: a clear objective, a written scope, proper authorisation and an environment that is ready when the testers arrive.

Do that, and the testers can spend their time where it counts: finding the attack paths that matter to your organisation and giving you evidence you can act on.

As a CREST-accredited penetration testing company, Mongoose Cyber Security helps clients through every stage, from the first scoping call to the retest. Contact our team today for a no-obligation scoping call, and we will help you prepare a test that produces evidence, not excuses.

Sources

Cobras strike without warning. The mongoose strikes with intent.
‍
Don’t sit back and wait for the bite, it’s time to take the fight to the cobra.

Ready to flip the script? Let’s begin the hunt.

Request a confidential Consultation