Skip to main content
ciberatacs a Espanya i Andorra

Cyberattacks in Spain and Andorra: when must a personal data breach be reported?

Cyberattacks are an increasingly significant risk for businesses in Spain and Andorra. Ransomware, unauthorised access, data theft and security vulnerabilities can compromise not only business operations but also the personal data of customers, employees and suppliers.

The figures reflect this growing threat. In Spain, the National Cybersecurity Institute (INCIBE) handled 122,223 cybersecurity incidents in 2025, a 26% increase compared with the previous year. In Andorra, the National Cybersecurity Agency (ANC-AD) recorded 1,624 incidents in 2025, compared with 1,537 in 2024.

However, not every cyberattack automatically triggers a legal obligation to notify the data protection authority or inform the individuals affected. The key question is whether the incident has resulted in a personal data breach and, if so, what level of risk it poses to people’s rights and freedoms.

A recent example in Andorra: the CASS security incident

One incident that brought these risks into focus in Andorra involved the Social Security Fund (CASS). In November 2026, CASS reported that digital certificates had been stolen and used to access its company portal.

The incident involved a lookup function linked to the National Identification Number (NIA), which could be used to identify valid NIAs and obtain certain personal details, including names, surnames, sex, and dates and places of birth.

At the time of its communication, CASS stated that no direct access to its core databases containing health, financial or benefits information had been detected. It also confirmed that the relevant protocols had been activated and the competent authorities informed.

The incident illustrates why organisations need to assess not only whether an attack has occurred, but also which systems and categories of personal data may have been affected.

When must a personal data breach be reported in Spain?

In Spain, the main rules are set out in the General Data Protection Regulation (GDPR).

Under Article 33 GDPR, when a personal data breach occurs, the data controller must notify the Spanish Data Protection Agency (AEPD) without undue delay and, where feasible, within 72 hours of becoming aware of it.

There is an exception: notification is not required if the breach is unlikely to result in a risk to the rights and freedoms of individuals.

If the organisation acts as a data processor rather than a controller, it must notify the controller without undue delay after becoming aware of the breach.

The notification must describe, among other things, the nature of the breach, the categories and approximate number of individuals and records affected, the likely consequences, and the measures taken or proposed to address it.

When must affected individuals be informed?

Reporting a breach to the AEPD is not the same as informing the individuals whose data may have been compromised.

Under Article 34 GDPR, the controller must communicate the breach to affected individuals without undue delay when it is likely to result in a high risk to their rights and freedoms.

This communication must explain the nature of the breach in clear and plain language and provide information about its likely consequences and the measures taken or proposed to address it.

There are certain exceptions. Communication may not be required where:

  • Appropriate technical and organisational protection measures, such as effective encryption, made the affected data unintelligible to unauthorised persons.
  • Subsequent measures ensure that the high risk to individuals’ rights and freedoms is no longer likely to materialise.
  • Communicating individually would involve disproportionate effort. In that case, a public communication or a similar measure must be used to inform affected individuals effectively.

The distinction is important: a breach may need to be reported to the authority without necessarily requiring direct communication to every affected individual.

What are the obligations in Andorra?

In Andorra, the applicable framework is set out in Law 29/2021 of 28 October on the Protection of Personal Data.

Article 36 requires the data controller to notify the Andorran Data Protection Agency (APDA) of a personal data breach within 72 hours of becoming aware of it, where the breach is likely to pose a risk to the rights and freedoms of individuals. Notification is not required if such a risk is unlikely.

Article 37 addresses communication to affected individuals. Where the breach is likely to result in a high risk to their rights and freedoms, the controller must inform them without undue delay.

As under the GDPR, exceptions apply in certain circumstances, including where effective protection measures have rendered the data unintelligible or subsequent measures have eliminated the likelihood of a high risk.

Organisations operating in Andorra should therefore have internal procedures that enable them to assess incidents promptly and determine whether notification to the APDA or communication to affected individuals is required.

What should a company do after a cyberattack?

When a security incident occurs, the first hours are critical. A structured response can help contain the damage, establish what happened and meet the applicable legal obligations.

We recommend following these steps:

  1. Contain the incident. Isolate affected systems, block suspicious access, revoke compromised credentials and take immediate steps to prevent further unauthorised access.
  2. Investigate what happened. Identify the systems involved, the possible entry point, the duration of the incident and the categories of personal data that may have been affected.
  3. Assess the risk. Consider the nature and sensitivity of the data, the number of individuals affected, the potential consequences and the likelihood of harm.
  4. Determine whether notification is required. Assess whether the incident must be reported to the AEPD or APDA and whether affected individuals must also be informed.
  5. Document and improve. Record the incident, the assessment carried out, the decisions taken and the corrective measures implemented.

It is essential to document the assessment even when the organisation concludes that notification is not necessary. This helps demonstrate accountability and provides a basis for improving security measures.

Why a response plan matters

In our experience, incidents often reveal weaknesses that go beyond the initial attack: cloud infrastructure that has not been properly configured, production databases exposed to the Internet, inadequate access controls, or insufficient logging and monitoring.

In these circumstances, it is important to establish what actually happened and distinguish between confirmed facts, potential exposure and activity that remains under investigation. Suspicious traffic or an exposed system does not, by itself, prove that personal data were accessed or extracted.

A response plan helps organisations define responsibilities, escalation procedures, technical actions and communication channels before an incident occurs. It also makes it easier to coordinate IT teams, management, legal advisers and, where necessary, external specialists.

You can read more about how to prepare a response plan for a security incident.

In Andorra, organisations can also consult the CASS information on security incidents for an example of how an incident may be communicated.

How can we help after a cyberattack?

A cyberattack can create technical, legal and organisational challenges at the same time. Companies need to understand the scope of the incident, assess the potential impact on personal data and determine which obligations apply.

We support businesses in assessing personal data breaches, determining whether notification to the AEPD or APDA is required, preparing communications to affected individuals and coordinating the legal response to security incidents.

Our aim is to help organisations respond promptly, meet their data protection obligations and strengthen their procedures to reduce the risk of future incidents.

If you need help writing Data Protection regulations, contact us!

Company name:
LEGAL IT GLOBAL 2017, SLP
Purpose:
Providing the service.
Sending the newsletter.
Legal basis:
Compliance with the service provision.
Consent.
Recipients:
Your data will not be shared with any third party, except service providers with which we have signed a valid service agreement.
Rights
You may access, rectify or delete your data and exercise the rights indicated in our Privacy Policy.
Further information
See the Privacy Policy
Do you want to stay up to date on all legal news?

Subscribe to our newsletter for news, articles, and events.