Skip to content

Beginner · Rules first: ethics, law and permission · topic 3 of 35 · 20 min

Scope and rules of engagement

Explanation

Rules of engagement (RoE) are the written agreement that says exactly what you may test, when, how hard, and what is off-limits. Scope is the list of systems you are allowed to touch. A good test never goes outside the scope, even when something tempting is just one step away.

Why a written agreement comes before any tool

Permission is not just a verbal "sure, go ahead". It must be specific and in writing, so that both sides know what will happen. This document is usually called the rules of engagement, or RoE. It protects the client (nothing unexpected breaks) and it protects you (you can prove you stayed inside what was agreed).

What scope means

Scope is the exact list of what you are allowed to test. It might be a set of IP addresses, a few domain names, one web application, or one office network. Anything not on the list is out of scope — you must not touch it. "In scope" and "out of scope" are the two most important phrases in a test.

A classic mistake: you are testing shop.example.com, and you notice that mail.example.com looks weak too. It is not in scope. You leave it alone and, at most, note that the client may want it tested in a future engagement. Wandering out of scope can break the client's trust and cross the legal line.

What the rules of engagement usually contain

  • Who authorises the test (name, role, signature) and your contact.
  • The scope: exact IPs, domains, apps, and what is explicitly out of scope.
  • The time window: which dates and hours testing may happen.
  • Allowed techniques: for example "no denial-of-service", "no social engineering of staff", "no changes to data".
  • Handling of sensitive data found during the test.
  • An emergency contact and a "stop" procedure if something goes wrong.
  • How findings will be reported and to whom.

The "get out of jail" letter

Testers often carry a signed authorisation letter, sometimes called a "get out of jail free" letter, during the engagement. If a worried admin or a security guard questions what they are doing, they can show that the owner authorised it. It names the tester, the dates and the authoriser.

Careful: If the scope is unclear, STOP and ask. Never guess. "I assumed that server was included" is not a defence. When in doubt, the system is out of scope.

Changing the scope mid-test

Sometimes the client wants to add a system once the test has started. That is fine, but only after it is added to the written scope and signed off. A verbal "oh, you can test that one too" is not enough — get it in writing, even a quick email, before you touch the new system.

Need help?

Stuck on a word or an idea? Search this course, or every course, and jump straight to the explanation or a worked question.

Try:

Watch the lesson

Scope and rules of engagement · 1/7

RoE = the written agreement

Permission must be specific and in writing. That document is the rules of engagement (RoE).

Prefer a video by a teacher? Find free videos on “penetration testing rules of engagement and scope explained” on YouTube ↗

In real life: A retailer's one-week test

A Bengaluru retailer hires a tester for one web app, www.shop.example (and its test copy), for one week, 8pm to 6am, no denial-of-service, no touching the live payment gateway. On day three the tester spots that an unrelated staff portal looks vulnerable. Because it is out of scope, the tester does not test it — but writes one line in the report recommending a separate engagement for it. The client appreciates the discipline and hires them again.

Practice (0/3 done)

Task 1 · Question

What is "scope" in a penetration test?

Task 2 · Question

During a test you find a tempting server that is not in the scope. You should…

Task 3 · Practice

Draft a short rules-of-engagement outline for a fictional test of one web app for a local shop. List the sections you would include.

Quick quiz

Question 1

1.The rules of engagement should be…

Question 2

2.A client says on a call "you can also test the mail server". Before touching it you should…

Question 3

3.An authorisation ("get out of jail") letter is useful because…

Question 4

4.When the scope is unclear, the safe default is to treat the system as…

Read more (free)

Open a question to see the answer and why. The first ones are this topic's own quiz, so try the quiz above before you peek.

The rules of engagement should be…

Answer: Written and signed before testing starts

RoE are written and signed before any testing begins.

A client says on a call "you can also test the mail server". Before touching it you should…

Answer: Get the addition to the scope in writing first

Scope changes must be put in writing before you act on them.

An authorisation ("get out of jail") letter is useful because…

Answer: It proves the owner authorised the test if anyone questions you

It is proof of authorisation you can show on site.

When the scope is unclear, the safe default is to treat the system as…

Answer: Out of scope

When in doubt, out of scope: stop and ask for clarity.

A tester downloads customer records "to prove the bug" during an engagement whose scope said not to touch customer data. This is…Related

Answer: Outside scope and a legal and ethical problem

Staying inside the agreed scope is mandatory; pulling data the scope forbids is both an ethical and a legal problem.

From The law in India: IT Act 2000, sections 43 and 66

Which of these is still off-limits during passive recon?Related

Answer: Using leaked passwords to log in

Using leaked credentials to access accounts is account access, not passive recon, and is illegal.

From Passive reconnaissance (OSINT)

Exceeding scope during post-exploitation can…Related

Answer: Turn a legal test into an offence and destroy trust

Scope and law still apply; exceeding them is serious.

From Post-exploitation ethics: what to do once you are in

What does "lexical scope" mean?Related

Answer: Scope decided by where code is written

Lexical scope depends on the position of the code in the source.

From Scope and closures

Pass the quiz (60% or more) or mark this topic as done when you are ready.

Your progress is saved on this device only.

Next steps

  1. 1 more topic in “Rules first: ethics, law and permission” before its exam: The CIA triad and the tester's mindset.
  2. Module 1 exam: ethics, law and permission · 13 questions · 20 min, without help. 4 topics of this module still to finish first.
  3. Then the next module, Your legal practice lab. 35 topics left in the course before the final exam.

← Previous: The law in India: IT Act 2000, sections 43 and 66