CrimeCases
File No. 3518 · Crimes2020s · Costa Rica

Costa Rica ransomware attacks

In April and May 2022 attacks that the Conti ransomware gang claimed hit Costa Rica's public sector, cutting tax and customs platforms and leaking data it said it had taken. The government refused to pay, and President Rodrigo Chaves declared a national emergency on 8 May 2022; the decree was repealed in February 2025.

Sources: 11
Case fileCosta Rica ransomware attacks2020s · Costa Rica
No. 3518
Attack began17 or 18 April 2022
Emergency declared8 May 2022
PlaceCosta Rica, public sector
AttackerConti ransomware group (claimed)
OutcomeNo ransom paid; emergency decree repealed 2025

Introduction

In April and May 2022, attacks that the Conti ransomware gang claimed hit Costa Rica's public sector. Tax and customs platforms were cut off for weeks, staff fell back on paper procedures, and the country's newly sworn-in president declared a national emergency, a measure usually kept for natural disasters and pandemics. The government refused to pay the ransom. The gang published large volumes of data it said it had taken.

Infosecurity Magazine described the decree as believed to be the first response of its kind by a government to a cyberattack. Several figures in the case are disputed: the start date, the size of the ransom, the losses and the reward on offer. The reporting names the group but identifies no individual behind the intrusions.


The first attacks

The Finance Ministry was the first agency to report trouble. On Monday, 18 April, the ministry said some of its servers had begun failing, and it suspended its Tax Administration Portal (ATV) and its Tax and Customs platform (TICA) while it analysed what had happened. Revista E&N and Expansion date the start to 17 April. Digital treasury services stayed down for weeks, and procedures, signatures and stamps reverted to paper, which disrupted customs clearance and tax payments.

The attackers then spread to other bodies. The Associated Press reported attacks on the social security agency's human resources system and on the Labor Ministry. The Ministry of Science, Innovation, Technology and Telecommunications, known as MICITT, confirmed the list of affected agencies at a press conference. Its head, Paola Vega Castillo, said MICITT's own website had only had its content changed, with no sign that data had been taken. She said a process of extracting email archives had been detected at the Instituto Meteorológico Nacional (IMN) and the telecommunications firm RACSA, and that the social security fund's human resources portal had been targeted. ThreatDown reported that the administrative systems of Jasec, the electricity board in Cartago, had been encrypted.


The ransom and the leak

Conti demanded $10 million from the Finance Ministry. The government declined. Outgoing president Carlos Alvarado said Costa Rica would not pay the gang any ransom, and Minister of the Presidency Geannina Dinarte later ruled out a payment as well. Because no negotiation took place, the group began leaking what it had taken. Its posts claimed access to about 800 servers and close to a terabyte of data, including tax portal databases and internal documents with names and email addresses of ministry staff. The group also said it had placed a large number of backdoors in public ministries and private companies, and would keep attacking until it was paid. In a message on its leak site, it said the whole affair could have been avoided had the government paid, and it warned of more serious attacks to come.

BleepingComputer reported a dump of 672 GB, and said the gang's leak site claimed that 97 per cent of it had been published. Those are the group's own figures, and no independent check of them appears in the reporting. The Finance Ministry said the customs data in the leak was not historical in nature.


A national emergency

Rodrigo Chaves was sworn in as president on Sunday, 8 May 2022. Expansion reported that he held his first meeting of the government council that day and announced a national emergency there, tying it to the attack on the Finance Ministry. BleepingComputer dated the decree to the same day. The Associated Press reported that the decree was published on the Wednesday, 11 May, and said the membership of the National Emergency Commission had not been announced yet.

The declaration refers to the attack as coming from "cybercriminals" and "cyberterrorists". Chaves was quoted saying that the government signed it "so that the country can defend itself from the criminal attack that cybercriminals are making us." The AP noted that an emergency of this kind is usually used for natural disasters or the COVID-19 pandemic, and that in theory it would let the government respond more quickly to the crisis.

Chaves blamed the previous administration for doing too little to prepare, and said years of under-investment in digital security had left the state exposed. In mid-May he told the country it was at war with what he called an international terrorist group, and said there were clear signs that people inside Costa Rica were helping Conti. No names or charges were given for those people in the reports.


Disputed damage

In its report on the emergency, the AP said the government had not estimated the losses, and that some systems at the Finance Ministry were still not working normally. Later figures differ and come from different people. ThreatDown reported that the attack was claimed to have caused $200 million in losses. Infosecurity Magazine quoted an OPSWAT executive, Benny Czarny, who said digital outages had been estimated at $200 million. NATO's cyber law toolkit cites a figure of $125 million from the Costa Rican Chamber of Foreign Trade. CR Hoy later reported that the attacks cost the country ₡13 billion, and affected tax collection, imports and exports, and the scheduling of medical appointments and surgeries.


Attribution and the reward

Conti had a record before Costa Rica. The Associated Press quoted a US State Department statement saying the group had been behind hundreds of ransomware incidents in two years, and that the FBI estimated more than 1,000 victims by January 2022, with payouts exceeding $150,000,000. Conti had also publicly backed Russia's invasion of Ukraine that year, and GovInfoSecurity described it as highly active against the US and its NATO allies. Conti claimed responsibility for the Costa Rica attack. BleepingComputer reported that UNC1756, a threat actor it linked to Conti, claimed the attack. ThreatDown quoted the leak message as saying the purpose was to earn money. Infosecurity Magazine described Conti as having links to the Russian state, but said it was unclear whether the Costa Rica attacks had political motives or were purely financial. Toby Lewis of Darktrace, quoted by Expansion, called the case a double-extortion campaign, in which stolen data is published to pressure the victim. Czarny, the OPSWAT executive, judged that the attacks were more likely an act of opportunity than retaliation.

On 6 May 2022, the US State Department offered up to $10 million for information on the identity or location of Conti's leaders, with a further $5 million for information leading to an arrest or conviction. Infosecurity Magazine gave the total as $15 million.


Later attacks and the decree's end

The attacks did not stop in May. On 31 May 2022 the social security fund confirmed a hack that morning. NATO's toolkit attributes that attack to the Hive group, which forced the fund to shut down critical systems, including its digital health record and its collection system, and allegedly demanded $5 million in bitcoin. The reporting gives no court finding on who carried it out.

The emergency lasted almost three years. CR Hoy reported in May 2025 that the decree had been repealed in February 2025 by Decreto Ejecutivo 44889. Gezer Molina, national director of cybersecurity at MICITT, told the outlet that the country now had a cybersecurity directorate, and that the matter had been passed to the National Emergency Commission, which set out the points the country had to improve. The reports do not say whether anyone was arrested or charged over the 2022 attacks.

On the record
First agency hitMinistry of Finance
Institutions hit27, per President Rodrigo Chaves
Ransom demanded$10 million (Conti's figure)
Government responseRefused to pay
US reward offer$10 million, plus $5 million for arrests or convictions
Reported lossesEstimates from $125 million to $200 million
Decree repealedFebruary 2025, Decreto 44889

Where this comes from

The sources.