
Criminal Lawyers in Privacy Support
Criminal defense against privacy violations, data theft, and non-consensual disclosure of secrets
Discovery and disclosure of secrets (Art. 197 CP) punishes anyone who, in order to breach another's privacy and without their consent, seizes their messages, emails, data or documents, or intercepts their communications or uses listening or recording devices; the basic penalty is 1 to 4 years in prison and a fine of 12 to 24 months. It rises to 2 to 5 years in prison where the discovered data are disseminated, revealed or transferred to third parties (Art. 197.3 CP), and is imposed in its upper half where specially protected data —health, ideology or sexual life— are affected (Art. 197.5 CP). Disseminating intimate images obtained with consent but disclosed without it is punished under Art. 197.7 CP.
You are accused of disclosure of secrets: what it means and what happens next
These proceedings usually start with a complaint from the affected person — a partner, former partner, business associate or employer — supported by screenshots, and enter the investigating court for the area. Art. 197.1 CP punishes with 1 to 4 years' imprisonment and a 12-to-24-month fine anyone who, in order to discover another's secrets or breach their privacy and without their consent, seizes their papers, emails, messages or personal documents, intercepts their communications or uses technical devices to listen, record or reproduce. What matters during the investigation is not what was read but three prior questions: whether there was consent, whether the device was shared, and whether there was a purpose of discovering secrets or breaching privacy.
What to do (and what not to do) before making a statement
- Stop accessing the account or the device. Every further access is logged by the provider and turns an isolated act into continuing conduct, which is precisely the framework that aggravates these cases.
- Keep the evidence of shared use. The phone contract in joint names, a session left open on a family computer, passwords known to both, or a history of joint use. Consent and shared use are the two defences that most often succeed.
- Do not share or forward what you obtained. Passing on what was discovered is punished separately and more severely under Art. 197.3 CP: forwarding a single screenshot can multiply the sentencing framework.
- Do not produce the material yourself in the family or civil case. Using material taken from the other party's phone in a family case evidences the purpose the offence requires and is often the origin of the later criminal complaint.
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 European Court of Human Rights case law on employer monitoring of employee communications and its national reception: 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.
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 work on digital privacy cases in depth. We know exactly where accidental access ends and criminal intent begins
- Forensic IT experts for IP tracking and metadata analysis.
- Urgent obtaining of intimate content removal orders (revenge porn).
- Advanced technical defense in corporate espionage and data leaks.
- 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 the European Court of Human Rights case law on employer monitoring of employee communications, the Court ruled that such monitoring 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?
What if they sent me photo voluntarily and I forward it?
Can I record conversation I participate in?
Is it legal to put GPS in my employee/partner's car?
What do I do if naked photos of me posted online?
Is guessing Facebook password hacking?
Is it crime to forward sex video I received on WhatsApp?
What is 'sensitive data'?
Can my boss read my corporate emails?
What penalty for installing spyware (keylogger)?
If I find unlocked phone and look at it?
Can private detective record inside house?
When do these crimes expire?
What liability if company employee steals data?
Is it crime to reveal company secrets if saw illegal thing?
Can I use audio recorded without consent as evidence?
What is 'revenge porn' legally?
Is sharing screenshots of private conversations crime?
Does it matter if victim is public figure (famous)?
Can I access my minor child's email?
Difference between this crime and defamation?
No complaint from the aggrieved party, no proceedings (Art. 201 CP)
Offences of discovery and disclosure of secrets are as a rule semi-public: Art. 201.1 CP requires a complaint from the aggrieved person or their legal representative before proceedings may be brought for the offences in that Chapter. It is not enough for the facts to reach the court by another route; without that complaint a procedural requirement is missing, and its absence — or its filing by someone lacking standing — is something the defence must examine from the outset.
The rule has closed exceptions. Under Art. 201.2 CP, no complaint is needed to proceed for the conduct in Art. 198 CP —committed by an authority or public official abusing their office outside the cases permitted by law— nor where the offence affects the general interest or a plurality of persons, nor where the victim is a minor or a person with a disability in need of special protection. In those cases proceedings may start of the court's own motion.
The other side of the rule is the victim's pardon: Art. 201.3 CP provides that a pardon by the aggrieved person or their legal representative extinguishes the criminal action, without prejudice to Art. 130.1.5.º, second paragraph, of the Code. That provision requires the pardon to be granted expressly before judgment is handed down, with the court hearing the aggrieved person beforehand, and states that in offences committed against minors or persons with disabilities in need of special protection affecting eminently personal legal interests the pardon does not extinguish criminal liability. Neither the complaint nor the pardon is a mere formality: they decide whether proceedings can begin and whether they can end.
Recording your partner or your boss: when it is a crime
Art. 197.1 CP punishes with one to four years' prison and a fine of twelve to twenty-four months anyone who, in order to discover the secrets or violate the privacy of another and without their consent, seizes their papers, letters, emails or other documents or personal effects, intercepts their telecommunications or uses technical devices to listen to, transmit, record or reproduce sound or images. The key lies in the words "of another": what is protected is the other person's communication or secret.
Hence the distinction that generates most queries. Under settled doctrine of the Constitutional Court and the Supreme Court, recording a conversation in which you yourself take part does not fall under Art. 197.1 CP: the person recording intercepts no third-party communication and seizes no secret they were not addressed with; they merely document what is being said to them. It is a different matter to record or intercept conversations between third parties in which you do not participate, to place hidden microphones or cameras in private spaces, or to access a partner's phone, email or accounts: such conduct falls squarely within Arts. 197.1 and 197.2 CP, regardless of the personal or employment relationship between the parties. Installing monitoring or geolocation apps on someone else's phone without consent belongs to the same category.
That your own recording is not criminal does not mean anything may be done with it. Art. 197.7 CP punishes with three months to one year's prison or a fine of six to twelve months anyone who, without the affected person's authorisation, disseminates, reveals or transfers to third parties images or audiovisual recordings of that person obtained with their consent in a dwelling or any other place beyond the sight of third parties, where disclosure seriously harms their privacy; and with a fine of one to three months anyone who, having received them, passes them on without consent. Penalties are imposed in their upper half where the conduct is committed by a spouse or a person linked by an analogous relationship, where the victim is a minor or a person with a disability in need of special protection, or where there is a profit motive. The move from evidentiary use to dissemination is therefore the point at which conduct that was not criminal may become so.
All pages in this practice area
Need urgent criminal defence?
Contact our specialist criminal defence lawyers. We evaluate your case confidentially.
Tools for your case
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.