Introduction to ethical hacking: permission, method, and the report
Ethical hacking is security testing that an owner asked for in writing. This page covers what the job produces, how an engagement runs from scoping to retest, and where the field is heading.
Diagram
One engagement from request to retest
Step 1 of 4
Request
An owner describes the system, the worry, and the window. Nothing is touched yet.
# Request # An owner describes the system, the worry, and the # window. Nothing is touched yet.
None, or assumed
Access, sometimes data
When the person stops
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.
Permission is the line
- What fails
- The same request can be a test or a crime. The difference is a signed scope that names the asset and the window.
- Who is affected
- The owner, their users, and you, if the scope is missing.
- What you would notice
- A target someone mentioned in chat with no document behind it.
- What you change
- Get the scope in writing before the first packet, and keep it with your notes.
The product is the report
- What fails
- A shell or a screenshot is not useful to the owner. A finding with impact, conditions, and a fix is.
- Who is affected
- The engineers who must prioritize the fix against other work.
- What you would notice
- A report that lists tool output without saying who is affected.
- What you change
- Write each finding so someone who was not there can reproduce the check and verify the fix.
Where the work is going
- What fails
- Identity providers, SaaS tenants, CI pipelines, and AI features are now the common entry points, more than open ports on a perimeter.
- Who is affected
- Organizations that still scope only an IP range.
- What you would notice
- A scope with network ranges and no mention of the tenant, the build system, or OAuth apps.
- What you change
- Scope the identity plane and the pipeline explicitly, and keep learning defenses as fast as techniques.
Kinds of engagement
A vulnerability assessment lists weaknesses broadly. A penetration test proves a few of them matter by showing impact within agreed limits. A red team exercise tests whether detection and response notice a realistic objective. A bug bounty invites many researchers under a published policy. Each has different rules, and a technique allowed in one may be out of scope in another.
Defensive roles use the same knowledge: detection engineers write rules for the techniques testers use, and incident responders recognize them in logs. Many people start on the defensive side because the practice environments are easier to build.
Why organizations pay for it
Attackers only need one path. A tester with the owner’s cooperation can look at the paths systematically, report them with a fix, and confirm the fix. Regulators and customers increasingly ask for evidence of that testing, so the report is also an audit artifact.
The value is in the fixes that land. A test with twenty findings and no retest has measured risk without reducing it.
How to start without breaking a rule
Build a lab you own (see Setting up a hacking lab), use public training ranges whose terms allow the exercises, and read disclosed reports from bug bounty programs to see how findings are written. Learn one defensive control for every technique you study.
- Lab VMs on a host-only network
- Public ranges that publish rules of engagement
- Disclosed reports for writing style
- One control for every technique
Check yourself
Recognition and the fix. Nothing here is a procedure.
A friend asks you to “check” their employer’s website. What do you need first?
Go deeper
Specific techniques, exercises, and glossary cards for this topic.
- 01Scope, authorization, and the point of the workEthical hacking is defined by permission and purpose. Includes the diagram and a defensive fix.
- 02Ethical hacking and the law: authorization, safe harbors, and disclosureWhy 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. Includes the diagram and a defensive fix.
- 03Setting 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. Includes the diagram and a defensive fix.
- 04Lab environments you are allowed to breakA lab is an isolated place where failure is expected. Includes the diagram and a defensive fix.
Exercises
- 01Scope deskEight situations. Decide whether the work is in scope, needs a written change, or stops.
- 02Terminal mission: Where a /26 endsThe authorization lists a /26, a short range, and one hostname. Check a colleague’s target file against it and find the two addresses that sit just past the boundary.
- 03Terminal mission: Scan only what the client signed forRead the authorization, then run a service scan against the three hosts it lists. The lab scanner refuses anything outside scope, just as your own process should.
- 04Terminal mission: An address the client no longer ownsThe client’s asset list is from December. Compare it with today’s Elastic IP allocations and CloudTrail to find the address that was released and may now belong to someone else.
- 05Terminal mission: Scans the rules of engagement did not allowThe rules of engagement ban brute-force scripts and the fastest timing template. Review the tester’s shell history line by line and list the commands that broke them.