The rule
Only test, scan, capture or log in to systems that you own, or that you have clear, written permission to test, from someone who actually has the authority to give it.
That includes “harmless” things. Port-scanning your school, trying a default password on a friend’s router, or capturing café Wi-Fi traffic can all break laws (like the US Computer Fraud and Abuse Act or the UK Computer Misuse Act) and school or work rules, even if you meant well and changed nothing.
This page is general guidance, not legal advice. Laws differ between countries.
What good permission looks like
- Written, like an email or signed document, not a hallway “sure, go ahead”.
- From someone with authority over the system, like the owner or IT lead, not just a user of it.
- A clear scope: exactly which systems, which techniques, and what’s off-limits.
- A time window and a contact person if something goes wrong.
Great places to practise legally
- Your own virtual lab (how to build one).
- Capture-the-flag events and platforms like picoCTF and OverTheWire.
- Intentionally vulnerable apps like OWASP Juice Shop, running on your own machine.
- Training labs like PortSwigger Web Security Academy, TryHackMe and Hack The Box.
- Official bug bounty programmes, but only within their published rules and scope.
Found a real security problem by accident?
- Stop. Don’t dig further, download data, or “prove it” by going deeper.
- Write down what you saw and when.
- Report it privately to the owner. Look for a
security.txtfile, a “vulnerability disclosure” page, or a security contact. For schools, tell a teacher or IT. - Don’t post it publicly while it’s unfixed.
Learn more about responsible reporting from CISA’s coordinated vulnerability disclosure process and disclose.io.
Ethics, in one line
Use what you learn to protect people: yourself, your family, your school, and eventually the organisations that hire you.