Module 1 Β· Lesson 2 Β· 15 minutes read

βš–οΈ Law and Ethics

What you CAN and CAN'T do, and what can get you in real trouble. No legal jargon β€” just facts.

πŸ“– Story Hook

In 2013, an MIT student named Aaron Swartz downloaded 4 million scientific articles from the paid JSTOR database. He wanted to make them free for everyone β€” that was his idealism.

JSTOR sued. The prosecutor demanded 35 years in prison and a $1 million fine under the CFAA law.

Aaron took his own life before the trial. He was 26 years old.

This is a story about how the law doesn't care about your intentions. Downloading someone else's data without permission β†’ prison time. Even if you're like Robin Hood.

🚨 Main Rule

Without the owner's written permission β€” YOU CAN'T DO ANYTHING.

Even if you're just "taking a look". Even if you "didn't hurt anyone". Even if "the company is stupid and to blame". The law looks at one thing: was there permission or not.

πŸ“œ Laws in Simple Terms

πŸ‡·πŸ‡Ί Russian Criminal Code Article 272 β€” "Unauthorized Access"

What: any access to information on a computer without permission.

Punishment:

Real case: in 2022, a student from Voronezh hacked into the university database to change grades. He got 3 years probation + a lifetime conviction. He won't be hired for IT jobs again.

πŸ‡·πŸ‡Ί Russian Criminal Code Article 273 β€” "Creating Malicious Programs"

What: writing or distributing viruses, ransomware, trojans.

Punishment: up to 4 years in prison. With serious consequences β€” up to 7.

Special note: publishing malware code on GitHub "for educational purposes" can fall under Article 273. Be careful with "hello-world ransomware".

πŸ‡ΊπŸ‡Έ US CFAA β€” "Computer Fraud and Abuse Act"

What: the American equivalent. Stricter than the Russian Criminal Code.

Punishment: up to 10 years for the first offense. Up to 20 years for repeat offenses. Extradition is possible from 90+ countries.

Special note: CFAA applies extraterritorially. If you hack an American website from Russia β€” the US can demand your extradition. It's not always successful, but there's a risk.

πŸ‡ͺπŸ‡Ί GDPR β€” "European Data Protection Law"

What: leaking personal data of EU citizens.

Fine: up to €20 million or 4% of the company's annual turnover. For individual hackers, they usually get punished under local law + the company gets a GDPR fine.

βœ… What You CAN Do

There are 4 legal ways to apply your hacking skills:

❌ What You CAN'T Do (even "for fun")

πŸ€” Gray Area: What's Not Always Clear

Can you ping someone else's server?

Technically β€” yes. Ping and public nmap scans of public websites are usually not considered an attack. But if you do a massive scan (10,000 packets/second) and the admin notices β€” they might file a "DDoS attempt" complaint. Better not do that.

Can you look for vulnerabilities on an unfamiliar website?

No. Even if you don't do anything β€” it's still unauthorized access. If the website doesn't have a bug bounty program β€” don't touch it.

Can you use a found vulnerability to write "you have a problem"?

That's a gray hat. The law is against you. But 95% of companies will say "thank you" and won't sue. 5% will sue. You decide: risk vs wanting to help.

πŸ€– Vibe-task: Ask Claude

Open Claude and ask:

I'm a beginner white hat. Give me 5 bug bounty programs for NEWCOMERS
with a low entry threshold in 2025-2026. For each, specify:
- Platform (HackerOne / Bugcrowd / own)
- Which domains are in scope (what you can practice on)
- Minimum payout
- What they usually respond to (XSS / IDOR / business logic)
- Program URL

You'll get specific programs to apply to after the course. Save the list β€” it'll come in handy in Module 9.

πŸ’‘ Main Principle of an Ethical Hacker

"When in doubt β€” DON'T HACK. Find where you can do it legally".

Everything has a legal way: bug bounty, CTF, your own VM. Why risk a lifetime conviction when there are at least 4 ways to do the same thing legally and get paid?

🎬 What's Next

Lesson 1.3 β€” money. Real salaries for junior pentesters, seniors, red team. Stories of people who switched to security from scratch and how much they earn now.

← Lesson 1.1 Lesson 1.3: Careers and Salaries β†’