Hacking, on purpose
Over the last several tutorials, you've learned how malware spreads, how firewalls filter traffic, how a DDoS attack floods a server, and how a data breach happens. Every one of those started with someone finding a weakness in a computer system.
Here's the twist: companies pay people to find those same weaknesses on purpose, before a criminal does. That's ethical hacking — deliberately trying to break into a system, with the owner's permission, so the weakness can be fixed instead of exploited.
Simple definition: an ethical hacker (also called a white hat hacker) uses the same tools and techniques as a criminal hacker, but does it legally — with written permission from the system's owner — and reports what they find instead of using it to cause harm.
The technical skill involved can be identical to what a criminal uses. What separates a crime from a job is one thing, and one thing only:
Black Hat
Breaks into systems without permission, for personal gain, to steal data, or just to cause damage.
IllegalWhite Hat
Breaks into systems on purpose too — but only after getting written permission, and reports the weakness so it can be fixed.
Legal & authorizedGray Hat
Finds a weakness without permission and doesn't mean any harm — maybe they even report it. Still not authorized to be there.
Risky / often illegalThe one rule that matters most: breaking into a computer system without permission is illegal — even if you don't damage anything, even if you're just curious, and even if you plan to tell the owner afterward. Good intentions don't make unauthorized access legal. Permission is what makes hacking ethical.
Inside a penetration test
When a company wants to know how secure its own systems really are, it hires someone to attack them on purpose. That's called a penetration test, or pentest for short — and the person doing it is a penetration tester.
A pentest usually follows the same basic path, from first look to fixed bug:
Recon (reconnaissance) comes first: quietly gathering public information about the target, like which software it runs or what its systems look like from the outside — the same first step a criminal would take, just done with permission.
Next, the tester runs scans and does manual digging to find a weakness: outdated software, a login page with no limit on password attempts, a form that doesn't check what's typed into it, and so on.
Once a weakness looks real, the tester exploits it safely — proving it can actually be used to break in, but carefully, without damaging real data, and strictly within whatever boundaries the company agreed to ahead of time.
Then comes the part a criminal would skip entirely: the tester writes a detailed report explaining exactly what was found, how it was found, and how serious it is. The company's engineers use that report to fix the weakness, often asking the same tester to check their work afterward.
Ever heard of a "bug bounty"? Instead of hiring one testing firm, many companies invite hackers everywhere to try to find bugs in their products — and pay real money for every valid one reported responsibly. Payouts can range from a few hundred dollars for a minor issue to tens of thousands for a serious one.
Find the vulnerability
You've been hired (with full permission!) to pentest four small websites. Each one has several features on the page, but only one of them hides a real vulnerability. Click the spot you think is the weak one.
Target 1 of 4
GrindHouse Coffee — Community Blog
A small coffee shop's website with a blog and a comment section.
Target 2 of 4
PixelPets Game Store
An online store for a video game, with a product catalog.
Target 3 of 4
Skyline Student Portal
A school's login page for checking grades and assignments.
Target 4 of 4
CloudDrop File Sharing
A site where users upload and share files with a link.
Why it matters
Penetration tester, security researcher, and ethical hacker are real, in-demand job titles — not just a hobby. Every company that has a website, an app, or customer data can be attacked, which means almost every company, from tiny startups to banks, hospitals, and video game studios, needs people who can find its weaknesses first.
Some ethical hackers work full-time for one company's security team. Others work for firms that get hired by many different clients to run pentests. And plenty more make money independently through bug bounty programs, submitting one valid report at a time — sometimes as their entire career.
What makes this path interesting is that it rewards exactly the kind of thinking you've been practicing in this series: noticing what a system assumes will never happen, and asking "but what if it did?" That curiosity — not a specific degree — is the real starting skill.
What makes it "ethical"
The techniques are the same as a criminal's. What keeps a pentest legal and ethical comes down to three rules, agreed to before any testing starts.
Get written permission first. Before touching anything, the tester and the company sign an agreement called a scope — it spells out exactly which systems can be tested, which techniques are allowed, and when.
Stay inside the agreed scope. If the scope says "test the login page," the tester doesn't go poking around in an unrelated system just because they're curious. Going outside scope can turn a legal test back into a crime.
Practice responsible disclosure. Report the vulnerability privately to the company first, and give them reasonable time to fix it — instead of posting it publicly and handing attackers a head start.
Remember: the technical skill of finding a weakness is the same whether you're a criminal or a professional. Permission, scope, and responsible disclosure are what make the difference between a career and a crime.
Check your understanding
Two students find the exact same weakness in their school's grading portal. One immediately emails the IT department describing exactly what they found. The other posts a video bragging about it on social media before telling anyone. Which one is acting more like an ethical hacker, and what's still missing from a truly by-the-book pentest?
Your answer:
Sample answer: the student who emailed IT is acting closer to an ethical hacker, because they practiced responsible disclosure — reporting privately instead of exposing the bug publicly. But strictly speaking, neither student had permission before testing the portal in the first place, so a real, by-the-book pentest would have needed a signed scope agreement before either of them started looking for weaknesses at all.
Quick quiz
1. What is the single biggest difference between a black hat hacker and an ethical (white hat) hacker?
2. What is a "bug bounty" program?
3. What is "responsible disclosure"?
Keep learning
You've learned how attackers and defenders think about computer systems, and how the same skills, used with permission, turn into a career. Next, see the actual bugs pentesters go looking for first, starting with the one that's topped the list of serious web vulnerabilities for years.
Part of the Cybersecurity Basics tutorial series.