Skip to content
AS
Alonso Sala
CRIMINAL LAWYERS
ES
Legal Analysis

Disclosing Secrets vs Breaching Official Secrets: How Access to Information Makes the Difference

calendar_todayJune 17, 2026

Last updated:

lightbulbKey Takeaways

  • check_circleArt. 197 CP: unauthorised access and disclosure
  • check_circleArt. 417 CP: legitimate access through office, then leak
  • check_circleThe difference lies in how data was accessed
  • check_circleCorrect classification is key for the defence

Quick answer

The distinction between disclosing secrets (Art. 197 of the Criminal Code) and breaching official secrets by a public authority or official (Art. 417) turns entirely on how the information was accessed. Article 197 presupposes unauthorised access to data that invaded another person's privacy. Article 417, by contrast, punishes an official or authority who discloses information they obtained legitimately in the course of their duties. Two individuals may leak the same reserved information and yet be charged with different offences. The Supreme Court clarified this boundary in its judgment resolving cassation appeal 3274/2023.

One of the most sensitive situations in criminal proceedings involving state actors is the leak of reserved information. An official, a police officer or a public figure passes on data that they obtained in the course of their duties. The immediate question is which criminal offence applies. The answer is not automatic: it depends, in the words of the Supreme Court, on how access to the information was obtained.

Two distinct offences for the same conduct

Article 197 of the Criminal Code (CP) protects personal privacy and confidentiality. It punishes a person who, without authorisation, takes possession of another's papers, letters, messages or personal data, or accesses computer or telecommunications systems without permission, and then discloses the information. The premise of the offence is clear: access was unauthorised. The provision covers both private individuals and officials acting outside the scope of their powers.

Article 417 CP, found among the offences committed by officials against constitutional guarantees, starts from a different factual premise: the authority or public official who reveals secrets or information of which they became aware by reason of their office or post. Here the access was entirely lawful; what becomes unlawful is the subsequent disclosure. The offence punishes disloyalty to the duty of confidentiality, not unlawful intrusion.

The key: how access was obtained

In the judgment resolving cassation appeal 3274/2023 (dated 26 March 2026), the Supreme Court draws a precise line between the two offences. The Chamber begins from a simple but consequential premise: two people may disclose the same reserved information and yet face different charges if the way they obtained it differs.

The distinguishing element is exclusively the origin of access:

  • Where access was unauthorised — because the person acted outside their competence or without any legal basis — subsequent disclosure falls under Article 197 and, where the author is an official, under the aggravated Article 198 CP.
  • Where access was legitimate by reason of their post — because the person had that right of knowledge in the exercise of their duties — improper disclosure falls under Article 417 CP, regardless of whether the content disclosed is identical.

The articles involved and their structure

Articles 197 and 198 CP form the core of the offences against privacy. Article 197 criminalises unauthorised access and the disclosure of personal data. Article 198 aggravates the penalties of Article 197 where committed by an authority or official outside the permitted cases, adding disqualification penalties. Both share an essential premise: access to the information was not authorised.

Article 417 CP operates on a different plane: it presupposes the legitimacy of access and criminalises subsequent disloyalty to the duty of confidentiality. The penalties include special disqualification from public employment or office, which has far-reaching consequences for the career of the official charged. The difference is not merely academic: the penalty, the competent court and the prosecutors involved all vary depending on which offence applies.

Relevance for the classification of leaking cases

Leaks of reserved information are among the most sensitive matters in criminal proceedings involving institutional actors. A classification error may have significant procedural consequences: nullities, inadmissibility of evidence, a change in the competent court or a substantial change in the applicable sentencing framework.

The doctrine set out by the Supreme Court in the judgment discussed serves as a direct reference for:

  • Determining whether the prosecution has chosen the correct offence in its provisional charge sheet.
  • Building a defence based on the nature of access — legitimate versus unauthorised — where the facts allow it.
  • Raising the possible mismatch between the charged offence and the proven facts, and seeking a reclassification that fits the evidence.

Concurrence of provisions and the limits of each offence

A common question is whether Articles 197/198 and Article 417 CP can apply simultaneously to the same facts. The Supreme Court concentrates its analysis on the precise delimitation of each offence, emphasising that they have mutually exclusive premises as regards the origin of access. Articles 197/198 require unauthorised access; Article 417 requires legitimate access. Where, in a single case, an official obtained part of the information legitimately and another part without authorisation, a separate analysis by data block would be required, but simultaneous application of both provisions to the same facts would not be available.

The ruling therefore provides a robust interpretive criterion for refining the classification in complex cases involving leaks of different kinds, which is particularly useful where the facts span several defendants with different levels of authorised access to the information.

Frequently asked questions

What is the difference between Article 197 and Article 417 of the Criminal Code on secrets?expand_more

Article 197 punishes a person who accesses private data or reserved information without authorisation and then discloses it, protecting the privacy of the person affected. Article 417 targets specifically the authority or public official who, having obtained those data legitimately by reason of their office, improperly discloses them. The decisive factor is not what is disclosed but how access to it was obtained.

Can Article 198 apply alongside Article 197?expand_more

Yes. Article 198 aggravates the offences under Article 197 when committed by an authority or public official outside the cases permitted by law. But this form of the offence requires, like Article 197, that access to the information was unauthorised. Where the official obtained the data legitimately through their duties and then discloses them, the applicable provision is Article 417, not Article 198.

Why does this distinction matter for the criminal defence?expand_more

The classification determines the sentence, the competent court and the public prosecution bodies involved. An incorrect classification may lead to procedural nullities or a different outcome at trial. Identifying the applicable offence from the outset is therefore essential to building an effective defence against charges of leaking reserved information.

What if the official accessed the data without authorisation and then disclosed it?expand_more

Where access was unauthorised, the conduct falls under Article 197 and, because it was committed by an official, under the aggravated Article 198, which provides a higher penalty. Article 417 applies only where access was legitimate and the official then breaches the duty of confidentiality. Where the same facts involve both types of access, an analysis of each data block separately may be required, though the Supreme Court ruling focuses on the precise delimitation of each offence.

vpn_key

gavelDo you need criminal defense in this area?

We are criminal defense lawyers specializing in disclosure of secrets. We act urgently to protect your rights.

View expertisearrow_forward
gavel

Case law discussed

The line between disclosing secrets and breaching official secrets lies in how the information was accessed

This analysis discusses a ruling of the Criminal Chamber of the Spanish Supreme Court. You can see its summary and full citation on our case-law page.

balanceView the ruling· Appeal 3274/2023arrow_forward

Related Articles

View allarrow_forward

Knowledge is power, but strategy is key.

What you read here is just the beginning. Transform information into active defense by contacting our team of experts.

call