Skip to content

Lesson 12 of 13 · 12m

Legal Lines and Ethics

Statute, GDPR, terms of service, and ethics are four independent gates — rules of engagement get written at E-001.

"It was public" is not a legal defense. Four independent gatekeepers decide whether your collection was lawful — statute, data-protection law, platform terms, and ethics — and they don't consult each other. Passing one gate says nothing about the other three.

Statute

In the US, the load-bearing law is the Computer Fraud and Abuse Act. Van Buren v. United States (June 2021) narrowed "exceeds authorized access" — the Court held the clause covers people who access parts of a system they have no rights to at all, not users who misuse access they legitimately have. That was a relief for researchers, but it drew the bright line sharply: authenticating with leaked credentials is squarely unauthorized access. The credential's availability doesn't grant you the right to use it.

For scraping, hiQ Labs v. LinkedIn is the case that matters. The Ninth Circuit ruled in 2019, and reaffirmed in 2022 post-Van Buren, that scraping public pages likely doesn't violate the CFAA — no gate was bypassed. The case settled in December 2022 without resolving the contract question: courts were friendlier to scraping public data than LinkedIn's terms of service were, and a ToS breach remains a contract problem and an account-termination problem even where it isn't a crime.

Outside the US the map shifts but the shape holds: the UK's Computer Misuse Act (1990) criminalizes unauthorized access the same way, and most jurisdictions draw their line at authentication rather than collection. The global constant: reading public pages is defensible; logging in with someone else's keys never is.

Data protection law

GDPR is the EU gatekeeper, and it doesn't care that the data was findable. Correlating an EU resident's public posts into a dossier is processing personal data, and processing requires a lawful basis — for investigative work usually legitimate interest, which requires a documented balancing test: why your interest outweighs their privacy, why you collected what you collected and nothing more. Data minimization is the compliance mechanic, not a suggestion. The US equivalent is a patchwork — state privacy laws, sector rules — and the operative habit is the same: write down the basis before you collect, and collect only what the scope question requires.

Terms of service

X, LinkedIn, and Meta all prohibit scraping and automated collection in their ToS. Enforcement is practical before it's legal: rate limits, fingerprinting, account suspension. Your sock puppet dies when you're careless, not when you're unlucky — and a terminated puppet mid-investigation is why compartmentation exists. ToS violations are the cheapest way to lose a case's account infrastructure and the fastest way to convert a lawful investigation into a dispute.

Ethics

Some lines have no legal gray zone because they aren't legal questions at all:

  • Minors' data. Don't collect it, don't retain it, don't report it. If a pivot lands there, stop and reassess scope.
  • Medical information. Same handling: out of scope, always.
  • Doxxing victims as targets. If your subject is someone being harassed, you are their stalker's tool unless you are their advocate. Know which side you're on.
  • Interaction. Passive public observation only. Pretexting — fake recruiter calls, fabricated personas engaging the target — is social engineering wearing an OSINT costume, and it needs written authorization you almost certainly don't have.
  • Adjacent parties. The target's family and unrelated tenants on shared infrastructure get minimal collection and no publication.

Rules of engagement

Every case file carries a written RoE block, drafted at E-001 alongside the scope: jurisdictions in play, data classes that are off-limits, who approves escalation, when a puppet burns, and the conditions under which the whole investigation stops and hands to counsel. The investigators who survive are the ones who wrote their boundaries down before the evidence tempted them.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.