Home
Cybersecurity & AI Security / Part 7 — Rules of Engagement: Law, Ethics, and Authorization

Rules of Engagement: Law, Ethics, and Authorization

CAP, ACID vs BASE, latency numbers, back-of-envelope estimation, single points of failure — the vocabulary every system designer thinks in.


Core Philosophy: Security is the one technical field where doing the exercise on the wrong target is not a bug — it is a crime. The exact same action — scanning a server, testing a login, exploiting a flaw — is either professional work or a criminal offense, and the only thing that decides which is authorization. This page is not a disclaimer. It is a core skill. Read it before you attack anything, ever.

Part 1: The Problem

Everything you learn after this page is, mechanically, an attack technique. The skills are genuinely dual-use: the person securing a company and the person breaking into it run the same tools and type the same commands.

What separates them is not skill. It is permission. A penetration tester scanning a client’s network and a criminal scanning the same network are doing something physically identical — and one has a contract while the other has a prison sentence waiting.

New learners get into trouble not because they’re malicious, but because they’re curious: “I’ll just run a quick scan on this site to practice.” That sentence has ended careers before they started. This page makes the rules concrete so curiosity never becomes a crime.

Part 2: The Core Concept — Authorization Is Binary

There is no grey area, no “a little bit allowed.” For any system, at any moment, you are in exactly one of two states:

text
   ┌────────────────────────┐   ┌────────────────────────┐
   │  AUTHORIZED             │   │  NOT AUTHORIZED         │
   │  You have explicit      │   │  You don't.             │
   │  permission to test     │   │                         │
   │  this system, in this   │   │  Any testing here is    │
   │  way, right now.        │   │  a criminal offense.    │
   │                         │   │                         │
   │  → Professional work    │   │  → A crime              │
   └────────────────────────┘   └────────────────────────┘

You are authorized only when one of these is true:

If none of those applies, you are not authorized. “It looked insecure,” “I didn’t break anything,” “I was only curious,” “the data was public anyway” — none of these is a defense. They will not help you.

Part 3: What the Law Actually Says

Nearly every country has a computer-misuse law, and they share a common core. The exact statute varies — in the US it’s the Computer Fraud and Abuse Act; the UK has the Computer Misuse Act; India has the Information Technology Act; the EU has its directive on attacks against information systems — but the principle is the same everywhere:

Accessing a computer system without authorization, or beyond the authorization you were given, is a criminal offense.

Three things follow that beginners routinely get wrong:

⚖️ This curriculum gives you a general, practical understanding — not legal advice. Laws differ by country and change over time. If you ever plan professional security work, understand the specific laws of your jurisdiction and your client’s.

Part 4: Scope — The Contract That Defines “Allowed”

When testing is authorized, the permission is never unlimited. It is bounded by a scope: an explicit definition of what you may test and how.

A scope typically specifies:

text
        THE COMPANY
   ┌───────────────────────────┐
   │  ┌─────────────────────┐  │
   │  │  IN SCOPE           │  │ ← test ONLY here
   │  │  app.example.com    │  │
   │  │  api.example.com    │  │
   │  └─────────────────────┘  │
   │   mail.example.com        │ ← OUT of scope:
   │   blog.example.com        │   off-limits, even
   │   corp laptops            │   though same company
   └───────────────────────────┘

Scope is a contract. Stepping outside it is unauthorized access — even on the same company, even if you found something interesting. The professional discipline is: find something juicy out of scope, do not touch it, and report that it exists through the proper channel.

Part 5: Responsible Disclosure

Suppose you legitimately find a real vulnerability — in an authorized test, or in a bug bounty program. What you do next is itself an ethical skill called responsible disclosure (or coordinated disclosure).

The principle: give the people who can fix it a fair chance to fix it before the world — including attackers — learns the details.

The normal flow:

  1. Report privately to the organization (via their bug bounty platform, a security.txt contact, or a security email).
  2. Provide enough detail to reproduce and understand it — clear steps, impact.
  3. Give them reasonable time to fix it before any public discussion.
  4. Do not exploit it further. Prove it exists; don’t pillage. Don’t read more data than needed to demonstrate the bug. Don’t pivot deeper.
  5. Coordinate any public write-up with the organization.

What responsible disclosure is not: it is not posting the exploit publicly for clout, not extorting the company (“pay me or I’ll release this” is a crime — that’s extortion), and not quietly using the bug yourself.

This is also how bug bounty income works: companies pay precisely because you found it, proved it carefully, and disclosed it responsibly instead of abusing it.

Part 6: Where It’s Always Safe to Practice

Set against all those rules, here is the reassuring part — there is an enormous amount of legal practice space. You never need an illegal target.

Practice space Why it’s legal
Your own VM lab (from 0.5)You own every machine in it.
Deliberately vulnerable apps/VMsBuilt and licensed expressly to be attacked.
Hosted hacking-practice platformsThey authorize attacks on the targets they provide — that’s their purpose.
Capture The Flag (CTF) eventsOrganized, sanctioned hacking competitions.
Bug bounty programsThe company publishes an open invitation to test — within scope.

Every hands-on lab in this entire curriculum is built around these. The rule is simple and freeing: if you ever can’t clearly answer “what specifically authorizes me to attack this?”, the answer is to stop and use a target from this table instead.

📓 Key Terms

Term Plain meaning
AuthorizationExplicit permission to test a specific system in a specific way.
Computer-misuse lawLegislation criminalizing unauthorized system access.
Unauthorized accessGetting into (or sometimes just trying to get into) a system without permission — a crime.
Exceeding authorizationGoing beyond the permission you were given.
ScopeThe explicit definition of what may be tested, and how.
In / out of scopeTargets you may / may not test.
Responsible disclosureReporting a flaw privately and giving time to fix it before going public.
Bug bounty programA company’s standing, scoped invitation to find and report bugs.

🧪 Hands-On Lab

This page’s “lab” is reflection and reading — the most important kind here.

Task 1 — Read a real bug bounty scope. Find any public bug bounty program (the major platforms list them openly). Read its program page. Identify: the in-scope targets, the out-of-scope targets, and the forbidden techniques. Notice how specific it is. This is what authorization looks like in writing.

Task 2 — Find a security.txt. Many organizations publish a security.txt file (often at /.well-known/security.txt) telling researchers how to report issues. Find one on a large company’s site. This is the front door for responsible disclosure.

Task 3 — Look up your own country’s computer-misuse law. Search for the main computer-misuse statute where you live. Read a plain-language summary. You don’t need legal mastery — you need to know the law exists and roughly what it forbids.

Task 4 — Write your personal rule. In your Notion, write one sentence you commit to, e.g.: “I attack only my own lab, sanctioned training platforms, and in-scope bug bounty targets — nothing else, ever.” Pin it. It’s the most valuable note in your whole vault.

Task 5 — Run the decision drill. For each, decide authorized or not, and why:

⚠️ Common Mistakes

✅ Recap & What’s Next

Next (1.1): With the rules locked in, we define the thing itself — what “secure” actually means, and why perfect security is neither possible nor the goal.

⁂ Back to all modules