Skip to content
A
Alonso Sala
CRIMINAL LAWYERS
ES

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

lock

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

OffenceArticleDescriptionPenalty
Discovery of secrets (basic)Art. 197.1Seizing letters, emails, or intercepting telecommunications1 – 4 years prison
Disclosure to third partiesArt. 197.3Revealing or transferring discovered secrets2 – 5 years prison
Sensitive data (health, sexuality, ideology)Art. 197.5Discovery/disclosure involving specially protected data3 – 5 years prison
Illegal access to computer systemsArt. 197 bisUnauthorised access breaching security measures6 months – 2 years
Non-consensual image sharing (sexting)Art. 197.7Sharing intimate images obtained with consent3 months – 1 year
Professional perpetratorArt. 197.4Crime committed by person in charge of data filesUpper 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

Doctrina TSWhatsApp access without password is still a crime

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.

Doctrina TSEmployee monitoring: Barbulescu doctrine applied

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.

Doctrina TSNon-consensual image sharing: Art. 197.7 elements

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).

quiz

Privacy

Is it crime to look at my partner's WhatsApp? expand_more
YES, absolutely. Art. 197.1 CP punishes with 1 to 4 years prison anyone who 'seizes papers, letters, emails, or any personal documents'. Supreme Court confirmed convictions EVEN when phone had no password. Simple access ALREADY is consummated crime.
What if they sent me photo voluntarily and I forward it? expand_more
It's crime (Art. 197.7 CP). Even if victim sent you intimate image voluntarily, if you share with third parties without consent, you commit crime punishable by 3 months to 1 year prison. 'Sexting Law'. consent was ONLY for you, NOT to redistribute.
Can I record conversation I participate in? expand_more
YES. Recording YOUR OWN conversation not secret disclosure crime, even if other party doesn't know. But diffusing it CAN be if seriously affects other's privacy. Recording THIRD-PARTY conversations (where you don't speak) is ALWAYS crime.
Is it legal to put GPS in my employee/partner's car? expand_more
Without consent or prior notice, it's CRIME. Workplace: GPS legal only if worker informed. Personal: placing tracking beacon to control partner is privacy crime + stalking/harassment.
What do I do if naked photos of me posted online? expand_more
1) Do NOT delete anything (make notarial act or digital certification of URL). 2) Report IMMEDIATELY to Police. 3) Request urgent content removal from Data Protection Agency. 4) Criminal complaint. Blocking dissemination is priority.
Is guessing Facebook password hacking? expand_more
YES. Don't need to be computer expert. Crime consists of 'accessing without authorization' breaching security measures. Guessing password or using one victim gave you for OTHER purpose (e.g. Netflix) to read private messages is crime.
Is it crime to forward sex video I received on WhatsApp? expand_more
YES. Criminal chain of custody reaches ALL who disseminate. Anyone receiving and forwarding (retweeting or sharing) commits SAME crime Art. 197.7 CP, even if not who recorded video originally. Each forward is new crime.
What is 'sensitive data'? expand_more
Specially protected data: health, ideology, religion, sexual life, racial origin, or gender violence victims. Revealing this data AGGRAVATES penalty to upper half (prison 3 to 5 years). Core of privacy.
Can my boss read my corporate emails? expand_more
Only if prior, CLEAR and NOTIFIED policy on computer use exists, warning email is professional and may be monitored. If NO warning (Barbulescu ECHR doctrine), boss commits crime reading them.
What penalty for installing spyware (keylogger)? expand_more
Art. 197 bis punishes with 6 months to 2 years prison anyone producing, acquiring, or facilitating computer programs designed for these crimes (spyware). Installing it AGGRAVATES penalty. Plus, secret discovery crime for use.
If I find unlocked phone and look at it? expand_more
Still crime if privacy invasion. Fact there's NO password does NOT imply privacy waiver. If accessing gallery or chats, you're committing offense. Privacy presumed, no 'ownerless phone'.
Can private detective record inside house? expand_more
NEVER. Domicile is INVIOLABLE (Art. 18 CE). Detectives can only investigate public places or visible from public. Recording with telephoto or microphones inside home is very serious crime.
When do these crimes expire? expand_more
Basic crime expires in 5 years. If aggravated (sensitive data, mass dissemination), period may be longer. Crucial to report ASAP to secure digital evidence (logs, IPs). Digital evidence is volatile.
What liability if company employee steals data? expand_more
If company had NO security measures (Criminal Compliance/GDPR), may have subsidiary civil liability and EVEN criminal if benefited from secret stolen from competitor (legal entity criminal liability).
Is it crime to reveal company secrets if saw illegal thing? expand_more
Complex. 'Whistleblowing' directive protects corruption whistleblower, but there are CHANNELS. Revealing trade secrets to press or competitors without using reporting channels may NOT be covered and be criminal.
Can I use audio recorded without consent as evidence? expand_more
IF YOU are conversation party, YES (valid trial evidence, STC 114/1984). If NOT party (recording other's conversation), evidence is NULL for violating fundamental right to communication secrecy (Art. 11.1 LOPJ).
What is 'revenge porn' legally? expand_more
Art. 197.7 CP. Dissemination of intimate images/videos WITHOUT victim consent. Penalty: 3 months to 1 year prison or 6 to 12 months fine. Aggravating if victim is ex-partner (gender violence). Plus, high civil compensation.
Is sharing screenshots of private conversations crime? expand_more
DEPENDS. If YOUR OWN conversation (you speak), generally NO (unless seriously affects other's privacy). If sharing THIRD-PARTY conversation (not participant), YES it's crime. Context matters: intimate vs professional.
Does it matter if victim is public figure (famous)? expand_more
Public persons' privacy has LOWER protection in PUBLIC INTEREST topics (ECHR). But in strictly PRIVATE realm (sex, health, family), have SAME protection. Being famous does NOT eliminate personal privacy right.
Can I access my minor child's email? expand_more
IF under 14 years, YES (parental authority allows supervision). Between 14-18 years, grey area: courts consider have certain digital autonomy. Better: open supervision with their knowledge. Spying on 17-year-old child can be crime.
Difference between this crime and defamation? expand_more
Secret Discovery/Disclosure protects PRIVACY (accessing/sharing private info). Defamation protects HONOR (discrediting statements). Can CONCUR: e.g. sharing intimate conversation (secrets) that also discredits (defamation). Penalty accumulation.

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.

call