
Criminal Lawyers in Privacy Support
Criminal defense against privacy violations, data theft, and non-consensual disclosure of secrets
Last updated:
What Is Disclosure of Secrets: Concept, Modalities and Penalties (Arts. 197-201 CP)
The crime of discovery and disclosure of secrets (Arts. 197 to 201 of the Spanish Criminal Code) is the main criminal-law tool for the protection of personal and family privacy and the fundamental right to data protection recognized in Art. 18.4 of the Constitution. The protected legal interest is plural: inviolability of communications, informational self-determination, professional secrecy and, in its business dimension, trade secrets. Consolidated Supreme Court case-law and constitutional doctrine have significantly expanded the scope of the type, incorporating unauthorized access to computer systems, the dissemination of intimate content through instant messaging and the illicit capture of data through spyware or similar programs.
The Criminal Code articulates several clearly differentiated modalities. Art. 197.1 sanctions the basic discovery: seizing papers, letters, emails or any other personal documents, or intercepting telecommunications, without the holder's consent. Art. 197.2 punishes unauthorized access, modification or use of personal data registered in files or computer media. Art. 197.3 aggravates the penalty when the author disseminates, reveals or transfers to third parties the discovered data. Art. 197.5 introduces the aggravated subtype of sensitive data (health, ideology, religion, sexual life, racial origin). Art. 197.7 typifies the dissemination without consent of intimate images or videos obtained with initial consent (the so-called "law against non-consensual sexting" or revenge porn). And Art. 197 bis, transposing Directive 2013/40/EU, sanctions unlawful access to computer systems and interception of electronic transmissions.
Penalties are notably severe. The basic discovery of Art. 197.1 carries 1 to 4 years' prison and 12 to 24 months' fine. Dissemination to third parties under Art. 197.3 raises the penalty to 2 to 5 years' prison. When the data affect sensitive information (Art. 197.5), penalties are imposed in their upper half, reaching 3 to 5 years' prison. Non-consensual dissemination of intimate images under Art. 197.7 sanctions with 3 months to 1 year' prison or 6 to 12 months' fine, aggravated when the victim is the author's spouse or partner, minor or person with disability. Unlawful access to computer systems under Art. 197 bis carries 6 months to 2 years' prison. Additionally, offences committed by public officials (Art. 198 CP) impose penalties in their upper half with absolute disqualification of 6 to 12 years, and those committed by the file or system manager with professional advantage (Art. 197.4) also escalate.
Technical defense is built on several consolidated axes. The first is the holder's consent: if access or capture occurred with express or tacit authorization, it falls outside the type; trust relationships, especially family and partner ones, require particularly careful analysis. The second is evidence nullity: when evidence has been obtained violating fundamental rights (access without judicial order to devices, capture without consent), Art. 11.1 LOPJ applies and derived evidence becomes void (fruit of the poisonous tree doctrine). The third axis is the absence of intent: accidental discovery of information or inadvertent access to an unlocked device does not integrate the type. The fourth is the conflict with the right to freedom of information under Art. 20 CE: when dissemination pursues general interest and respects proportionality (journalistic complaints or whistleblowing), the justification cause operates. And the fifth is the Barbulescu doctrine of the ECtHR and its national reception on workplace control of communications: it requires a prior, known and proportional policy.
In current forensic practice, privacy crimes have experienced exponential growth linked to digitalization and the massification of instant messaging. Proceedings concentrate on four major axes: couple crises with access to WhatsApp, emails or social networks and subsequent dissemination; labor conflicts with installation of keyloggers, GPS in company vehicles, reading of corporate emails without prior policy; trade-secret leaks by former employees who carry sensitive information to competition; and revenge porn and sextortion, which have generated a sustained rise in complaints. Organic Law 3/2018 on Data Protection, the European General Data Protection Regulation (GDPR) and ECtHR case-law on Art. 8 of the Convention have raised standards of evidentiary demand and criminal response. At Alonso Sala we intervene with forensic IT experts to prove access, trace IPs and validate digital chains of custody; with notaries for urgent certification of online content; and with the Spanish Data Protection Agency to coordinate immediate removal of harmful content. We treat each file with the conviction that in privacy crimes time is a decisive factor: digital evidence is volatile, and the difference between acquittal and conviction — or between effective reparation and consummated damage — is played out in the first 48 hours.
hub Specialist Lawyers in Privacy Defense
Business Secrets
Industrial espionage, leak of confidential information, and NDA violation by employees or competitors.
Digital Privacy Breach
Hacking, reading others' emails, installing spyware, and unauthorized access to computer systems.
Image Sharing / Sexting
Defense in non-consensual sexting crimes. Sharing intimate images obtained with or without permission.
Specialist Privacy Defense
We understand digital privacy like no one else. We know exactly where accidental access ends and criminal intent begins
- check Forensic IT experts for IP tracking and metadata analysis.
- check Urgent obtaining of intimate content removal orders (revenge porn).
- check Advanced technical defense in corporate espionage and data leaks.
- check Management of mitigating factors for mistake of fact or implicit consent.
Privacy Crimes in Spain: Discovery & Disclosure of Secrets — Defence Guide
Privacy crimes — discovery and disclosure of secrets (Art. 197 CP), illegal access to computer systems (Art. 197 bis), and non-consensual image sharing (Art. 197.7) — are among the fastest-growing offences in Spain. The digital environment has made private communications, intimate images and personal data especially vulnerable. These offences carry prison sentences of up to 5 years and require specialised technical defence combining legal expertise with digital forensics.
Penalty Table: Privacy Crimes
| Offence | Article | Description | Penalty |
|---|---|---|---|
| Discovery of secrets (basic) | Art. 197.1 | Seizing letters, emails, or intercepting telecommunications | 1 – 4 years prison |
| Disclosure to third parties | Art. 197.3 | Revealing or transferring discovered secrets | 2 – 5 years prison |
| Sensitive data (health, sexuality, ideology) | Art. 197.5 | Discovery/disclosure involving specially protected data | 3 – 5 years prison |
| Illegal access to computer systems | Art. 197 bis | Unauthorised access breaching security measures | 6 months – 2 years |
| Non-consensual image sharing (sexting) | Art. 197.7 | Sharing intimate images obtained with consent | 3 months – 1 year |
| Professional perpetrator | Art. 197.4 | Crime committed by person in charge of data files | Upper half + disqualification |
Key Defence Strategies
Consent Defence
If the victim gave express consent to access their communications or devices, the crime is excluded. The defence must prove that consent was freely given, specific and not obtained through deception.
Fruit of the Poisonous Tree
If the prosecution's evidence was obtained through illegal means (hacked WhatsApp, unauthorised wiretap), it is inadmissible under Art. 11.1 LOPJ. Challenging the chain of custody is critical.
Lack of Criminal Intent (Dolo)
If the access was accidental or by mistake (opening someone else's email by confusion, finding an unlocked phone), there is no criminal intent. The prosecution must prove the accused acted knowingly.
Whistleblowing Protection
EU Whistleblowing Directive (2019/1937) protects employees who report illegal activity through proper channels. Revealing secrets to expose crime may be justified, though procedure matters.
IP Attribution Challenge
An IP address alone may not identify the perpetrator. Shared connections (Wi-Fi, VPN, corporate networks) create reasonable doubt about who actually accessed the data.
Statute of Limitations
Basic privacy crimes prescribe in 5 years. Digital evidence is volatile — logs, IPs and server records may be deleted. Early action by both prosecution and defence is essential.
Key Case Law
The Supreme Court confirmed that accessing a partner's unlocked phone constitutes the crime of Art. 197.1 CP. The absence of a password does not imply consent. Privacy is presumed regardless of security measures.
Following ECHR Barbulescu v Romania, the Court ruled that employer monitoring of employee communications requires prior, clear policy notification. Without it, evidence is inadmissible and the employer may face criminal liability.
Clarified that Art. 197.7 requires images obtained WITH victim's consent (within a relationship) and shared WITHOUT consent. Images obtained covertly constitute a different offence (Art. 197.1).
Privacy
Is it crime to look at my partner's WhatsApp? expand_more
What if they sent me photo voluntarily and I forward it? expand_more
Can I record conversation I participate in? expand_more
Is it legal to put GPS in my employee/partner's car? expand_more
What do I do if naked photos of me posted online? expand_more
Is guessing Facebook password hacking? expand_more
Is it crime to forward sex video I received on WhatsApp? expand_more
What is 'sensitive data'? expand_more
Can my boss read my corporate emails? expand_more
What penalty for installing spyware (keylogger)? expand_more
If I find unlocked phone and look at it? expand_more
Can private detective record inside house? expand_more
When do these crimes expire? expand_more
What liability if company employee steals data? expand_more
Is it crime to reveal company secrets if saw illegal thing? expand_more
Can I use audio recorded without consent as evidence? expand_more
What is 'revenge porn' legally? expand_more
Is sharing screenshots of private conversations crime? expand_more
Does it matter if victim is public figure (famous)? expand_more
Can I access my minor child's email? expand_more
Difference between this crime and defamation? expand_more
Reputation Defense in the Digital Era
Crimes against honor have undergone radical transformation with digitalization. Defending these proceedings requires technical preservation of digital evidence: notarial records, screenshot certification, geolocation and IP identification.
Looking for a Specialist Privacy Support Lawyer in Spain?
We offer specialized criminal defense in courts across Madrid and the rest of Spain. We handle each Specialist Privacy Support case with the urgency and technical rigor it requires from day one.
Do you need specialised legal assistance?
The judicial system is complex. We have the criminal-law specialisation and technical resources required to take on the defence.