The main computer offences
Unlawful access to systems (hacking)
Article 197 bis.1 punishes anyone who, by breaching security measures and without authorisation, accesses an information system or enables another person to access it, or remains in it against the will of the person entitled to exclude them. This includes getting into another person's email, social media or cloud storage by guessing or stealing their password.
Interception of data
Using technical devices to intercept non-public transmissions of data made from, to or within an information system (art. 197 bis.2).
Tools for committing offences
Producing, acquiring or supplying programs designed to commit these offences, or other people's passwords and access codes, with that intention: imprisonment of 6 months to 2 years or a fine of 3 to 18 months (art. 197 ter).
Computer damage and attacks on systems
Deleting, damaging, altering or making inaccessible another person's data, programs or electronic documents (art. 264), or interrupting the operation of a system (art. 264 bis), as happens with ransomware or denial-of-service attacks.
Penalties
| Offence | Penalty |
|---|---|
| Unlawful access to systems (art. 197 bis.1) | Imprisonment of 6 months to 2 years |
| Interception of data (art. 197 bis.2) | Imprisonment of 3 months to 2 years or a fine of 3 to 12 months |
| Programs or passwords for committing offences (art. 197 ter) | Imprisonment of 6 months to 2 years or a fine of 3 to 18 months |
| Damage to data or programs (art. 264.1) | Imprisonment of 6 months to 3 years |
| Aggravated computer damage: criminal organisation, especially serious damage, essential services or critical infrastructure (art. 264.2) | Imprisonment of 2 to 5 years and a fine of one to ten times the loss caused |
| Interruption of systems (art. 264 bis.1) | Imprisonment of 6 months to 3 years |
| Interruption with aggravating circumstances (art. 264 bis.2) | Imprisonment of 3 to 8 years and a fine of three to ten times the loss |
If the interruption significantly harms the activity of a business or a public authority, the penalty is imposed in its upper half. The penalties for both offences are also increased if another person's personal data are used to access the system or to gain the trust of a third party.
What you do in the next few hours is decisive. Call us before making any statement.
Other offences committed by computer means
- Computer fraud and fraudulent use of cards.
- Discovery of secrets and distribution of intimate images, which we explain under disclosure of secrets.
- Extortion and sextortion.
- Harassment through social media and fake profiles.
If your company suffers an attack
- Isolate the affected equipment without switching it off or deleting anything.
- Keep the logs, emails and messages from the attacker.
- Commission a computer forensics report that documents the attack with proper safeguards.
- Report the attack to the police and assess your notification obligations if personal data have been affected.
- Do not pay a ransom without advice: you may not recover the data and you may be financing new attacks.
If you are under investigation
Digital evidence must be obtained and kept with proper safeguards. The defence reviews the lawfulness of the searches of devices, the chain of custody of the copies and the real attribution of authorship: an IP address or an account does not, on its own, identify a person. If you do not speak Spanish, you are entitled to an interpreter at every stage of the proceedings.
Tell us about your case: the first consultation is free and without obligation.
Frequently asked questions
Is it an offence to get into my partner's phone or email?
Yes. Accessing their accounts or devices without authorisation by breaching their security measures is an offence, and if their secrets are discovered or disclosed, the penalty is higher.
What is the penalty for hacking a social media account?
Unlawful access to an information system is punished with imprisonment of 6 months to 2 years, in addition to the penalties for whatever is done with the account afterwards.
What should I do if my data are held hostage by ransomware?
Do not delete anything, isolate the equipment, keep the evidence, commission an expert report and report it to the police. Take advice before making any decision about the ransom.
Is an IP address enough for a conviction?
Not on its own. An IP address identifies a connection, not the person who was using it. Other evidence linking it to the accused is needed.
How is a computer offence proved?
With a computer forensics report that documents the facts and preserves the evidence with a reliable chain of custody.