QA Interview Hub · Knowledge base · Quizzes · Українська

Penetration Testing › Pentest basics

Scope in practice: a signature exists but the boundaries are unclear

A signed contract is not yet a scope: permission comes from whoever is responsible for the asset. The contract covers only what the client has the right to authorise. Before starting, establish who owns each host, domain or building and who else may react to the test (guards, SOC, provider). On-site testing needs an authorization letter with names, dates, addresses and a contact who can confirm it.

Pentest · Basics

You hold a signed contract for a test. May you enter any facility the contract mentions?

In September 2019 two specialists of the company Coalfire were detained at night in a courthouse in Dallas County, Iowa. They were doing a physical security test under a contract with the state judicial branch. The county sheriff said the county was responsible for the building and that they had gone beyond the contract. The charges were later dropped, and state judicial branch officials said they had not expected physical testing outside business hours. But the arrest and the legal process had already happened. This lesson is about why a "signed paper" is not yet a scope.

Mechanism: permission comes from whoever is responsible for the asset. A contract is valid only for what the customer has the right to dispose of. If the asset belongs to another party (a county, a cloud provider, a SaaS, a partner), the customer's signature does not cover it. So before the start three things are checked:

  • Who owns each host, domain and building on the list (domain registries, contracts, cloud accounts);
  • Who else may react to the test: security guards, police, the SOC, the provider. They must know or be on the exclusion list;
  • How to prove permission on site: an authorization letter with the testers' names, dates, addresses and the phone number of a person who can confirm it.

Who signed what

The contract was signed bythe state judicial branchTest objecta courthouse in the countyResponsible for the buildingcounty and sheriff: not in the contractgap between signer and owner = scope dispute
Figure 1. Permission must come from whoever is truly responsible for the asset, not only from whoever signed the contract.

Example: a vague clause and a precise one. The same clause before and after clarification.

A scope clause in a contract

Typical

"The security of the customer's building is tested"

No addresses, no doors, no word on night work or who is informed. Everyone reads it their own way.

Better

A list of addresses, a time window, allowed actions, contacts

A written confirmation from every owner, an emergency phone and a rule: if guards or police stop the tester, the test stops.

Figure 2. The same clause before and after clarification.

Limits and alternatives. Even a perfect letter does not guarantee that a patrol or a guard will read it. That is why physical tests agree on a duty contact who confirms the permission by phone. Online tests work the same way: the client warns its SOC and hosting provider if their rules require it. Some cloud providers publish their own testing policies: these are read separately from the contract.

Common mistakes:

  • treating one person's signature as permission for everything that "looks like the client": the asset may belong to another party;
  • having no letter and no confirmation contact on hand: the on-site test ends with the police;
  • leaving third-party things off the exclusion list: SaaS, the payment gateway, partners' data;
  • extending the scope verbally "since we are here": a written change can be shown, words cannot.

Check yourself

The contract is signed by the CEO, but a server on the list runs in a partner's cloud account. What do you do before the test?

Answer

Ask for written confirmation from the account owner, or exclude the server from the scope. The CEO's signature does not give the right to touch someone else's asset.

Guards stop you during a test. Which documents should you have at hand?

Answer

An authorization letter with names, dates and addresses, and the phone number of an authorized person who will confirm the test. Without the second item the letter proves little.

In an interview. Junior: I do not start without written authorization and a clear scope, and if I step outside it I stop and notify the contact person. Middle/Senior: I separately check who owns each asset: the customer's signature does not cover someone else's. In the Coalfire case in Iowa the contract was with the state while the county was responsible for the building, so physical tests need agreed on-site contacts and an authorization letter.

More articles in this chapter