LESSON 04 · BEGINNER6 min read

Law, Ethics, and Safe Practice from Day One

Learn authorisation, scope, data handling, responsible disclosure, and the safety rules that keep your practice legal, ethical, and effective.

OWASP Top 10 · MITRE ATT&CK · NIST CSF 2.0Free to readModule 1 of 14
YOUR NEXT SMALL WINS

By the end, you’ll be able to…

  • Explain why authorisation and scope are the line between security work and computer crime.
  • Write rules of engagement with in-scope systems, exclusions, data handling, and stop conditions.
  • Apply safe lab rules that prevent accidental harm to real systems.
  • Describe responsible disclosure and the privacy obligations that come with handling evidence.

01Authorisation Is the Line

The difference between a security professional and a criminal is not knowledge, intent, or the tool used. It is authorisation. You may test a system you own, or a system whose owner has given you explicit permission within a defined scope. 'My friend said it was fine' is not enough. 'It is just a small site' is not enough. 'I was only checking' is not enough. Most computer-misuse laws focus on access and damage, not on whether you meant well.

Authorisation should be written down before you run a scan, send a payload, or attempt a login. The document names the systems, the dates, the techniques allowed, the people who approved the work, and the data-handling rules. It also names what is out of scope. A verbal approval can be withdrawn or misremembered; a written record protects the tester, the client, and the person who owns the system.

In the lab, you are the owner and the authoriser. That makes practice simple, but it does not remove the need for discipline. A lab that is bridged to your home network is no longer isolated. A vulnerable application exposed to the internet is no longer safe. The same rules of engagement that protect a client engagement protect your own devices and the people who share your network.

02Scope, Rules of Engagement, and Stop Conditions

Scope is the boundary of the work. It includes the systems, domains, IP ranges, accounts, and data you may touch. It also includes time windows, allowed techniques, prohibited techniques, and the people who may be contacted. A good scope is specific enough that two testers would make the same decision about an ambiguous target.

Rules of engagement turn scope into operating instructions. They define communication channels, escalation contacts, emergency procedures, and stop conditions. A stop condition might be unexpected access to production data, a service becoming unavailable, or any sign that the lab can reach a real network. When a stop condition occurs, stop, preserve evidence, notify the contact, and do not continue until you are told to proceed.

For personal practice, write a one-page charter even if nobody asks for it. It builds the professional habit and gives you a clear answer when a friend asks you to 'just check' their website. The charter is not bureaucracy; it is how you keep a curious experiment from becoming an incident.

rules-of-engagement-minimum.txtPlain text
AUTHORISER: Name, role, contact, date.IN SCOPE: Exact hosts, IP ranges, domains, accounts, and data.OUT OF SCOPE: Production, third-party services, shared infrastructure,              personal devices, and anything not listed.WINDOW: Start and end time, including timezone.TECHNIQUES: Allowed, restricted, and prohibited methods.DATA: What may be collected, how it is stored, who can see it,      how long it is retained, and how it is destroyed.STOP CONDITIONS: Harm, unexpected access, outage, or scope ambiguity.COMMUNICATION: Primary and emergency contacts, update cadence.REPORTING: Finding format, severity method, and disclosure route.

03Safe Lab Rules

Use host-only or internal networking for every vulnerable target. Do not bridge a lab adapter to your home or office network. Do not forward a vulnerable service to the internet, even for a few minutes. Internet scanners find new services quickly, and a deliberately insecure application is a gift to anyone who finds it.

Snapshot before every risky experiment and label the snapshot with a date and purpose. Use synthetic data only: fake names, fake credentials, fake customer records. If an exercise requires a realistic dataset, generate it or use a public synthetic dataset. Never put real health data, customer data, or live credentials into a lab.

Keep a stop condition in mind: if a guest can reach your home router, a production service, or another person's device, stop and disconnect. Record what happened before you fix it. That note is part of the learning, and it may prevent the same mistake later.

04Responsible Disclosure and Professional Ethics

If you find a real vulnerability, do not publish it, exploit it for gain, or use it to pressure the owner. Report it privately through the organisation's security contact or a coordinated disclosure programme. Include a clear description, the affected system, reproduction steps, impact, and a safe way to contact you. Do not include more data than necessary to prove the issue.

Responsible disclosure balances the owner's need to fix the problem with the public's need to know. Give the owner a reasonable window to respond and remediate. Follow the programme's rules if a bug bounty or safe-harbour policy exists. Do not demand payment, threaten publicity, or continue testing after you have confirmed the issue. Good-faith security research is a professional relationship, not a hostage negotiation.

Ethics also covers privacy and confidentiality. Evidence may contain personal data, authentication tokens, or internal business information. Collect only what you need, redact what you do not, store it securely, and delete it when the engagement ends. A report that exposes a customer's private data to prove a point has created a second incident.

05Privacy and Evidence Handling

Evidence must be accurate, complete enough to support the finding, and handled in a way that preserves its integrity. Record the source, the time, the collector, and the method. If you copy a file, hash it and record the hash. If you export logs, keep the original and work from a copy. Document any gap or limitation; an honest gap is better than a false certainty.

Minimise data. If a finding only needs to show that a response contained an email address, redact all other records. If a screenshot would reveal a session token, blur or crop it. Store evidence in an encrypted location with access limited to the people who need it. Set a retention date and delete the data when it is no longer needed.

These habits feel heavy at the start, but they are the difference between a hobbyist and a trusted professional. Clients and employers are not only buying technical skill; they are buying the confidence that you will handle their systems and data responsibly.

LET IT CLICK

The ideas worth keeping.

  • Authorisation and scope are the boundary between security work and computer crime.
  • Rules of engagement define targets, techniques, data handling, communication, and stop conditions.
  • Keep labs isolated, snapshotted, and synthetic; never expose a vulnerable target to the internet.
  • Responsible disclosure and data minimisation protect people, organisations, and your professional reputation.
TURN UNDERSTANDING INTO SOMETHING YOU CAN DO

Make it yours.

Type and test your code right here in the interactive workspace. Run your solution, check the output, and compare with the worked guide when ready.

01

Exercise 1: A friend asks you to test their shop

A friend says, 'My online shop is probably insecure. Can you hack it this weekend? I give you permission.' List five things you must clarify or document before touching the site, and describe a safer alternative if the request cannot be authorised properly.

Explore a worked solution
one_possible_solution.mdCybersecurity
1. Who owns the site and the hosting account, and can they authorise testing in writing? 2. What exact domains, subdomains, IP ranges, and third-party services are in scope? 3. What dates and times are allowed, and what techniques are prohibited? 4. What data may be accessed, how will it be stored, and what should you do if you encounter customer data? 5. Who is the emergency contact, and what are the stop conditions? If the shop uses a hosted platform, the friend may not own the infrastructure and may not be able to authorise testing. A safer alternative is to build a local copy or use a deliberately vulnerable lab application that models the same features, then share the findings as a lesson rather than testing the live shop.

Permission from a friend is not necessarily authorisation from the system owner. Scope, ownership, and data handling must be explicit before any test.

02

Exercise 2: Write your lab rules of engagement

Write an eight-line rules-of-engagement document for your personal lab. Include authoriser, in-scope, out-of-scope, network mode, data rules, stop conditions, and reporting.

Explore a worked solution
one_possible_solution.mdCybersecurity
Authoriser: me, as owner of the host and both VMs. In scope: 10.10.10.0/24 host-only network, cyber-kali, cyber-ubuntu, and deliberately vulnerable apps installed inside those VMs. Out of scope: host operating system, home router, public websites, cloud accounts, and any device I do not own. Network: host-only adapter, no bridged mode, no port forwarding. Data: synthetic data only; no real credentials or personal records. Stop conditions: unexpected host traffic, reachability beyond the lab, or any sign of a production connection. Reporting: one Markdown note per lab with commands, evidence, limitations, and next steps. Retention: delete raw captures after the module review unless needed for a portfolio.

A short charter is enough if it is specific. The value is in the decisions it forces before the experiment, not in the length of the document.

A SMALL QUESTION. A USEFUL NEXT STEP.

What stayed with you?

Check the ideas while they’re fresh. Your answers stay in this page and feedback appears as you go.

A LITTLE ACTIVE RECALL0 / 4 answered
01What separates authorised security testing from computer crime?
02Which is a valid stop condition in a lab?
03What is responsible disclosure?
04What is the safest data rule for a beginner lab?

Keep exploring.

The official references behind this lesson, when you want a second angle or the full details.

One lesson closer.

Reading is a start. Trying it yourself makes the connection.

Completion is saved in this browser. It records reading and hands-on practice progress.