
Specialist Cybercrime Attorneys in Spain
English-speaking cybercrime defense attorneys across Spain. Hacking, phishing, ransomware, DDoS. IP attribution challenges & chain of custody audits.
Cybercrime covers conduct such as unlawful access to computer systems or hacking (Article 197 bis of the Spanish Criminal Code (CP)), the discovery and disclosure of secrets (Article 197 CP), computer damage or ransomware (Article 264 CP), and computer fraud (Article 249.1.a CP). Penalties range from 6 months' imprisonment for unlawful access up to 4 years for the discovery and disclosure of secrets, or 6 years for aggravated computer fraud. With more than 15 years of experience, we work the electronic evidence, the digital chain of custody, and the attribution of authorship to dismantle the prosecution's case.
You are under investigation for a cybercrime: what it means and what happens next
These proceedings rarely start with an arrest: they start with a request to the network operator, a device image or a complaint from the injured company, and the suspect finds out weeks later when the court summons arrives. The applicable offence depends on the conduct. Unauthorised access to an information system by breaching its security measures carries 6 months to 2 years' imprisonment (Art. 197 bis 1 CP). Seriously deleting or altering another party's data, programs or electronic documents carries 6 months to 3 years, rising to 2 to 5 years plus a fine where the circumstances of Art. 264.2 CP apply. And obtaining a non-consented transfer of assets through computer manipulation is punished as fraud, with 6 months to 3 years (Art. 249.1.a CP).
What to do (and what not to do) before making a statement
- Do not touch the devices or delete anything. Deletion shows up in the forensic image and is read as concealment. It also destroys the metadata that usually proves the access was authorised or that several people used the machine.
- Ask for the digital chain of custody from day one. Hashes of the copies, the imaging record, who seized the device and when. A broken chain is the most effective challenge in these cases, and it can only be raised if the paperwork is requested in time.
- Do not reply in writing to the injured company. Self-drafted explanatory emails are later produced as an admission and, in computer offences, they usually supply precisely the technical detail the prosecution was missing.
- Gather the evidence of your authorisation to access. The contract, the acceptable-use policy, credentials assigned to you, internal tickets or the email asking you to act. Authorisation, even informal, rules out Art. 197 bis CP.
Cybercrime: Concept, Types, Penalties and Digital Defense (Arts. 197-264 ter CP)
Cybercrime covers the set of offenses committed through information and communication technologies, regulated dispersedly in the Spanish Criminal Code: discovery and disclosure of secrets (Arts. 197-201 CP), illicit access to computer systems (Art. 197 bis), computer damage and system obstruction (Arts. 264-264 ter), computer fraud (Art. 249.1.a CP), banking fraud and phishing, digital identity theft (Art. 401 CP), threats and harassment by digital means (Arts. 169-172 ter), child pornography (Art. 189 CP) and grooming (Art. 183). Supreme Court doctrine has consolidated criteria on electronic evidence, digital chain of custody, validity of forensic dumps and constitutional limitations on technological interventions. The protected legal interest is plural: privacy, secrecy of communications, integrity of computer systems, patrimony and collective security.
The commission modalities have proliferated at the pace of technology. Hacking covers unauthorized access to systems by breaching security measures, creation or distribution of exploits and introduction of backdoors. Phishing and its variants (spear-phishing, smishing, vishing, spoofing, CEO fraud) constitute technical fraud combined with social engineering, where "banking mules" are frequently accused as necessary cooperators. Ransomware and DDoS attacks are computer damage crimes that can affect critical infrastructure. Cryptocurrency fraud (rug pulls, fraudulent ICOs, crypto Ponzi schemes, mixing) requires specialized blockchain traceability. Paradigmatic current cases are SIM swapping, voice-cloning deepfakes, AI-driven digital cloning, labor intrusions (corporate espionage Art. 278 CP) and attacks on financial, health and energy sector infrastructure.
The statutory penalties are severe and modulated by type and aggravators. Illicit access to systems (Art. 197 bis CP) carries 6 months to 2 years' prison; aggravated, up to 5 years if it affects critical infrastructure or is executed in an organization. Disclosure of secrets (Art. 197 CP) carries 1 to 4 years' prison in its basic form; aggravated, up to 7 years if data is sensitive, if the victim is a minor or if dissemination occurs. Computer damage (Art. 264 CP) carries 6 months to 3 years' prison; aggravated (Art. 264 bis), 2 to 5 years; when critical infrastructure is attacked (Art. 264 ter), up to 6 years. Computer fraud carries 6 months to 6 years' prison. Identity theft (Art. 401 CP), 6 months to 3 years' prison. Grooming and child pornography offenses carry penalties of 1 to 9 years. Additionally, habitual are disqualifications from technological professions, forfeiture of equipment and servers and civil compensation for patrimonial and reputational damage.
The technical defense rests on four consolidated axes. First, IP attribution challenge: case-law recalls that an IP address identifies a connection, not necessarily the user behind the keyboard; shared WiFi networks, dynamic IPs, VPN/Tor use and device malware sow reasonable doubt. Second, digital chain of custody: forensic dump must be performed with hash function (SHA-256, MD5) certifying integrity under ISO 27037 standard; any breach leads to evidentiary nullity (Art. 11 LOPJ). Third, absence of intent: in the "banking mule" deception must be proven (false job offer, fraudulent loan) that excludes criminal will; in cases of involuntary file download (cache, Telegram groups, unopened ZIP) knowledge must be excluded. Fourth, nullity of technological interventions: police use of trojans (Art. 588 septies LECrim), IMSI-catcher interventions, remote searches and requests to Facebook, Google or Microsoft require reasoned and proportionate judicial authorization; excesses open the door to evidence inadmissibility.
In current forensic practice we observe exponential growth of cybercrime. The Budapest Convention (Council of Europe Cybercrime Convention 2001 and its Second Additional Protocol 2022), the NIS2 Directive on cybersecurity, the EU AI Act (Regulation 2024/1689), the MiCA Regulation on crypto-assets, Organic Law 1/2025 on Justice Service Efficiency and Supreme Court case-law on electronic evidence configure a rapidly evolving regulatory framework. The UDEF, the Technology Investigation Brigade (BIT) and the Civil Guard's telematic crime teams have advanced forensic capabilities. At Alonso Sala, with more than 15 years of experience, we approach each case coordinating certified computer experts (CDFE, GCFE, EnCE), blockchain and crypto traceability experts, chain-of-custody specialists and, where necessary, AI and deepfake experts. We connect with disclosure-of-secrets crimes and data-protection compliance when GDPR/LOPDGDD violation concurs.
Our Cyber-Defense Strategies
IP Attribution
IP is not an ID. We challenge the automatic connection judges make between "Line Holder" and "Crime Author". We demonstrate third-party access possibilities (open WIFI, malware, shared use) to sow reasonable doubt.
Hash Integrity
Pure technique. If the "Hash" (cryptographic digest) of the police file does not match exactly the seized original, it means it has been altered. We verify radical NULLITY of poorly guarded digital evidence.
"Mule" Defense
For those accused of receiving fraudulent transfers (Phishing). We prove they were victims of deceit ("social engineering") and acted without intent, believing they were doing a lawful job. We turn the accused into a victim.
WhatsApp Challenge
Screenshots are worthless. If the accusation relies on screenshots, we systematically challenge them demanding metadata or the original device. Without the original "log" file, evidence fails.
ART. 197 BIS Hacking & Computer Intrusion
The Criminal Code harshly punishes "unauthorized access" to information systems by breaching security measures. It is the "Hacker's" crime.
Entering is enough. No need to steal data. Merely bypassing the password is a crime
Beware: creating or distributing hacking programs (exploits, keyloggers) is also a crime
If a company is hacked, the penalty skyrockets. Legally, the legal entity's "privacy" is protected
ART. 248 CP Online Fraud: Phishing & Spoofing
Cyber fraud is the fastest-growing crime. From "Phishing" (impersonating a bank via email) to "Spoofing" (faking caller ID or SMS to appear legitimate). We defend victims who lost their savings demanding bank civil liability, and accused "money mules" who acted without intent.
ART. 172 TER Cyberstalking & Privacy
Harassment through social media, WhatsApp, or fake profiles ("Catfishing") severely alters victims' lives. We secure digital evidence through notarial acts and technological certifiers. We also address crimes against privacy, such as "Sexting" or unauthorized access to devices.
Digital Typologies
Hacking & Intrusion (Art. 197 bis)
Defense against authorized access accusations, password breaches, and 'Backdoor' systems.
Phishing & Online Fraud
Defense of banking 'mules', spoofing, CEO fraud, and computer manipulation (Art. 248).
Ransomware & Sabotage
Corporate data hijacking, malicious encryption, and computer damage crimes (Art. 264).
Secrets Disclosure
Digital espionage, communications interception, sexting, and discovery of confidential data.
SIM Swapping & Carding
Fraudulent SIM duplicates, account draining and card fraud. PSD2 bank claims.
Deepfakes & AI Crimes
Deepfakes, voice cloning, AI CEO fraud and EU AI Act compliance.
Online Identity Theft
Fake profiles, catfishing, digital identity usurpation and account theft (Art. 401 CP).
Cryptocurrency Fraud
Fake ICOs, rug pulls, crypto Ponzi schemes and Bitcoin laundering. Blockchain traceability.
Why Alonso Sala in Cybercrime?
Because we do not delegate the technical part. Our lawyers work side by side with computer engineering experts. In court, citing laws is not enough; you have to know how to explain to the Judge what a VPN, a Hash, or a Man-in-the-Middle attack is.
We have been defending both ethical 'hackers' unjustly accused and companies victims of sabotage for years. We know both sides of the digital trench.
- Certified Computer Experts Network.
- Digital Chain of Custody Specialists.
- Experience in crypto scams and blockchain.
- Technical defense in National Court.
Cybercrime in Spain: Hacking, Phishing & Digital Fraud — Defence Guide
Cybercrime encompasses illegal access to computer systems (Art. 197 bis CP), computer damage and ransomware (Art. 264 CP), phishing and digital fraud (Art. 249.1.a CP), and the production or distribution of hacking tools (Art. 197 ter). Spain's prosecution of cybercrime has intensified dramatically, with specialised units in the National Police (BIT) and Guardia Civil (GDT) leading investigations. Defence requires a unique combination of criminal law expertise and advanced technical knowledge.
Penalty Table: Cybercrime
| Offence | Article | Description | Penalty |
|---|---|---|---|
| Illegal access to systems | Art. 197 bis | Unauthorised access breaching security measures | 6 months – 2 years |
| Interception of data | Art. 197 bis.2 | Intercepting non-public data transmissions | 3 months – 2 years |
| Production/supply of hacking tools | Art. 197 ter | Creating or distributing tools designed for cybercrime | 6 months – 2 years |
| Computer damage (basic) | Art. 264.1 | Deleting, damaging or making data inaccessible | 6 months – 3 years |
| Aggravated damage (critical infrastructure) | Art. 264.2 | Affecting essential services or critical infrastructure | 2 – 5 years prison |
| Cyber fraud (phishing) | Art. 249.1.a | IT manipulation to obtain unlawful transfer of assets | 6 months – 3 years |
Key Defence Strategies
IP Attribution Challenge
An IP address does not identify a person. Shared Wi-Fi networks, VPNs, Tor exit nodes and NAT configurations mean multiple users may share one IP. The prosecution must prove the accused was the actual user at the relevant time.
Chain of Digital Custody
Digital evidence is extremely fragile. If the police failed to image the hard drive with a write-blocker, if hash values don't match, or if evidence was handled improperly, the defence can seek exclusion of the entire digital evidence chain.
Authorised Security Testing
Ethical hacking and penetration testing carried out with the system owner's authorisation is legal. If the defendant had a written engagement contract, bug bounty agreement or responsible disclosure policy, there is no criminal offence.
Lack of 'Breaching Security Measures'
Art. 197 bis requires that security measures were breached. If the system had no password, no firewall, or the access point was public, the element of 'breaching security' may be absent, negating the offence.
Key Case Law
The Supreme Court confirmed that 'access' requires effectively entering the system, not merely attempting it. The prosecution must prove: (1) access occurred, (2) it was unauthorised, and (3) security measures were breached. Port scanning alone does not constitute the offence.
The Court ruled that ransomware attacks may constitute a concurrent offence of computer damage (Art. 264) and extortion (Art. 243 CP). The encryption of data satisfies the 'damage' element even if data is technically recoverable upon payment.
In phishing operations, the Court distinguished between the organiser and the 'money mule' (account holder). The mule's liability depends on proof of knowledge that the funds were illicit. Wilful blindness may suffice, but mere negligence does not.
FAQs
Is an IP address enough to convict me?
What if police seize my laptop?
Am I liable if I only received money and forwarded it ('Mule')?
Is spying on my partner's WhatsApp a crime?
What is 'computer damage' crime?
What if servers are abroad?
Is using VPN or Tor a crime?
What is CEO fraud?
Can I be tracked if I deleted everything?
What is 'Grooming'?
Is downloading pirated movies a crime?
Can they record me with a trojan (cam/mic)?
What is a DDoS attack?
Company liability if hacked?
What is 'Sim Swapping'?
How to defend child porn (download) case?
Are screenshots valid proof?
What is crypto scam?
When does cybercrime expire?
What is 'Catfishing' or online identity theft?
Cybercrime and Digital Impersonation Defense
Cybercrimes are the fastest-growing criminal category. Defense requires technical mastery of digital evidence and case law on the validity of evidence obtained from private systems.
Cybercrime Modalities
Specialized defense in each type of cybercrime and computer crime:
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.