Rules of Engagement, Scope and the Law
Learn what written authorization and rules of engagement contain, how computer crime laws apply, and how coordinated vulnerability disclosure works.
Welcome back!
Step 1 of 11Learn
The permission slip that keeps you out of prison
Professional penetration testers sometimes call their authorization letter a get out of jail free card. It's half a joke. In 2019, two security consultants were arrested inside an Iowa courthouse in the middle of the night during a physical penetration test. They had a contract with the state court administration, but the county that owned the building disputed that the state could authorize testing of it. They spent a night in jail, and charges took months to be dropped. The case became a lesson for the entire industry: authorization must come from someone who actually has the authority to give it, and everyone involved must agree on what's covered.
Before any testing begins, a professional engagement produces written documents:
- A contract or statement of work covering cost, timing, confidentiality and liability.
- A signed authorization from the system owner, explicitly permitting the testing.
- Rules of engagement (RoE): the detailed operational rules for the test.
If a system belongs to a third party, such as a cloud provider, a hosting company or a payment processor, that party's policies matter too. Major cloud providers publish rules on what customers may test on their own resources without prior approval, and they forbid some activities, such as denial-of-service testing, without special permission.
Step 2 of 11Learn
What goes into the rules of engagement
A good rules-of-engagement document leaves nothing important to guesswork. It typically covers:
- Scope: exactly which systems may be tested, listed by IP address ranges, domain names, applications or physical locations. Anything not listed is out of scope and must not be touched.
- Exclusions: systems explicitly off limits, such as a fragile production database or a third-party service.
- Timing: dates and hours when testing is allowed, for instance outside business hours for anything risky.
- Permitted techniques: whether social engineering, phishing, physical entry, password attacks or denial-of-service tests are allowed. Many engagements forbid denial of service entirely.
- Data handling: what testers may do if they reach sensitive data. Usually: prove access with a minimal sample or a screenshot, never copy bulk data, and store evidence encrypted.
- Contacts and escalation: who to call if something breaks, if testers find evidence of a real intrusion already in progress, or if a critical flaw needs immediate attention.
- Stop conditions: situations that require pausing the test, such as a service outage.
- Reporting: format, deadline and who receives the report.
Even within scope, testers follow the principle of do no harm: avoid actions likely to crash systems, delete data or disrupt real users, and confirm risky steps with the client first.
Step 3 of 11Practice · What would you do?
What would you do?
During an authorized test of example.com, you discover that the company's login page sends data to a separate payment provider at pay.othercompany.com, which looks like it might have a serious flaw. The scope document lists only example.com and its subdomains. What do you do?
Step 4 of 11Learn
Computer crime laws
Almost every country criminalizes unauthorized access to computer systems. A few examples:
- In the United States, the main federal law is the Computer Fraud and Abuse Act (CFAA) of 1986. It makes it a crime to access a computer without authorization or to exceed authorized access, with penalties that can include prison time. In 2021, the Supreme Court's Van Buren decision narrowed the exceeds authorized access part, but accessing systems you have no permission to use remains clearly illegal. In 2022 the US Department of Justice announced it would not prosecute good-faith security research under the CFAA, but that policy doesn't bind state prosecutors or protect anyone from civil lawsuits. Most US states also have their own computer crime laws.
- In the United Kingdom, the Computer Misuse Act 1990 covers unauthorized access, access with intent to commit further offences, and impairing a computer's operation.
- The Council of Europe's Budapest Convention on cybercrime, signed by dozens of countries worldwide, harmonizes these offences internationally.
Copyright laws, such as the US Digital Millennium Copyright Act's rules on circumventing protection measures, and privacy laws can also apply to security research.
The practical rule is simple and universal: no authorization, no testing. I was only looking, I didn't take anything and I was going to tell them are not legal defenses in most places.
Step 5 of 11Timeline
Key moments in computer crime law and research
- 1986US Computer Fraud and Abuse Act (CFAA)
Makes accessing a computer without authorization, or exceeding authorized access, a federal crime.
- 1990UK Computer Misuse Act
Covers unauthorized access, access with intent to commit further offences, and impairing a computer.
- 2001Budapest Convention opens for signature
The Council of Europe treaty harmonizes cybercrime offences across dozens of countries.
- 2019Iowa courthouse arrests
Two contracted testers are jailed overnight because the building owner disputed who could authorize the test.
- 2021Van Buren v. United States
The Supreme Court narrows the "exceeds authorized access" part of the CFAA.
- 2022DOJ good-faith research policy
Federal prosecutors will not charge good-faith security research under the CFAA; states and civil suits are not covered.
Step 6 of 11Practice · True or false
If you find a website vulnerability by accident and don't steal any data, probing it further to confirm the flaw is legal everywhere because you meant no harm.
Step 7 of 11Learn
Coordinated vulnerability disclosure
Suppose a researcher finds a serious flaw in widely used software. If they publish details immediately, criminals may exploit it before a fix exists. If they tell no one, it stays unfixed and someone else may find it. Coordinated vulnerability disclosure (CVD), often called responsible disclosure, balances these risks:
- The researcher privately reports the flaw to the vendor, through a published channel such as a security email, a
security.txtfile on the website, or a bug bounty program. - The vendor confirms, develops and releases a fix.
- After the fix, or after an agreed deadline, details are published so defenders understand the risk and others can learn.
Deadlines matter because vendors sometimes ignore reports. Google's Project Zero popularized a 90-day disclosure deadline, now a common norm: the vendor gets 90 days to fix before details go public, with extensions in some cases.
Many organizations publish a vulnerability disclosure policy (VDP) describing how to report issues, what testing is acceptable, and often a safe harbor promise not to take legal action against researchers who follow the rules. Governments increasingly expect this; US federal agencies, for instance, are required to have one.
Once a vulnerability is public, it typically receives a CVE identifier, such as CVE-2021-44228 for the Log4Shell flaw in the Log4j library, a unique reference that lets everyone talk about the same issue.
Step 8 of 11Practice · Put in order
Put the steps of coordinated vulnerability disclosure in order.
Drag the items, or use the arrow buttons, to put them in order.
- Researcher reports it privately through the vendor's disclosure channel
- Researcher finds a vulnerability
- Vendor releases the patch
- Vendor confirms and develops a fix
- Details are published, often with a CVE identifier
Step 9 of 11Note
Step 10 of 11Practice · True or false
A penetration tester who discovers evidence that a real attacker is already inside the client's network should normally stop and contact the client's emergency contact right away.
Step 11 of 11Practice · Select all that apply
Which items belong in a penetration test's rules of engagement? Select all that apply.
Select all that apply.
Lesson complete!