Consent is the legal foundation of the engagement. Ethics is what guides the tester when the contract is silent — and the contract is always silent on something.
Valid consent must satisfy all of these conditions simultaneously:
The tester does not draft these alone — legal counsel does — but must read and push back on technical ambiguity.
The principle is simple: anyone whose systems will be affected must consent. The execution is often complex.
A third consent layer applies when systems run in a major public cloud — the provider's own policy is a contractual obligation the client already accepted.
| AWS | Azure | GCP | |
|---|---|---|---|
| Pre-approval required? | No (since 2019) | No (since 2017) | No |
| Written policy page? | Yes | Yes | Partial (AUP + ToS) |
| DoS / DDoS prohibited? | Yes | Yes | Yes |
| Cross-account / cross-tenant testing? | Prohibited | Prohibited | Prohibited |
| Testing provider-managed services? | Prohibited | Prohibited | Prohibited |
| Platform bug found — notify? | No policy | MSRC (expected) | VRP (bughunters.google.com) |
In Topic 04, scope creep was an operational risk. Here, it is also an ethical one.
The pressure during execution is always toward expansion: the client wants a bit more, the tester finds something interesting, time pressure suggests "let's just check this quickly."
Each undocumented expansion is a small ethical failure even when no harm results. The discipline of saying "let's update the document first" is a professional habit — not paperwork pedantry.
No single official code exists for security testers, but converging traditions share the same core themes:
Common codes: (ISC)² · ISSA · EC-Council · CREST · OWASP · OSSTMM
| # | Situation | Right move |
|---|---|---|
| 1 | Out-of-scope system has the same — or worse — vulnerability | Observe passively; do not exploit; raise as candidate scope expansion or freebie tip |
| 2 | SQL injection demo returns 200,000 real customer records | Stop; notify client; secure or destroy per DPA; keep only minimum records for the finding |
| 3 | Vulnerability turns out to be a prior real compromise | Stop; do not continue exploring; notify client; defer to their incident response |
| 4 | Client asks to remove a finding from the report | Decline. Offer diplomatic phrasing, confidential addendum, or severity precision — not omission |
| 5 | Social engineering targets an employee who did not personally consent | Must be authorized by senior leadership; pretext must not cause lasting harm; debrief afterward |
| # | Situation | Right move |
|---|---|---|
| 6 | Consultant works for both the client and the vendor being tested | Disclose the conflict; recuse where it is material |
| 7 | Tester crashes a production system mid-test | Notify immediately; help with recovery; document for post-mortem; take ownership |
| 8 | A friend finds a vulnerability and asks for advice | Direct them to a VDP, bug bounty, or CERT — pursuing it without one is legally risky |
| 9 | End of engagement — what happens to notes, screenshots, and exfiltrated data? | Secure destruction with a written certificate; do not accumulate sensitive client data |
| 10 | Critical finding affects the client's customers; client wants indefinite disclosure delay | Genuinely hard. Professional codes favor reasonable timelines; bring legal counsel |
A short habit for when the contract is silent:
Develop a personal stance on the harder dilemmas — written down, even if private — before a contract arrives that puts you under pressure.
A client's CTO says verbally: "Yes, go ahead — you don't need it in writing." How do you respond, and why?
Do not begin work. Restate politely that the verbal authorization is appreciated; you will act on it as soon as the same words appear in an email or signed document with explicit named scope. Frame written authorization as protecting both sides — not as distrust. Verbal consent exposes both the tester (no legal cover) and the client (no documented authorization for actions taken).
Next: Topic 07 — OSINT. Building a pre-engagement intelligence picture without touching in-scope systems.