Notes
Why it matters
Almost every country has a law against accessing computers without authorisation: the Computer Fraud and Abuse Act in the United States, the Computer Misuse Act in the United Kingdom, the IT Act in India, and similar laws across Europe. Good intent is not a defence, and neither is finding a real problem. Permission must be in writing, and it must come from someone who actually has the authority to give it, not from a friendly developer.
- US: Computer Fraud and Abuse Act
- UK: Computer Misuse Act
- India: IT Act, sections 43 and 66
- EU: national laws under the cybercrime directive
- "I was only testing" is not a defence
- permission must come from someone able to give it
Scope
The scope is an exact list. Domains and subdomains. Address ranges, written out precisely. Applications and API hosts. Cloud accounts or projects. The test accounts and roles you are given. Which environment: production or staging. And explicit exclusions, such as the payment provider, a fragile legacy system or a database that must not be touched. If you find something that looks related but is not on the list, you stop and ask. You never assume.
- domains and subdomains
- IP ranges, by exact address
- applications and API hosts
- cloud accounts or projects
- test accounts and roles given
- environment: production or staging
- explicit exclusions: payment provider, legacy system, a fragile database
- when unsure: ask, do not test
Third parties
A client can only authorise testing of what they own. They cannot give you permission to attack the software services they subscribe to, a shared hosting platform, a content delivery network, their payment provider or other customers on the same platform. In the cloud, the major providers allow you to test your own resources under a published policy, usually without notice, but never denial of service and never the platform itself. Read each provider's policy before you start.
- SaaS products they use: mail, CRM, helpdesk
- shared hosting and CDNs
- payment and identity providers
- other tenants on a platform
- cloud: you may test your own resources under the provider policy; no DoS, no attacks on the platform
- check each provider's rules
Rules of engagement
The rules of engagement describe how the test is run. The dates and hours. The source addresses the testers will use, so defenders can tell the test from a real attack. Which techniques are allowed, and which are forbidden: typically denial of service, social engineering, physical access and changing data, unless specifically agreed. Rate limits for scanning. Whether the defence team is told in advance. And how findings are reported while the test is running.
- dates and testing hours
- source IP addresses used
- allowed: scanning, exploiting, password attacks?
- forbidden: denial of service, social engineering, physical, data changes
- rate limits for scans
- is the defence team told?
- how findings are reported during the test
The letter
The authorisation letter is the single most important document. It names who is giving permission, with their role and signature. It names who is authorised. It refers to the scope and gives the start and end dates. It lists emergency phone numbers. Every tester keeps a copy for the whole engagement, and on physical tests carries it in a pocket. There are real cases of testers arrested during authorised work because the paperwork was unclear. No letter, no testing.
- who authorises: name, role, signature
- who is authorised: tester names and company
- what: the scope, by reference
- when: start and end dates
- emergency phone numbers
- kept by every tester for the whole engagement
- no letter, no testing
Stop conditions
Agree stop conditions in advance. If a service becomes unstable, you stop and call. If you find evidence that a real attacker is already inside, you stop and report, because that is now an incident, not a test. A critical weakness exposed to the internet is reported the same day, not three weeks later in the report. The same goes for illegal content, a target that turns out not to belong to the client, and regulated data such as health or card records.
- a service becomes unstable or goes down evidence of a real attacker already inside
- a critical finding exposed to the internet
- illegal content
- you realise a target is not the client's
- you reach regulated data: health, cards, children
Handling data
During a test you will see things you should not. The rule is: prove access, do not collect. Show a row count, a redacted screenshot or a single test record. Never copy real customer data off the system. Keep your notes and evidence encrypted. Passwords you find are reported, and never tried on systems outside the scope. Evidence is deleted on an agreed date. A non-disclosure agreement covers the rest. Your trustworthiness is the service you are selling.
- prove access with the minimum: a row count, a redacted screenshot, one test record
- never copy real customer data off the system
- encrypt your notes and evidence
- passwords found: report, do not reuse outside scope
- delete evidence on the agreed date; sign an NDA
Bug bounty rules
Bug bounty programmes work the same way, with a public document. The programme page is the scope and the rules. A safe harbour statement is the company's promise not to take legal action against researchers who follow them. A security dot txt file on a website tells you where to report. If a company has no programme and no disclosure policy, you have no permission. And never ask for money in exchange for details of a finding. That is extortion, not research.
- the programme page IS the scope and the rules
- safe harbour: the company promises not to take legal action if you follow them
- security.txt: where to report
- no programme and no policy means no permission
- never demand payment for a finding: that is extortion
From the company side
As a security engineer you will usually be on the other side, writing the scope. Start with the goal: what are you actually worried about? Include what matters, not only what is easy to test. Give the testers accounts and documentation, because grey box testing finds more. Prepare: backups verified, contacts available, monitoring on. Decide whether the operations centre knows. And reserve engineering time for fixes before the report arrives, or the report will sit unread.
- define the goal first: what are you worried about?
- include what matters, not only what is easy
- give access and docs: grey box finds more prepare: backups, contacts, monitoring on decide whether the SOC knows
- plan the fix time before the report arrives
A scope checklist
Here is a checklist of ten questions to answer before the first packet is sent. Who signed, and do they have the authority? What are the exact targets and exclusions? Have third parties and cloud policies been checked? Dates, hours and source addresses? Allowed and banned methods? Which accounts are provided? Who are the emergency contacts? How is data handled? How are findings reported, and when do we stop? And is a retest included?
- who signed, and can they?
- exact targets and exclusions
- third parties and cloud policies checked
- dates, hours, source IPs
- allowed and banned methods
- accounts provided
- emergency contacts
- data handling and NDA
- reporting and stop rules
- retest included?
Common mistakes
Mistakes. Verbal permission only. Permission from someone who has no authority to give it. A scope that says the whole company. Testing a similar-looking domain that turns out to belong to someone else. Scanning systems that belong to a cloud or software provider. Continuing after the end date because you were close to something. Keeping client data afterwards. And holding a critical finding back for the final report instead of phoning the same day.
- verbal permission only
- permission from someone without authority
- "the whole company" as scope
- testing a look-alike domain that is not the client's
- scanning a cloud or SaaS provider's systems
- continuing after the end date
- keeping client data
- reporting a critical late
Say it like this
In the interview: before anything, written authorisation from someone with the authority to give it, an exact scope with explicit exclusions, and rules of engagement covering dates, hours, allowed techniques, source addresses, emergency contacts and stop conditions. I confirm third-party and cloud provider policies, because the client cannot authorise those. And I agree in advance how sensitive data is handled and that critical findings are reported immediately.
- "Written authorisation from someone with authority, an exact scope with exclusions, and rules of engagement: dates, methods, source IPs, contacts and stop conditions.
- I check third-party and cloud
- policies, and agree how data
- and criticals are handled."