info@societejuridique.com
Madrid: Paseo de la Castellana 216 8 ª Planta
Alicante: Av. Ansaldo Nº31, local 16
24h emergencies: 669 30 21 13

Social media:

Article 417 Spanish Criminal Code: Disclosure of official secrets

Article 417 punishes the public authority or official who reveals secrets or information obtained by reason of the office which are not to be divulged, with an aggravated frame where serious harm results and a separate frame where the secrets belong to a private individual.

Wording of Article 417 of the Spanish Criminal Code

1. The public authority or official who reveals secrets or information of which that person has knowledge by reason of the office or position and which are not to be divulged shall incur a fine of twelve to eighteen months and special disqualification from public employment or office for a term of one to three years.

If serious harm to the public interest or to a third party results from the disclosure referred to in the preceding subparagraph, the penalty shall be imprisonment of one to three years and special disqualification from public employment or office for a term of three to five years.

2. Where the secrets belong to a private individual, the penalties shall be imprisonment of two to four years, a fine of twelve to eighteen months and suspension from public employment or office for a term of one to three years.

Working translation prepared by Société Juridique from the consolidated Spanish text published by the Official State Gazette. It has no official status: the only authoritative version is the Spanish original, available at the Official State Gazette and reproduced verbatim in our Spanish-language entry for this provision. Source: Organic Law 10/1995 of 23 November, the Spanish Criminal Code.

Sentencing range. A fine of twelve to eighteen months and special disqualification of one to three years, rising to imprisonment of one to three years where serious harm results and to two to four years where the secrets belong to a private individual.

Elements of the offence

  1. The status of public authority or official.
  2. Knowledge of the secret or information obtained by reason of the office or position.
  3. That the information be one which is not to be divulged, which requires a legal or regulatory basis for that reservation.
  4. An act of disclosure, and, for the aggravated frame, serious harm to the public interest or to a third party.

Defence strategy

Whether the information is reserved. The offence requires the information not to be divulgeable. Information which is publicly accessible, which is subject to the duty of transparency or which had already been disclosed by the administration itself does not satisfy that requirement.

Absence of serious harm. The aggravated frame requires serious harm to the public interest or to a third party. Where no harm is identified, or where it is speculative, the basic frame of a fine applies and the custodial penalty is excluded.

Reporting of unlawful conduct. The disclosure of information in order to report an unlawful act may be covered by the legitimate exercise of a right under Article 20.7, and by the framework on the protection of persons who report breaches. Documenting the internal channels used first is essential.

Attribution of the leak. Where the information circulated among several officials, the attribution of the disclosure to a determinate person requires technical evidence. The access logs and the distribution of the document are the material upon which that attribution is contested.

Are you under investigation or facing charges in Spain? Société Juridique acts for foreign nationals throughout Spain, with offices in Alicante and Madrid and a 24-hour custody line. +34 669 30 21 13 or enquire online.

This entry is provided for information only and does not constitute legal advice. The application of any provision depends on the circumstances of the individual case and requires examination of the case file by a qualified lawyer.

Logotipos-abogacia-scje
Paseo De La Castellana 216 8º 28046 Madrid
Alicante – Playa de San Juan Av. Ansaldo 31, local 16, 03540 Alicante
Londres: 20 Wenlock Road, N1 7GU, Reino Unido
París: 72 Faubourg St Honoré, 75008, Francia
info@societejuridique.com

Société de Conseil Juridique et Expert es un despacho de abogados con sedes en Madrid, Alicante, Londres y París, especializado en defensa y acusación penal, delitos económicos y corporativos y derecho tecnológico. Trabajamos con orientación estratégica en procedimientos penales complejos, propiedad intelectual y análisis forense avanzado, y prestamos consultoría jurídica, compliance y escudos de protección a particulares y empresas. Atendemos desde Alicante y Madrid, con consulta online en toda España y asistencia al detenido 24 horas. Resuelva sus dudas en las preguntas frecuentes o solicite una primera consulta.

Copyright © 2026 Société de Conseil Juridique et Expert S.L.

EspanolEnglishFrancaisРусскийItalianoDeutsch
WhatsApp · Urgencias 24h