Ransomware-Encrypted Tally Data Recovery: TallyPrime and Tally.ERP 9 Company Data
For a large number of Indian businesses, the most important data on the server is not a big database but a Tally data folder: years of vouchers, ledgers, stock items, GST details and payroll for every company the business keeps. When ransomware reaches that machine, the company folders are encrypted along with everything else, every file gets a new extension, and Tally can no longer find or open the companies.
Whether the accounts come back without the attackers' key depends on how the files were encrypted, how big they are and what other copies exist. This guide explains each of those for TallyPrime and Tally.ERP 9, and what to do before anything else is touched.
How Tally stores a company
Tally does not use a database server. Each company lives in its own numbered folder (10000, 10001 and so on) inside the Tally data path, for example C:\Users\Public\TallyPrime\data or the Data folder of an older Tally.ERP 9 installation. Inside the folder is a small set of files: the main company file that holds the masters and vouchers, plus files that manage transactions, links and messages. In Tally.ERP 9 these end in .900, such as Company.900 and TranMgr.900.
The main company file is organised in fixed-size blocks, like a database file. That matters after ransomware: Tally needs its first blocks to open the company, but the vouchers and masters themselves sit in blocks spread across the whole file.
How ransomware usually reaches Tally
Most Tally ransomware cases we see start with Remote Desktop. Tally is often run on one office server or a cloud machine that staff connect to over RDP, and an exposed or weakly protected RDP login is the most common way in. Families such as Phobos and Makop specialise in exactly these small-business servers and encrypt every local drive and every mapped share they can reach.
That is also why Tally backups are so often lost in the same attack: the backup folder is on the same server, on a share the server can write to, or on a USB drive that was left connected.
What can be recovered from encrypted company files
Encrypting every byte of a large file takes time, so many ransomware families encrypt only the start of each file, or encrypt blocks with gaps between them. A company that has run for several years has a main data file of hundreds of megabytes or more, and in those files most of the voucher and master blocks are often never touched. Those blocks can be read directly and the company rebuilt into a new data folder, without the attackers' key.
Small companies are harder. When the whole file is only a few megabytes, many families encrypt it completely, and a fully encrypted file cannot be decrypted without the key. Before promising anything we measure, file by file, how much of each company file is actually encrypted, and tell you what that means in vouchers and periods.
Other places your Tally data may still exist
Even when the company files are fully encrypted, the data is rarely in only one place. Check every one of these before deciding the accounts are lost:
Tally backup files on any other drive, laptop, pen drive or email account, including backups that are a few months old. An older backup plus the recent period rebuilt from other records is often far better than nothing. Copies of the data folder on the accountant's or auditor's laptop, or on a staff machine that used Tally in the past. Earlier versions kept by Google Drive, OneDrive or Dropbox if the data folder was synced; these services keep previous versions of files for a limited time. Deleted original files on the disk: some families write the encrypted copy as a new file and delete the original, and on a hard disk that has not been used much since, those originals can sometimes be recovered.
For the most recent period, sales and purchase vouchers can be rebuilt from GST returns, e-invoices and e-way bills on the government portals, and payments from bank statements. It is slow work, but it means a gap in the Tally data does not have to become a gap in the books.
What to do in the first hours
Disconnect the affected machines from the network, but do not switch the server off and do not format or reinstall anything. Close Tally on every computer. Copy the encrypted company folders, exactly as they are, to a separate drive, and work only on that copy.
Do not rename the files back to their old extensions, do not run Tally's Rewrite or Repair on them, and do not run free "decryptor" tools from the internet: none of these can read encrypted blocks, and some write to the files. Keep the ransom note, since it identifies the family. In India, a ransomware incident also has to be reported to CERT-In within six hours of noticing it.
After the recovery
Once the companies are back, close the way in: no Remote Desktop open to the internet, a VPN or a remote-access tool with two-factor login instead, and strong unique passwords on every account that can log in to the server. Keep at least one Tally backup that the server cannot reach or overwrite, such as a drive that is disconnected after each backup or a cloud copy with version history, and test once a month that a backup actually restores.
Questions and answers
Can Tally data encrypted by ransomware be recovered without paying?
Often, at least in part. Larger company files are usually only partly encrypted, and the vouchers and masters in the untouched blocks can be rebuilt into a new data folder. Small files that were encrypted completely cannot be decrypted without the key, but the data may still exist in older backups, synced copies or deleted originals.
Does this work for both TallyPrime and Tally.ERP 9?
Yes. Both keep each company in its own folder of data files, and the recovery works on those files directly, whatever version of Tally is installed on the server today.
Can I run Rewrite on the encrypted company?
No. Rewrite is a repair feature for minor inconsistencies. It cannot read encrypted blocks, and running it can change the files you need for recovery. Copy the folder first and have it assessed.
How long does Tally ransomware recovery take?
The assessment of a few sample files is usually done within a day. Rebuilding a company typically takes one to three working days, depending on its size and how many companies and years are affected.
Facing this problem? Contact us now.
We have already solved 656+ ransomware and data recovery cases: encrypted and corrupted SQL Server, Oracle and MySQL databases, Tally, Busy and Marg ERP data, Veeam backups, VMware and Hyper-V virtual machines, RAID and NAS. Send us the details and we tell you what we can recover.
- ✓ Free assessment before you pay anything
- ✓ No data, no charge
- ✓ NDA on request
Email: info [at] asittech.com · Mon–Fri, 9:00–18:00 IST