ANCPI Ransomware Attack 2026: How ByteToBreach Compromised Romania’s Land Registry
Blog Post

ANCPI Ransomware Attack 2026: How ByteToBreach Compromised Romania’s Land Registry

MetaDefender
Threat Analysis
Data Loss Prevention
August 18th 2026
Share this Post
A ransomware attack exposed years of accumulated security debt, handing over the keys to an entire virtualized environment.
Tl;dr: A ransomware attack, claimed by ByteToBreach, was detected on July 13th, 2026. The attack compromised the IT infrastructure of Romania's ANCPI (National Agency for Cadastre and Land Registration), deleting over 100 (out of 700) virtual machines and reportedly exfiltrated roughly two million user records. Recovery is still underway, with e-Terra and related cadastral services being rebuilt inside Romania's Government Cloud, and no firm restoration date yet announced.
What Caused the ANCPI Breach?
In short: the breach of Romania's ANCPI was caused by a combination of exposed, unpatched internet-facing systems, compromised administrative credentials, password reuse, poor network segmentation, and years of accumulated security debt. After gaining initial access through vulnerable authentication services, the attackers moved laterally across the environment until they obtained full control of the agency's virtual infrastructure.
Note: the following section is built upon DNSC's (National Cyber Security Directorate) official report — full version in Romanian can be accessed here — and independent news outlets documenting ByteToBreach activity.
The intrusion was first flagged on Monday, 13 July 2026, when ANCPI staff noticed suspicious activity reaching the platform's central hypervisor management console. This is the system that controls the entire virtualized environment. A closer look at the logs showed the attacker had actually gained a foothold hours earlier that same day.
From CVE to Ransomware: What Exactly Happened?
1. Initial Access: the entry point was a vulnerable, internet-facing OpenAM/ForgeRock authentication instance, exploited via CVE-2021-35464 / CVE-2024-36401. Requests to this server were routed through the OASSL application to EPAY, publicly exposed at epay.ancpi.ro (195.138.192.93).
2. ByteToBreach planted a web shell generated via Base64 decoding and executed in the context of the OpenAM application.
3. They then decrypted OpenAM's internal encryption key, which allowed recovery in plaintext of administrative credentials stored in OpenAM's own configuration.
4. With those credentials, the attacker bound to the OpenDJ LDAP directory tied to OpenAM and ran a series of queries against it, extracting an estimated ~2 million records: names, email addresses, unique identifiers (uid/cn), and userPassword hashes tied to the ancpi.ro domain.
5. Lateral Movement to WebSphere: an unauthenticated JMX/RMI interface on IBM WebSphere was exploited for remote code execution, used to deploy Meterpreter.
6. Lateral Movement to GitLab: an outdated GitLab instance was compromised via CVE-2021-22205, exposing its user database and source code for several critical ANCPI systems.
7. Credential Reuse: at least one GitLab password hash was cracked offline; the recovered password was also valid against Kerberos, letting the attacker authenticate as a legitimate domain account (MITRE ATT&CK: T1110.002 → T1078.002).
8. The Zabbix monitoring platform was turned into a reverse shell mechanism.
9. FortiSIEM was accessed, exposing its database of credentials for network infrastructure devices.
10. Command-and-Control & Tunneling: Sliver was used for C2 and persistence; Ligolo-ng provided tunneling for continued lateral movement.
11. BloodHound was used to map AD relationships and identify Domain Admin accounts.
12. Privilege Escalation to vCenter: successful authentication to vCenter as administrator@ancpi.ro, giving the attacker control over the entire virtualization management plane; the ability to inventory, power off, copy, encrypt, or delete any of the 1,083 VMs.
13. The "bytetocrypt" ransomware was executed directly against the ESXi hosts.
14. An SCP transfer copied the Virtual Machine Disk of a Domain Controller (DC1) to attacker-controlled infrastructure; a strong indicator of an attempted offline Active Directory database extraction.
(DNSC doesn't confirm this extraction fully succeeded, but from an IR standpoint the domain should be treated as compromised.)
Who Was Affected?
ANCPI's systems store much of Romania's real estate and property administration data. The attack affected, among others, the e-Terra cadastre and land registration system, the ePayment platform, MyEterra, the Owners Register, the Property Titles portal, the internal Registry of Transcriptions and Inscriptions, the ANCPI Geoportal and INSPIRE Geoportal, the National Electronic Register of Street Nomenclatures, the National Agricultural Register, and the agency's public website.
ANCPI's initial internal assessment combined with the findings from the DNSC investigation evaluates the damage to lost data from roughly 100 of 700 virtual machines; 1,083 other virtual machines were all allegedly breached by the attacker.
Attack Timeline
The attacker remained undetected inside the network for more than 86 hours.
13 July 2026: authentication attempts begin against the vCenter Server, originating from the virtual machine tied to the ePayment system [ep-p-was-c1 (10.0.116.111)]. This is the earliest confirmed sign of intrusion. On the same day, but several hours later, ANCPI staff detect and flag the connection as a severe network traffic anomaly consistent with lateral movement. This is the moment the incident is first formally noticed internally.
13-17 July 2026 (approx.): Over the following days, the attacker enumerates the full virtualized environment (1,083 VMs), moves laterally through WebSphere, GitLab, Zabbix, and FortiSIEM, obtains the administrator@ancpi.ro credential, and executes the "bytetocrypt" ransomware directly against the ESXi hosts. A Domain Controller's virtual disk is copied to attacker infrastructure. The attacker is calculated to have operated undetected for 86+ hours in total before full containment.
14 July 2026: Public disruption becomes visible, with ANCPI servers going non-functional starting this day.
15 July 2026: Threat-intelligence firm KELA identifies a breach claim posted by ByteToBreach targeting ANCPI, in which the actor claims to have extracted large databases of Romanian citizen data and obtained a full copy of ANCPI's GitLab servers, including source code for core systems such as e-Terra and RENNS.
As of the time of writing: No hard date for service restoration has been announced.
Who Is ByteToBreach? The Hacker Behind the ANCPI Attack
ByteToBreach has been observed since mid-2025, offering access to databases stolen from banks, telecoms, airlines, and other large enterprises. After the ANCPI breach, they agreed to a public interview, where they self-describe as a Jesus-loving, financially motivated data-leak trader and access broker.
For this specific attack, ByteToBreach claimed that the vulnerabilities involved had been known for a long time, the claim lining up with DNSC's own findings. In another statement, they apologized for the problems caused to Romanian citizens and the ANCPI team, while announcing that the stolen data was available for purchase online.
The Security Gaps That Let ByteToBreach Succeed
Strip away the specific CVEs and tool names, and the ANCPI breach is a familiar story told on a larger scale. DNSC's findings describe an environment where several structural weaknesses turned a single exposed authentication server into full control of a 1,083-VM environment:
Network segmentation was described as "almost nonexistent," meaning that once the attacker had a foothold on one application server, the rest of the network was reachable.
Multiple infrastructure components were end-of-life, including the OpenAM instance and the GitLab server exploited via a vulnerability patched years earlier.
Antivirus protection existed only on workstations, not on the servers that were ultimately encrypted.
The WAF retained logs for just seven minutes, nowhere near enough to reconstruct an intrusion that unfolded over 86 hours.
There was no adequate centralized logging, which slowed detection and made post-incident reconstruction dependent on inconsistent sources.
Administrative passwords were reused across systems, even if password reuse is a well-established attack technique.
Together, these weaknesses provided one initial-access vulnerability with a clear, largely unobstructed path from an internet-facing login page to the hypervisor management directory.
All tools used in the attack were known to defenders. But segmentation, monitoring, and credential hygiene — all well-established best practices in cybersecurity — were completely missing. And ByteToBreach exploited them.
The conclusions are uncomfortable: systems can't be left unpatched for years. Authentication should only be possible after multiple identity verification steps. And defense layers can't be implemented superficially.
A very tough lesson, indeed, learned at the expense of +2 million Romanian citizens and a completely frozen real-estate market.
ANCPI's Statement
Per their official statement, the affected infrastructure was isolated to prevent the attack from spreading further, and ANCPI provided the team at DNSC with all the necessary resources for the technical investigation. The Government is coordinating the institutional response to this incident at the central level. Even if ByteToBreach claims they're already selling the data they exported from ANCPI's virtual machines, ANCPI states that the central database of the cadastral system was not affected, the integrity of the records being, as of now, confirmed.
There is no definitive timeline established for restarting the system. The full statement, written in Romanian, can be accessed here.
Beyond the Perimeter: Protecting the Data Inside the Systems
Most post-incident reviews, this one included, focus on the infrastructure: patch the CVE, segment the network, rotate the passwords, add MFA. The ANCPI case is also a reminder that cybersecurity should consider what happens to the data sitting inside a system once someone gets in.
The two million records pulled from ANCPI's LDAP directory were available, in readable form, to anyone who reached that directory. But names, email addresses, and password hashes shouldn't exist as easily-exfiltratable, plaintext content inside a file or database that any successful intrusion can walk away with.
Sensitive data needs to be treated as a liability the moment it's stored somewhere an attacker could eventually reach. This is exactly the layer proactive data protection is meant to cover.
Rather than relying solely on keeping attackers out, MetaDefender™ Cloud's Proactive DLP™ technology inspects files for sensitive content (personal identifiers, credentials, financial data) and can redact, or flag it before it ever leaves an organization's boundary. Measures like this won't stop every breach, but they materially reduce what a successful intrusion can actually walk away with.
Try MetaDefender Cloud for your files and see how Proactive DLP can catch sensitive data before it is exfiltrated out of the proverbial door.
FAQ
What happened in the ANCPI ransomware attack?
In the ANCPI ransomware attack, attackers compromised the agency's IT infrastructure, stole approximately two million LDAP records, and deployed ransomware against its virtual environment. The incident disrupted multiple cadastral and land registration services and led to the deletion of more than 100 virtual machines.
Who is ByteToBreach, the actor behind the ANCPI attack?
ByteToBreach is a financially motivated cybercriminal group active since mid-2025, known for stealing and selling databases and network access from large organizations.
How did ByteToBreach gain access to ANCPI's systems?
According to the investigation, the attackers initially exploited vulnerable, internet-facing OpenAM/ForgeRock authentication services before using credential theft, password reuse, and multiple known vulnerabilities to move laterally through the network and eventually compromise the infrastructure.
How many records and virtual machines were affected in the ANCPI breach?
The attackers reportedly extracted around two million LDAP records and gained control of the infrastructure managing 1,083 virtual machines. More than 100 virtual machines were reportedly deleted during the ransomware attack.
Was ANCPI's central land registry database compromised?
According to ANCPI's official statement, the central cadastral database was not compromised and the integrity of its records remains intact. However, DNSC's findings indicate that other systems and sensitive directories were successfully accessed and exfiltrated.
When will ANCPI services be restored?
As of the time of writing, ANCPI has not announced a definitive timeline for restoring all affected services. Recovery efforts are ongoing, with key systems being rebuilt.
How can organizations prevent similar ransomware attacks?
Organizations can significantly reduce ransomware risk by promptly patching internet-facing systems, enforcing multi-factor authentication, eliminating password reuse, segmenting networks, maintaining centralized logging, and protecting sensitive data so it remains inaccessible even if attackers gain access to internal systems.
MetaDefender
Threat Analysis
Data Loss Prevention