An authorization letter for a penetration test (a time-boxed attempt by a skilled tester to find and exploit weaknesses within an agreed scope) is the client's written consent, signed by someone entitled to give it, that fixes what an external tester may touch, when, from where and when to stop. Polish law punishes access to an information system without authorization with a fine, restriction of liberty or up to 2 years of imprisonment ev-content-authz-001confidence A, and UK law treats access as unauthorized when the person is not entitled to control that kind of access and lacks consent from someone who is ev-content-authz-006confidence A. The letter records that consent, so each scope line has legal weight as well as project weight.
On this page
This article gives the structure of the letter as a checklist a buyer can turn into a template, and explains which lines matter most when the testers work for a vendor in Poland. It contains no test techniques. It is not legal advice: the buyer's counsel should review the final letter against the law where the testers act and where the systems run. The security testing page lists ranked vendors with a security testing service page, and the contracts and data guide covers the services contract around it.
Which laws make the letter necessary when testers sit in Poland
Polish criminal law can apply to a test run from a Polish office, whatever country the target systems are in. The Criminal Code applies to an act committed on Polish territory, and treats the act as committed where the perpetrator acted or where its effect occurred ev-content-authz-005confidence A. A team in Krakow testing a London platform therefore falls within the reach of the Polish Criminal Code. The buyer's counsel should also check the law where the systems and the data sit; the UK and US texts below are two examples.
Four Polish provisions shape the letter. Article 267 section 2 covers access to the whole or part of an information system "bez uprawnienia" (without authorization), and the offense is prosecuted on the motion of the injured party ev-content-authz-001confidence A. Article 269a covers significant disruption of a system without authorization and carries 3 months to 5 years of imprisonment ev-content-authz-004confidence A. That is why the letter has to say in writing whether tests that can affect availability are allowed.
Two exemptions exist, and both are narrow. Article 269b section 1a removes the offense of producing, obtaining, selling or making available devices, programs, passwords or access codes adapted to listed offenses, for a person acting solely to secure a system against those offenses or to develop a method of doing so ev-content-authz-002confidence A. Article 269c exempts access and disruption from punishment only when the person acted solely to secure the system, notified its owner immediately, harmed no public or private interest and caused no damage ev-content-authz-003confidence A. A buyer should not plan a test around these exemptions. The letter exists so that the access is authorized from the first request. Whether a given letter removes liability is a question for counsel: the letter is evidence of consent, and consent from a party that does not own a system does not cover third-party systems. Section 3 of the template collects those consents.
UK and US law put the weight on who consents and how far the consent reaches. Under the Computer Misuse Act 1990, access is unauthorized when the person is not entitled to control access of that kind and lacks consent from someone who is ev-content-authz-006confidence A. The US federal statute covers a person who intentionally accesses a computer without authorization or "exceeds authorized access" and thereby obtains listed information ev-content-authz-007confidence B. Exceeding authorized access means using authorized access to obtain or alter information the person is not entitled to obtain or alter ev-content-authz-007confidence B. Under either text, a vague scope line leaves room for a dispute about whether a specific request was covered.
Template structure: the sixteen sections of an authorization letter
The checklist below is the template skeleton. Each item names a section and what it must contain for a test bought from an external QA (quality assurance, here software testing) or security vendor. Several items use network terms: an IP address (the numeric address that identifies a machine on a network), a VPN (virtual private network, an encrypted tunnel into the client's network) account and an API (application programming interface, the layer other software calls) base path.
The terms behind the remaining items are defined here. The letter belongs to a statement of work (the contract document that fixes scope, dates and deliverables for one engagement). Third-party consent can involve an identity provider (the system that holds user accounts and grants sign-in) or a content delivery network (servers run by a provider that serve a site's content from many locations). Test accounts can belong to a tenant (one customer's separate space inside a shared system). The exclusions name denial-of-service (overloading a system so that it stops serving users) tests and social engineering (deceiving people into giving access or information).
Sections 1 to 3 establish consent, sections 4 to 9 fix the scope, and sections 10 to 16 govern conduct, data and the end of the test.
- 1. Parties: the client legal entity that owns or controls the systems, the vendor legal entity that employs or contracts the testers, and the statement of work or order the letter belongs to, by number and date.
- 2. Signatory authority: the name, role and signature of a person entitled to control access to every in-scope system, plus the internal delegation document where the signer is not the system owner.
- 3. Third-party consents: each cloud host, software-as-a-service provider, payment processor, identity provider or content delivery network in the path, with its written consent or the link and date of the published testing policy relied on.
- 4. In-scope systems: application names, environments (staging, pre-production, production), hostnames, IP ranges, mobile app build numbers and API base paths, written as a closed list.
- 5. Out-of-scope systems: named systems that share infrastructure with the in-scope ones, such as a shared login service, a payment page served by a third party or a corporate email domain.
- 6. Accounts and roles: the test accounts issued to the vendor, the user roles and tenants they represent, and whether testers may create further accounts during the test.
- 7. Permitted test types: for example authenticated web application testing, API testing or configuration review, named in the same words as the statement of work.
- 8. Excluded activities: anything that can affect availability or people, such as load or denial-of-service tests, social engineering of staff, physical entry and changes to production data, each marked excluded unless a later section allows it in writing.
- 9. Time window and source: start and end dates, daily hours with time zone (Polish time and the client's time if they differ), and the source IP addresses or VPN accounts the testers will use.
- 10. Named testers: full names of every person who will run tests, the vendor entity that employs or contracts each of them, and the rule that a new tester needs a written amendment.
- 11. Contacts and escalation: a technical contact on the client side reachable during every test hour, a vendor test lead, and an out-of-hours number for both.
- 12. Stop conditions: service degradation, signs of a prior compromise, access to personal data beyond the test accounts, or reaching a system not on the in-scope list; on any of them testing stops and the contact is called.
- 13. Critical finding notice: the severity that triggers notice before the report, the channel to use, and the number of hours within which the vendor gives notice.
- 14. Data handling: whether testers may view, copy or export any personal or production data, where evidence is stored, encrypted and by whom, and the reference to the data processing agreement where personal data can be reached.
- 15. Retention and deletion: how long the vendor keeps screenshots, logs, captured credentials and reports, and the written confirmation of deletion at the end.
- 16. Validity and revocation: the date the letter expires, the client's right to suspend or revoke it by notice to the vendor test lead, and the effect of revocation on work in progress.
The template follows the order in which a test is set up, not the order of a contract. It also tracks the scoping record that UK government guidance on penetration testing describes: technical boundaries, test types, timeframe and effort, the testers' requirements, compliance or legal requirements and reporting requirements ev-content-authz-010confidence A. A buyer that already writes that scoping record can lift sections 4 to 9 from it and add the consent, conduct and data sections around them.
Signatory and third-party consent: the two consent sections
A letter can be complete in every scope line and still fail at the signature. An engineering manager who requests the test may not be entitled to control access to a production database, a shared identity service or a payment page run by a provider. The UK test turns on consent from a person entitled to control access ev-content-authz-006confidence A, so the buyer should match the signatory to the system list before the letter goes to the vendor.
Hosted systems add a second owner. One large cloud provider lets customers test their own infrastructure on a list of permitted services without prior approval, requires approval for testing that includes command and control (the channel through which an attacker directs compromised systems), and forbids testing of the provider's own infrastructure ev-content-authz-008confidence A. The same policy excludes denial-of-service testing, asks for at least 2 weeks' notice for simulated events such as phishing or a red team (a group that simulates a real attacker against an organization) exercise, and requires vulnerabilities in its own tools or services to be reported within 24 hours of the test ending ev-content-authz-009confidence A. Section 3 of the letter should cite each such policy with the date it was read, and section 8 should not allow what the host forbids.
Scope lines that matter in outsourced testing
In an outsourced test, scope risk sits at the boundaries between the buyer's systems and everything around them. A QA vendor's testers often already hold staging credentials from functional work, so the letter has to say whether those accounts are in scope for security testing or must be replaced by dedicated test accounts. Mixing the two leaves no clean record of which actions belonged to the security test.
Environments need the same precision. A letter that says "the platform" covers nothing specific, while a letter that lists the staging hostname, the production API base path and the mobile build number can be checked against logs line by line. The time zone line matters when the testers work in Poland and the client's operations team works in another time zone, because a test window written in one zone is easy to misread in the other.
Findings outside the scope are the predictable exception. The NCSC (National Cyber Security Centre, the UK government's cybersecurity authority) guidance says that when testers find systems outside the scope that affect in-scope security, the scope can be changed or the exclusion recorded as a limitation, and that the decision generally rests with the risk owner ev-content-authz-011confidence A. The letter's stop condition (section 12) and an amendment form turn that guidance into a procedure: the testers stop, report, and wait for a signed change.
Contacts, stop conditions and data handling
A stop condition only works if someone answers the phone. The NCSC guidance expects a technical point of contact to be available at all times during the test phase ev-content-authz-011confidence A. Section 11 should therefore name a person and a deputy for every hour in the window, including the hours a Polish team works before or after the client's office day.
Data handling connects the letter to data protection law. When testers can reach personal data, the vendor normally acts as a processor (a party that processes personal data on behalf of another), or as a sub-processor where the client itself processes the data for its customers. GDPR (General Data Protection Regulation, the EU data protection law) Article 28(3) requires that processing to be governed by a contract that sets out the processor's obligations ev-market-reg-007confidence A. That contract must also require the processor to delete or return the personal data after the services end, at the choice of the controller (the party that decides why and how personal data is processed) ev-market-reg-013confidence A. The letter's sections 14 and 15 do not replace that contract; they point to it and add test-specific rules for screenshots, logs and captured credentials. The clauses themselves are covered in data processing agreement clauses for a QA vendor.
Some financial buyers have one more document to align: the services contract under DORA (Digital Operational Resilience Act, the EU regulation on digital operational risk at financial entities). Where the vendor's service is an information and communication technology service under DORA that supports critical or important functions, that contract must oblige the provider to participate and fully cooperate in the financial entity's threat-led penetration testing ev-market-reg-056confidence A. The duty matters for the entities required to run such tests, which DORA limits to certain financial entities ev-market-reg-051confidence A.
That cooperation duty sits in the services contract, while each test still needs its own letter. The regulatory side, including NIS2 (Directive (EU) 2022/2555 on a high common level of cybersecurity across the EU), is in the article on testing obligations for vendors. A vendor may also show an ISO 27001 (the international standard for information security management systems) certificate during selection; what that certificate covers is explained separately.