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:

Criminal procedure guide · Spain

Technological investigation measures: article 588 LECrim, from wiretaps to police malware

Updated to LO 1/2026 and LO 1/2025 · Reviewed July 2026 · Author: Francisco Javier Martín Porras, criminal lawyer and court expert · SCJE team

Since 2015, all technological investigation (telephone and telematic interceptions, GPS trackers, cameras, imaging of phones and computers, remote searches with malware) is governed by articles 588 bis to 588 octies LECrim. These are the measures that decide the big cases and our specialty: law and forensic technique converge in them. Every breached requirement is a potential nullity.

In brief. In brief. Guiding principles: specialty, suitability, exceptionality, necessity and proportionality (art. 588 bis a). Reasoned judicial authorisation with catalogue offences and fixed maximum durations. Imaging a phone requires specific authorisation: the device is a “digital home”. Remote search (police malware) is the most invasive measure and the most restricted in use.

Practical keys

588 bis-octies
LECrim: complete regime of technological measures since 2015
18 meses
maximum total duration of telephone and telematic interception
1 mes
initial duration of remote search, extendable to 3

Where the big cases are decided and where the most nullities are won

Since the 2015 reform, all technological investigation is governed by articles 588 bis to 588 octies LECrim: telephone and telematic interceptions, ambient listening devices, image capture, tracking beacons, the imaging of phones and computers and remote searches with police malware. Every measure requires a reasoned judicial authorisation founded on the guiding principles of specialty, suitability, exceptionality, necessity and proportionality, with catalogue offences and fixed maximum durations.

These proceedings decide the large cases and are our specialty, because law and forensic technique converge in them. Our method is a complete technical and legal audit of each measure: enabling order, extensions, cessation and imaging; digital chain of custody with hashes, cloning and sealing; challenge of exploratory interceptions and of reasoning by mere reference to the police request; and our own forensic counter-expert reports on metadata, integrity and attribution of communications.

Provision by provision

The article 588 regime, measure by measure

Art. 588 bis a LECrim

Guiding principles

Every measure requires judicial authorisation founded on the principles of specialty (a specific offence, not general prospecting), suitability, exceptionality, necessity and proportionality. The interception “to see what comes up” is the most classic nullity of the system. Specialty is the principle that produces the most nullities: interceptions requested for one offence and exploited for another without extension, or orders investigating “criminal activities” without specification. STS 155/2022 and its concordant rulings summarise the standard: objective indications, a specific offence, an identified or identifiable subject. Everything else is prohibited prospecting.
Arts. 588 bis c to k LECrim

Common regime

They regulate the police request, the content of the order (facts, subjects, means, scope, duration), secrecy, reasoned extensions, cessation when the prerequisites disappear and the destruction of recordings once the case is closed. Every automatic or late extension is challengeable. We audit the file of each measure like a set of accounts: date of request, order, notification to the operator, cessation and destruction. Extensions signed after expiry, even by days, break the chain; and extension orders that do not assess prior results (copy-paste of the previous one) breach art. 588 bis f and fall.
Art. 588 ter LECrim

Telephone and telematic interception

Available for intentional offences with a maximum penalty of at least 3 years, organised crime, terrorism or offences committed through technological means. Initial duration of 3 months, extendable up to 18. It includes traffic data (with authorisation) and identification of holders by IP (art. 588 ter k): the retention and disclosure of data follows the European standard, a ground of constant litigation.
In practice

IP identification and traffic data

Identification by IP (art. 588 ter k) and the disclosure of retained data live under the European standard of La Quadrature and Prokuratuur: access only for serious crime and with prior judicial control. In minor frauds and petty offences, the massive disclosure of traffic data is a winnable battle. And the SITEL system produces metadata that we always request in full: audio files without their associated data cannot be verified.
Art. 588 quater LECrim

Ambient listening

The capture of oral communications with hidden microphones requires specific foreseeable encounters and especially well-founded indications, in serious offences; permanent and indiscriminate ambient listening is not allowed, nor in the home without reinforced justification. Ambient listening requires foreseeable “specific encounters”: microphones left open for weeks in a car or a cell without delimiting encounters are null (doctrine after STC 145/2014). We request the authorised recording plan and confront it with what was actually captured: excesses of time and place are excluded.
Art. 588 quinquies LECrim

Image, surveillance and GPS trackers

Image capture in public places and tracking and location devices (GPS beacons) require judicial authorisation for 3 months, extendable; the police may only place them without authorisation in urgent cases, with judicial validation within 24 hours. A tracker placed urgently and not ratified within 24 hours is a textbook nullity, and prolonged tracking without extensions as well. We request the complete logs of the device: installation dates, battery replacements (each access to the vehicle requires cover) and the chain of custody of the positioning data.
Art. 588 sexies LECrim

Search of devices

Access to the content of computers, phones and mass storage requires individualised reasoning, even if the device is seized during a lawful house search. Urgent seizure allows securing the device, but not accessing it: the examination waits for the order. Half of our nullities are born here. The phone is a “digital home” (STC 70/2002 avant la lettre and STS 489/2018): neither the consent of a detainee without a lawyer nor a generic entry order authorises the imaging. We verify the acquisition and analysis hashes, the tool used and the complete clone: when the prosecution only produces UFED screenshots without the full evidence, the devastating counter-expert report is ours.
Art. 588 septies LECrim

Remote search (police malware)

The use of software for remote and covert access to equipment is only possible for a closed catalogue (terrorism, criminal organisation, offences against minors, serious cybercrime), with an order specifying devices, scope, agents and a maximum duration of 1 month extendable to 3. It is the frontier of the system. Remote search is so invasive that its improper use taints entire cases: closed catalogue, identified devices, designated agents and short duration. If data appear in the case that could only have been obtained through undocumented remote access, forensic expertise can detect the trace of the installed agent: we have proved it and had it excluded.
Art. 588 octies LECrim

Data preservation (freezing)

It allows ordering the rapid preservation of data (data freezing) for 90 days, extendable, while the disclosure authorisation is obtained: the bridge tool with providers, today connected to the European e-evidence Regulation. The preservation order is the tool almost no one uses in time: 90 days of freezing while the disclosure is processed. For the defence too: we request the preservation of exculpatory data (cameras, access logs) before deletion cycles destroy them. The right to evidence begins with preserving it.
Measures at a glance

Summary table: measure, requirements and duration

MeasureLegal basisKey requirementsMaximum duration
Telephone and telematic interceptionArt. 588 ter LECrimIntentional offences with penalty of 3+ years, organised crime, terrorism or technological means3 months, extendable up to 18
Traffic data and IP identificationArt. 588 ter k LECrimEuropean standard: serious crime and prior judicial controlSubject to the authorising order
Ambient listeningArt. 588 quater LECrimSpecific foreseeable encounters and especially well-founded indications, serious offencesLimited to the authorised encounters
Image capture and GPS trackersArt. 588 quinquies LECrimJudicial authorisation; urgent placement requires validation within 24 hours3 months, extendable
Search of devicesArt. 588 sexies LECrimIndividualised reasoning even if the device was lawfully seizedDefined by the authorising order
Remote search (malware)Art. 588 septies LECrimClosed catalogue, identified devices, designated agents1 month, extendable to 3
Data preservationArt. 588 octies LECrimRapid freezing while disclosure authorisation is processed90 days, extendable
Common regimeArts. 588 bis c-k LECrimReasoned order, assessed extensions, cessation and destructionFixed per measure; late extensions fall

Summary drawn from the Spanish source page for orientation purposes. The applicable provisions are those in force at the relevant time; each case requires individual analysis by a criminal lawyer.

How we use it in your defence

A technical and legal audit of every measure

Original commentary by the firm, checked against the reference work in our library: Ley de Enjuiciamiento Criminal Comentada, Lefebvre-El Derecho, 13th edition, May 2026. In these measures law and forensic technique converge: every breached requirement is a potential nullity, and the exclusion of an unlawful interception drags down the evidence derived from it.

01

Complete technical and legal audit of each measure: order, extensions, cessation, imaging

02

Digital chain of custody: hashes, cloning, sealing and access to the complete material

03

Challenge of exploratory interceptions and of reasoning by reference to the police request

04

Our own forensic counter-expert reports: metadata, integrity and attribution of communications

Timeline

The life cycle of a technological measure

Phase 01

Police request and enabling order: facts, subjects, means, scope and duration, founded on the guiding principles of art. 588 bis a LECrim

Phase 02

Execution under secrecy: notification to the operator, recording plan and documented chain of custody of everything captured

Phase 03

Extensions and cessation: reasoned orders that assess prior results (art. 588 bis f); late or copy-paste extensions break the chain

Phase 04

Disclosure to the defence and challenge: complete material with metadata, verification of hashes and forensic counter-expertise; unlawful measures and their derivatives are excluded

Who this guide is for

Situations where article 588 decides the outcome

📞

Persons whose phones were intercepted

Interceptions require a specific offence, objective indications and an identified or identifiable subject. Exploratory wiretaps and extensions that do not assess prior results are challengeable and can bring down the whole investigative line.

📱

Persons whose devices were imaged

The imaging of a phone or computer requires the specific authorisation of art. 588 sexies LECrim, with integrity guarantees: acquisition hash, bit-by-bit clone and sealing. UFED screenshots without the complete evidence do not withstand a counter-expert report.

🚗

Persons tracked with GPS beacons

Trackers require judicial authorisation; urgent placement must be validated within 24 hours. We request the complete device logs: installation, battery replacements and chain of custody of the positioning data.

💻

Persons who suspect remote access to their equipment

Police malware is only lawful for the closed catalogue of art. 588 septies with an extraordinarily demanding order. Outside that framework the remote access is null by operation of law, and forensic expertise can detect the trace of the tool.

FAQ

Frequently asked questions on technological investigation measures

How long can telephone interceptions last?
Three initial months, extendable for equal periods up to a maximum of 18, always with reasoned orders that assess the results. Routine or late extensions, or extensions based solely on the police request, are challengeable and can bring down the entire subsequent line of investigation.
My phone was cloned during a search. Can they look at everything?
Only with a specific judicial authorisation for the device that weighs what is being sought and why (art. 588 sexies LECrim): the entry order is not enough. In addition, the imaging must guarantee integrity (hash, bit-by-bit clone, sealing). We audit each imaging technically and legally: it is where the most is won.
Is it legal for the police to use a trojan to enter my computer?
Only for the offences in the catalogue of art. 588 septies LECrim, with an extraordinarily demanding order and a limited duration. Outside that framework, remote access is null by operation of law. If you suspect such access in your case, forensic expertise can detect the trace of the tool: we have done it.

Speak to a criminal lawyer

In a fast-track case, the days you have are the case.

Criminal defence in English before the courts of Alicante and the rest of Spain, for residents and for visitors who have flown home.

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