Every technique in this course is a criminal act without authorization — the single element that separates a professional tester from a criminal is explicit, written consent.
Consider three people at three keyboards, all running the same tool against the same target:
example.com for fun.
Committing a crime in most jurisdictions.
example.com under a signed contract with the CISO.
Doing professional work.
Legally indistinguishable from Person A.
Relevant statutes for testers working in Switzerland sit in the Strafgesetzbuch (StGB / CP).
| Article | Offence | Maximum sentence |
|---|---|---|
| Art. 144bis | Datenbeschädigung — altering, deleting, or rendering data unusable without authorization | 3 years (5 for aggravated cases) |
| Art. 147 | Fraudulent misuse of a data-processing system — manipulating data for financial benefit; relevant when tests touch financial systems | 5 years |
| Art. 150 | Obtaining a service by deception — bypassing access controls on paid services | 3 years |
| Art. 179novies | Unauthorized acquisition of personal data — when testing scoops up personal data | 3 years |
Computer-crime and data-protection regimes are independent — authorization under StGB does not grant a free pass under data-protection law.
Both regimes require proportionality — access only the data necessary to demonstrate the finding.
During testing the tester finds evidence that the system was already compromised before testing began — attacker logs, foreign tools on disk, unexpected accounts.
The cost of one hour of legal consultation is trivial compared to the cost of a wrong move.
Stop and consult a lawyer when any of these arise:
Security researchers who discover vulnerabilities outside any contract and attempt responsible disclosure occupy a legal grey zone in Switzerland and the EU.
A junior developer at the client emails you: "Go ahead and test our staging environment." Is this authorization? What do you do?
No — do not begin work. Authorization requires a signed document from someone with authority to bind the organization, with explicit named scope. Politely acknowledge the email and request that the same instruction be captured in the formal engagement document. Written authorization protects both the tester and the client.
Next: Topic 06 — Client Consent and Ethics. The legal foundation becomes the practical engagement document.