Digital Evidence in Spain

Criminal law guide

Phones, computers and chats as evidence: digital evidence in Spain

When the Spanish police may access your phone or computer, why you do not have to hand over passwords, what the chain of custody means and how digital evidence is challenged in court.

In short

The Spanish police may seize your phone or computer, but as a rule may only examine its contents with court authorisation (Art. 588 sexies a LECrim). As a suspect you do not have to give your PIN or passwords. Whether digital evidence holds up in court depends on how the device was accessed, how the data was secured and how it was analysed, and on errors being raised in time.

What counts as digital evidence in Spain?

Digital evidence is any information stored or transmitted electronically that enters criminal proceedings, such as chats, emails, photos and videos, metadata, location data, browsing histories or the entire contents of a phone or computer. In Spanish it is called prueba digital or prueba tecnológica. In many offences the decisive evidence lies entirely on a device. How that device was obtained, secured and analysed therefore often decides the outcome of the case.

May the police examine my phone without court authorisation?

As a rule, no. Since the reform by Organic Law 13/2015, the Spanish Criminal Procedure Act expressly regulates access to computers, phones and storage devices. Seizing a device does not in itself allow access to its contents. That requires a reasoned court order (Art. 588 sexies a LECrim). This also applies to devices seized outside a home, for example during an arrest in the street (Art. 588 sexies b LECrim).

There is an exception in cases of urgency. Where a legitimate constitutional interest is at stake and immediate access is essential, the police may examine the data themselves. They must then inform the judge immediately, and within 24 hours at the latest, in writing and with reasons, and the judge confirms or revokes the measure within 72 hours (Art. 588 sexies c.4 LECrim). If this review is missing, the defence has a point of attack.

Do I have to hand over my PIN or passwords?

No. The judge can order people who know the system to provide the information needed for the examination. But the suspect is expressly exempt from this duty, as are those who need not testify for family reasons or are bound by professional secrecy (Art. 588 sexies c.5 LECrim). So do not hand over a PIN, unlock code or passwords before you have spoken to your lawyer, even if the officers press you.

Has your phone or computer been seized?

Call us before you hand over passwords or agree to an examination. We check whether access to your data was lawful.

What is the chain of custody and why does it matter?

The chain of custody (cadena de custodia) is meant to ensure that the data analysed in court is exactly what was seized, with no change between seizure and the expert report. According to the case law of the Tribunal Supremo, it concerns the reliability of evidence, not its lawfulness. A gap in the chain of custody does not therefore automatically make the evidence inadmissible. But the court must examine whether there are well-founded doubts about the identity of the data, and such doubts benefit the accused.

Anyone challenging the chain of custody must state specifically at which point, by which act and to what extent it was broken. General objections are not enough for the courts.

Does a different hash value prove tampering?

Not necessarily. The hash value is a kind of digital fingerprint used to check whether a copy matches the original. If two hash values match, identity is established. If they differ, however, it does not necessarily follow that the contents were changed. The difference may arise, for example, because the device had already been viewed by the court or was later copied forensically again. A defence that relies only on the hash value without comparing the contents therefore has little chance of success. What is needed is an expert who proves an actual change in the relevant data.

When must I raise errors in digital evidence?

As early as possible. In the abbreviated procedure (procedimiento abreviado), under which most criminal cases are tried, the parties can raise, among other things, breaches of fundamental rights and the nullity of evidence at a separate preliminary hearing before the trial court (audiencia preliminar), which precedes the trial (Art. 785.1 LECrim). Anyone who does not object to a procedural error at the decisive moment risks being unable to raise it on appeal or in cassation, even where a fundamental right is at stake. The strategy against digital evidence must therefore be in place before the trial, not developed only on appeal.

How is digital evidence effectively challenged?

  • Examine the access. Was there a reasoned court order, and does it cover exactly this device and this data?
  • Identify the defect specifically. When, by whom and to what extent was the chain of custody broken?
  • Obtain your own expert report that examines the contents and does not stop at the hash value.
  • Check the origin. If the device comes from a house search, the lawfulness of that search also matters.
  • Raise the objection in time so that it is preserved for the appeal.

Evidence obtained directly or indirectly in breach of fundamental rights has no effect (Art. 11.1 Ley Orgánica del Poder Judicial). This consequence can extend to everything derived from it.

Which mistakes should you avoid?

  • Handing over your PIN or passwords because the officers are putting pressure on you.
  • Agreeing to a voluntary examination of your phone.
  • Deleting data or closing accounts. This can often be proven and harms your defence.
  • Writing to others about the allegation by chat or messaging app.
  • Instructing an expert without first agreeing with your lawyer what they should examine.

Read more

Mobile phone analysis in Spain

Article on the limits of examining phones and the consequences of unlawful access.

Read the article

Chain of custody in criminal proceedings

How the chain of custody works and when it is worth challenging.

Read the article

Exclusion of evidence in Spain

When evidence may not be used and how the defence raises it.

Read the article

Who writes these guides

The guides are written in our firm under the direction of David Fechenbach, founder and Managing Partner, member of the Madrid Bar Association (ICAM 122770) and associate lecturer in criminal procedure at the Universidad de Alcalá. He defends before the criminal courts throughout Spain, regularly including the Audiencia Nacional, and works with English-speaking clients directly in English.

Frequently asked questions about digital evidence in Spain

Do I have to give the police my PIN or password?

No. The duty to assist in examining a device expressly does not apply to the suspect (Art. 588 sexies c.5 LECrim). Do not hand over a PIN, unlock code or passwords before you have spoken to your lawyer.

May the police search my phone without a judge?

As a rule, no. Only in cases of urgency may the police examine the data themselves, and they must inform the judge within 24 hours at the latest. The judge confirms or revokes the measure within 72 hours (Art. 588 sexies c.4 LECrim).

What is the chain of custody?

The chain of custody (cadena de custodia) is meant to show that the data analysed is the same as the data seized. A gap does not automatically make the evidence inadmissible. But well-founded doubts about the identity of the data benefit the accused.

Does a different hash value prove tampering?

Not necessarily. A difference can arise, for example, from a later viewing by the court or a new forensic copy. What is convincing is an expert report that compares the contents and proves an actual change in the data.

When must I object to errors in digital evidence?

As early as possible, and in the abbreviated procedure at the latest at the preliminary hearing before the trial court (audiencia preliminar, Art. 785.1 LECrim). Anyone who does not object to an error at the decisive moment often cannot raise it on appeal.

This guide is for general information and does not replace legal advice on individual cases.

Criminal defence team of Fechenbach Abogados

Arrange a consultation with your criminal defence lawyer

Our lawyers will get back to you within 24 hours , in English.

Specialist criminal defence throughout Spain, with immediate action in arrests, speedy trials and criminal investigations. Legal precision, trial experience and strategy from the very first moment, in English.

Opening hours
Monday – Friday

09:00 – 14:00
16:00 – 19:00

CRIMINAL EMERGENCIES 24 H

+34 652 28 99 82
Arrest, summons, speedy trial

Contact
Geprüft – Spanienberater.de · Deutschsprachiger Service