# Before the penetration test: scope, authorisation and ownership

> Before a penetration test starts, the scope, test window, contacts and authorisation must be agreed in writing. We explain what the agreement should say, and why.

Source: https://fmcybersecurity.com/en/insights/appsec/pentest-scope-and-authorisation/
Locale: English
Other locale: https://fmcybersecurity.com/innsikt/applikasjonssikkerhet/omfang-og-fullmakt-for-penetrasjonstest/

## Metadata

- Date: 2026-12-01
- Author: fredrik-standahl
- Topic: appsec
- Format: article

**In brief:** You have decided to commission a penetration test, and the provider asks for a scope and an authorisation before anything can start. What the agreement says decides both what the report will answer and whether the test is lawful. This article explains what must be agreed in writing, why written authority matters under Norwegian law, and how ownership is confirmed before we begin.

## What must be agreed before a penetration test starts?

Six things need to be in writing before the test starts: which systems are tested, what is left out, when the test runs, who the contacts are, whether the testers may exploit what they find, and who has given the authorisation. If one of them is missing, neither side can be sure what was agreed.

The UK National Cyber Security Centre (NCSC) describes the result of a scoping exercise in its [penetration testing guidance](https://www.ncsc.gov.uk/guidance/penetration-testing). It is a document that states, among other things, the technical boundaries of the test, the types of test expected, the timeframe and effort, and any compliance or legislative requirements the testing must meet.

The NCSC recommends that the risk owners, the people who know the system technically and a representative of the test team all take part in scoping. That way both the business need and the technical constraints are known before the agreement is written.

## Which systems are in scope, and what is left out?

The scope should name every system to be tested, with its domains, IP addresses, applications and environments. It should also state explicitly what is excluded. The list of exclusions matters as much as the list of targets.

Start from the requirement the test is meant to meet. A test that will be shown to an auditor or a customer has to cover the systems the requirement applies to. Our article on [which rules require recurring penetration testing](/en/insights/appsec/which-regulations-require-recurring-pentests/) sets out what the most common frameworks ask for.

Write down the practical points as well:

- whether the test runs against production or a test environment
- which user accounts and roles the testers are given
- systems that cope badly with automated testing, such as legacy platforms
- data the testers must not open or extract, such as health records or payment data

The size of the scope is also the main factor in how large the engagement becomes. We cover that in our article on [what decides the cost of a penetration test](/en/insights/appsec/what-decides-the-cost-of-a-pentest/).

## Should the test stop at discovery or continue to exploitation?

The agreement must say whether the testers only find and validate weaknesses, or whether they also try to exploit them. The choice is yours, and it decides how much risk the test carries for your systems.

We deliver penetration tests in two forms. In a discovery test we find and validate weaknesses without exploiting them. Nothing is used against your systems, so production is not put at risk.

In a full test we also try to exploit what we find, to show how far an attacker could have got. We do that only by written agreement, within the agreed scope and the agreed test window.

Many customers start with discovery and add exploitation where it matters most. The difference between the two forms is explained in our article on [penetration testing with or without exploitation](/en/insights/appsec/pentest-with-or-without-exploitation/).

## Why must the authorisation be in writing?

The authorisation is what separates an agreed test from a break-in. It has to come from someone with the right to have the system tested, and it has to be something you can produce afterwards.

In Norway, [section 204 of the Penal Code](https://lovdata.no/lov/2005-05-20-28/§204) makes it an offence to gain access to a computer system, or part of one, by breaching a protection or by another unauthorised method. The penalty is a fine or imprisonment for up to two years.

A penetration test consists precisely of trying to get past the protection. The written authorisation shows that the access was agreed with the owner of the system, and where the limits are. That is why we only test systems you own or have the right to have tested.

The authorisation should be signed by someone who can bind the organisation. It should refer to the scope and the test window, so that nobody is in doubt about what it covers.

## What applies to systems at cloud providers and other third parties?

You can only authorise testing of what you control yourself. If the system sits with a cloud provider, a hosting partner or a SaaS vendor, their rules apply in addition to your agreement with the testers.

The large cloud providers publish their rules. [AWS](https://aws.amazon.com/security/penetration-testing/) lets customers test a list of named services without prior approval. Denial-of-service attacks and port, protocol and request flooding are prohibited, and testing that uses command-and-control infrastructure needs approval in advance.

[Microsoft](https://www.microsoft.com/en-us/msrc/pentest-rules-of-engagement) requires testing to stay within your own tenant or assets you have explicit authorisation to test. Distributed denial-of-service attacks are prohibited under all circumstances.

Read your provider's rules before the scope is set, and check the operations contract if a partner runs the system for you. Systems owned by another organisation need that organisation's permission.

## Who needs to know about the test, and when should it run?

The agreement should name one contact on your side and one on the testers' side, and it should say when the test runs. The testers then know whom to call about a critical finding, and you know who can stop the test.

Settle these points:

- **Test window:** The dates and hours, and whether the test runs inside or outside working hours.
- **Alerts during the test:** Who is told about critical findings, and how quickly.
- **Stopping the test:** Who on your side can ask for the test to be halted, and how.
- **Monitoring:** Whether the people who monitor your systems should know about the test in advance.
- **Real intrusions:** What the testers do if they find traces of another attacker.

The last point is often forgotten. Decide in advance who is to be alerted if it happens, so that the discovery can be handled as an incident.

## How do you prove ownership in FM CyberTools?

In FM CyberTools you prove that you own the domains with a DNS record and sign the scope before anything runs. Only then can a scan be started.

FM CyberTools is our own set of tools, which we are launching now. The first is an external attack surface scan, covering what your organisation exposes to the internet. It uses passive sources and light checks, with no exploitation, no login attempts and no brute force.

The requests are rate-limited and identify themselves as FM CyberTools, so your operations staff can recognise the traffic in their logs. What the scan finds is described in our article on [the external attack surface](/en/insights/appsec/what-is-an-external-attack-surface/).

The same principle applies in the penetration test itself. Our consultants set the scope and steer the AI tools ARTEX and HexStrike AI by hand, and the AI agents never run unsupervised. We describe the tools in [FM CyberSecurity works with ARTEX and HexStrike AI](/en/insights/ai-security/fm-cybersecurity-works-with-artex-and-hexstrike-ai/).

## Who can you contact?

Fredrik Standahl leads our penetration tests, together with Christian Vik and Kenny Le. They can help you set the scope, write the authorisation and establish what your cloud provider permits.

The size of the engagement depends on how many systems are to be tested, how complex they are and whether the test includes exploitation. We settle that in a conversation before we make an offer.

Read more about our [penetration testing](/en/services/pentest/) service, or [get in touch](/en/contact/) and we will go through the scope with you.

---

For the full documentation index, see https://fmcybersecurity.com/llms.txt
For the complete corpus as a single document, see https://fmcybersecurity.com/llms-full.txt
