Ethical hacking and the law: authorization, safe harbors, and disclosure

Why unauthorized access is a crime even with good intentions, what a written authorization should contain, how bug bounty safe harbors work, and how to disclose a finding you stumble on.

Lesson 15 of 18 · 12 min read · practice only with authorization

Diagram

Is this test authorized?

Follow the path. One example at a time.

Step 1 of 4

Who owns it

Name the legal owner of the asset. A hosting provider or a customer is not the owner of someone else’s system.

Illustration: Who owns it
# Who owns it
# Name the legal owner of the asset. A hosting provider or
# a customer is not the owner of someone else’s system.

The example on the open step is one illustration, or the fix you can paste into an application you own.

What this page is made of

3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.

  1. Intent is not authorization

    What fails
    Laws such as the US Computer Fraud and Abuse Act and the UK Computer Misuse Act turn on authorization, not motive.
    Who is affected
    You, and the owner who must respond.
    What you would notice
    Testing first and asking permission after.
    What you change
    Get written authorization from someone with authority over the asset.
  2. Third parties are separate

    What fails
    A customer cannot authorize testing of their cloud provider or SaaS vendor.
    Who is affected
    The provider and its other customers.
    What you would notice
    A scope listing a vendor’s shared infrastructure.
    What you change
    Follow the provider’s published testing policy and leave shared infrastructure out.
  3. Disclose carefully

    What fails
    A finding reported badly can look like extortion.
    Who is affected
    The researcher and the organization.
    What you would notice
    Demands for payment before details are shared.
    What you change
    Report through security.txt or a disclosure program, without conditions, and keep only what you need.

The laws in brief

In the United States the Computer Fraud and Abuse Act and state laws criminalize access without authorization or exceeding authorized access; the Department of Justice’s 2022 charging policy says good-faith security research should not be charged, but that is a policy, not a defense written into the statute. The UK Computer Misuse Act, the EU directive on attacks against information systems, and similar laws elsewhere follow the same idea. Privacy laws add obligations if you see personal data. This is not legal advice; use a contract when the work is paid.

Bug bounty and safe harbor

A bug bounty or vulnerability disclosure program publishes the scope, the rules, and often a safe-harbor statement saying the organization will not pursue good-faith research that follows the policy. Read the excluded targets and techniques carefully; out-of-scope testing is not covered.

If you find something by accident

Stop, do not explore further, write down what you saw and when, and look for /.well-known/security.txt or a disclosure page. Report the minimum needed for the owner to reproduce it, and do not keep data you came across.

$ curl -s https://example.org/.well-known/security.txt
Contact: mailto:security@example.org
Expires: 2027-06-30T00:00:00Z
Policy: https://example.org/security/disclosure
Preferred-Languages: en

Check yourself

Recognition and the fix. Nothing here is a procedure.

1 / 3

A client asks you to test the SaaS platform they use. Who must authorize it?

Sibling techniques

Pages at the same depth, plus a lab and a glossary card for this one.

  1. MapIntroduction to ethical hacking: permission, method, and the reportEthical hacking is security testing that an owner asked for in writing.
  1. 01Scope, authorization, and the point of the workEthical hacking is defined by permission and purpose.
  2. 02Setting up a hacking lab: isolated networks, snapshots, and targets you ownBuild a practice lab on one machine: a hypervisor, a host-only network, a vulnerable-by-design target, a monitoring VM, and snapshots so every mistake can be undone.
  3. 03Lab environments you are allowed to breakA lab is an isolated place where failure is expected.

Practice

  1. LabScope deskDecide whether a situation is in scope, needs a written change, or stops.