Phase 00.03 · The Contract

Engagement Types & Rules of Engagement

The last lesson chose who you simulate. This one turns that choice into paper. A penetration test is "a simulated attack with permission" — and the entire phrase hangs on those last two words. Strip out the permission and the same keystrokes that earn you a paycheck become a felony. Before you touch a single host, the engagement has to be written down, scoped, and signed: how much the tester is told, where the attack comes from, exactly what is in bounds, and who put their name on the authorization. This lesson is about that contract.

00

From adversary to contract

You already picked an adversary to impersonate. That decision is real, but it is not yet legal. Choosing to act like a nation-state actor or an organized-crime crew does not, by itself, give you any right to attack the client's systems — and the techniques you are about to use are, in every other context, exactly the crimes those adversaries commit. What separates a paid engagement from a prosecution is not skill, tooling, or intent. It is authorization, in writing, agreed before the work starts.

So the work of this phase is translation: take the abstract "we will simulate this attacker" and turn it into a concrete, bounded agreement. That agreement answers four questions before any packet leaves your machine — how much will the tester be told (the knowledge level), where does the attack originate (the test type), what exactly is allowed and forbidden (the rules of engagement), and who is authorizing it (the authorization letter). Get those four right and the engagement is defensible. Get them wrong, or skip them, and even a perfectly executed test becomes a liability for everyone who touched it.

"With permission" is the whole job. A penetration tester and a criminal can run identical commands against identical targets. The difference is a signed document sitting in a drawer that says the owner asked you to. Treat that document as the most important deliverable of the entire engagement — because legally, it is.
Lesson
00.03
Phase
Foundations
Output
ROE · Auth Letter
01

Knowledge levels: how much the tester is told

The first dial on the contract controls how much the client hands over before you begin. More knowledge means a faster, more thorough test; less knowledge means a more realistic simulation of an outside attacker who has to discover everything for themselves. The three standard settings trade realism against thoroughness against time and cost.

Knowledge levelTester starts withSimulatesTrade-off
Black boxNothingA true outsider with no prior access or inside informationMost realistic of the three and the closest match to a real external attack — but the slowest and most expensive, because the tester burns time and budget rediscovering things the client already knows. Coverage can be uneven: anything you don't find, you don't test.
Grey boxPartialA user with limited access, or an attacker who has already done some reconnaissanceSome credentials, documentation, or network detail are shared up front. A balanced, common choice: realistic enough to be meaningful, efficient enough to reach the systems that matter without wasting the budget on discovery.
White / Crystal boxEverythingAn insider, or a deeply informed attacker — and a thorough auditFull access to source code, configurations, and architecture diagrams. The most efficient and the highest coverage: with the blueprints in hand you can find issues a blind test would miss entirely. Least realistic as an "attack," but best when the goal is to find everything.

There is no "best" setting in the abstract — only the right setting for the goal. If the client wants to know how they'd fare against an unknown attacker on the internet, lean black box. If they want maximum assurance that a critical application is sound, lean white box and hand the testers the source. Grey box is the workhorse of the industry precisely because it captures most of the realism of a blind test while spending the budget on findings instead of guesswork.

02

Test types: where the attack comes from

The second dial sets the attacker's vantage point. The same target looks very different depending on whether you start outside the fence or already inside it, and most contracts specify one, the other, or a deliberate progression from one to the next.

The distinction matters because perimeter defenses and internal defenses fail in different ways. A hardened external surface tells you nothing about whether the inside is soft — and the inside is very often soft, because organizations have historically spent on the wall and trusted everything behind it. An internal test exposes the flat networks, over-privileged accounts, and unmonitored lateral paths that an attacker rides once the perimeter is breached.

The two halves usually connect. Many real engagements run external-to-internal: the tester breaks in from the outside, establishes a foothold, and then pivots to the internal phase from the access they just earned — mirroring exactly how a real intrusion unfolds. When a client only buys an internal test, they are paying you to skip the break-in and start from "assume breach," which is a faster way to study what happens after the wall falls.
03

The Rules of Engagement document

The knowledge level and test type are settings inside a larger agreement. That agreement is the Rules of Engagement (ROE) — the document that defines, in detail, what the testers may and may not do. It is the heart of the engagement: the place where good intentions become enforceable boundaries, and the reference everyone returns to the moment something is unclear or goes wrong. A well-written ROE pins down:

Signed first, then tested. The ROE is worthless if it is agreed verbally and "finalized later." It must be reviewed and signed by both parties before any technical work begins. The signature is what converts your activity from unauthorized access into a contracted service. No signature, no scanning — no exceptions.
04

The authorization letter and the checklist

Alongside the ROE sits a second document that does one specific legal job: the authorization letter, often called the "get out of jail" letter. It is explicit, written permission from someone with the authority to grant it — a system owner or an executive who can actually speak for the organization, not a friendly contact in IT who lacks the standing. A proper authorization letter names the systems you are permitted to attack, the dates during which the permission is valid, and the testers it covers.

This letter is the tester's legal shield. If a defender, an ISP, or law enforcement ever questions why traffic from your machine is hammering the client's servers, the authorization letter is the document you produce. Carry it — physically or accessible — for the duration of the engagement. Without it, "the client asked me to" is just your word; with it, you have proof that the owner empowered the work.

Authorization is task zero. The single most reliable way to keep an engagement legal and in-scope is to work from a checklist that puts the legal and authorization tasks first — signed ROE, signed authorization letter, scope confirmed, contacts exchanged — and only then proceeds through the technical phases in order. The paperwork is not bureaucracy you rush past; it is the first gate, and nothing downstream is valid until it is closed.

Working from a written checklist does more than protect you legally. It keeps the engagement orderly: you move through reconnaissance, scanning, exploitation, and reporting in a deliberate sequence instead of improvising, and at every step you can check the target against the in-scope list before you act. This is how professionals avoid the two classic mistakes — drifting out of scope, and skipping a phase under time pressure.

You do not have to invent these checklists from scratch. Mature, community-maintained pentest checklists circulate publicly — for example, external-penetration-test checklists hosted on code-sharing platforms like GitHub — precisely so practitioners can adopt a proven, step-by-step structure and adapt it to each engagement. Borrowing a battle-tested checklist is not a shortcut; it is how seasoned testers make sure nothing important, especially the authorization step, ever gets skipped.

05

What you carry into the work

Everything in this lesson exists to make one thing true before you start: the engagement is legal, bounded, and agreed. The adversary you chose in the last lesson tells you how to behave; the contract you build in this one tells you what you are allowed to do while behaving that way. They are two halves of the same setup, and skipping the second half doesn't make you bold — it makes you a criminal with good intentions.

Carry these forward into the rest of the phase:

With the contract signed and the boundaries clear, the next step is to build somewhere you can actually practice these techniques safely and legally — a lab you own, where the only rules of engagement are the ones you set for yourself.