cybersecurity Request an audit

Malware analysis / database extortion bot / MySQL

A MySQL ransom bot that deletes your data and keeps no copy

The note says "All your data was backed up by us". We replayed the bot's own statements against real MySQL 8.0, MySQL 8.4 and MariaDB 11. On all three the copy fails and the deletion works, so paying cannot buy back a copy that was never made. Most of the data is still on the disk, though, and below we show how we got it back.

One run, in the order the bot sent it recorded on our decoy

  1. Log inas root, about 30 connections at once
  2. Notemakes RECOVER_YOUR_DATA and writes the demand
  3. Copyasks for every table; a real server refuses, no database chosen
  4. Wipedrops the links between tables, the tables, the database
  5. Own notedrops RECOVER_YOUR_DATA, then a later connection makes it again
  6. LogsRESET MASTER: works on 8.0, refused by 8.4
  7. Lock outtakes remote root's rights, then fails to shut the server down
Every step is a statement the bot sent to our decoy MySQL server, in the order of our records. What each step does on a real server comes from our replay on real MySQL and MariaDB (see below). Last of all it sends one more query whose purpose we do not know.

The short version

  • A bot from one address block, 64.89.163.0/24, logs in to MySQL servers as root with a guessed password and leaves a ransom note asking for 0.0142 bitcoin within 48 hours.
  • It asks for every table in full, then deletes all of them. It also drops its own note database, tries to erase the server's binary logs with RESET MASTER, removes remote root's rights and tries to shut the server down. The fastest run took 2.5 seconds.
  • We replayed the exact statements of one run, connection by connection, on real MySQL 8.0, MySQL 8.4 and MariaDB 11 holding 23,500 rows of test data. On all three the copy fails: the bot never chooses a database on the connections that read the tables, so the server answers "No database selected". The deletion works.
  • Our reading: whoever pays gets nothing back, because the bot does not take a copy from these servers. The note's claim of a backup is false for them.
  • The data is not gone. On MySQL 8.4 the bot cannot erase the binary logs and we restored every row from them. On MySQL 8.0 we rebuilt 66% of the rows from the disk with a free tool. On MariaDB every row was still on the disk, but the free tool could not read it. How to get your data back.

What we recorded

Our decoys include pretend MySQL and PostgreSQL servers with a database named app. It holds six tables of made-up but believable data: users, customers, orders, payments, api_keys and sessions. Every key in it is unique and traced. Between 30 November and 2 December these addresses from the same block reached them (times UTC):

WhenAddressPortLoginWhat it did
30 Novsix addresses3306, 3307, 5432refusedtried short password lists (empty, root, root123, 123456, password, secret, P@ssw0rd) and did not get in
1 Dec 10:4964.89.163.825432postgres / 123456listed the databases and asked the size of one, then stopped
1 Dec 13:1264.89.163.1663306root / 123456made RECOVER_YOUR_DATA, switched to it and stopped
1 Dec 13:3964.89.163.893307root / root@123the same, and stopped at the same point
2 Dec 02:1264.89.163.1583307root / roota full run, victim code 2J7VK
2 Dec 08:0864.89.163.1423306 and 3307root / roottwo full runs, victim codes 2CUXM and 2EE9O

The two runs on 1 December stopped because of our decoy. At the time it refused to switch to a database a visitor had just made, so the bot could not write its note and gave up. We changed that on 1 December at 17:23 UTC, and the next visits from the block went all the way through. The PostgreSQL visit asked the same kind of size question as the MySQL runs and then stopped. Our reading: the same toolkit, with a PostgreSQL path that did not go further on our decoy.

We have recorded attacks from 32 addresses in this block since 22 November. Each full run used about 30 connections at the same time, one task per connection: one writes the note, others read one table each.

The run, statement by statement

This is the first run from 64.89.163.142 on 2 December, shortened only where it repeats the same statement for each table.

MySQL session / 64.89.163.142, 2 December 2026, times UTCfrom our records
08:08:14.476  SHOW DATABASES08:08:14.489  CREATE DATABASE IF NOT EXISTS RECOVER_YOUR_DATA08:08:14.495  CREATE TABLE IF NOT EXISTS RECOVER_YOUR_DATA (text VARCHAR(255))08:08:14.498  INSERT INTO RECOVER_YOUR_DATA (text) VALUES ('All your data was backed up by us. ...')08:08:14.527  GRANT CREATE, DROP ON *.* TO `root`@`%`08:08:14.563  SELECT SUM(data_length + index_length) FROM information_schema.tables WHERE table_schema = 'app'08:08:14.652  SELECT COLUMN_NAME, DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS WHERE ...08:08:14.784  SELECT * FROM `<table>`                # once per table, one connection each08:08:16.124  SELECT TABLE_NAME, COLUMN_NAME, CONSTRAINT_NAME, REFERENCED_TABLE_NAME, ...08:08:16.278  ALTER TABLE `<table>` DROP FOREIGN KEY `<key>`08:08:16.644  DROP TABLE `<table>`08:08:16.766  SELECT SUM(data_length + index_length) ... WHERE table_schema = 'RECOVER_YOUR_DATA'08:08:16.896  DROP DATABASE `app`08:08:16.901  DROP DATABASE `RECOVER_YOUR_DATA`08:08:16.940  RESET MASTER08:08:16.949  SHOW MASTER STATUS08:08:16.963  REVOKE ALL PRIVILEGES, GRANT OPTION FROM `root`@'%'08:08:16.974  GRANT SHUTDOWN ON *.* TO `root`@'%'08:08:16.984  SHUTDOWN08:08:17.058  SELECT JSON_SCHEMA_VALID('{"enum":[0]}', '"AAAA...A"')   # about 200 letters A
Our decoy answered every statement and carried none of them out. Nothing real was stored, read or deleted. It was more forgiving than a real server: it answered the table reads although no database had been chosen.

The steps, in plain words:

  1. The note first. It makes a database and a table, both named RECOVER_YOUR_DATA, and writes the demand into it in two rows.
  2. Rights. It gives root the right to create and drop anything; our reading: in case those rights were missing.
  3. Measure and copy. It asks how large each database is, reads the column names of each table and then asks for every table in full with SELECT *, one table per connection. Those connections never choose a database, so on a real server each read fails.
  4. Wipe. It looks up the foreign keys that tie tables together, drops them so nothing blocks the next step, and drops every table, then the database.
  5. Its own note. It measures RECOVER_YOUR_DATA like any other database and drops it 5 milliseconds after app.
  6. The logs. RESET MASTER deletes all of the server's binary logs, the record of every change that lets an owner replay the database up to a chosen moment. It then asks for the log status.
  7. Lock out. It takes every right away from root connecting from anywhere ('%'), tries to give it back only the right to shut down, and sends SHUTDOWN.

The note

Written as two rows, word for word. Only the victim code changes between runs:

table RECOVER_YOUR_DATA / as written by the bot
All your data was backed up by us. You must pay 0.0142 bitcoin tobc1qfd3xlyjtwjjzzk25d4nkatczx2hs03nsldx0fh or in 48 hours, your data will bepublicly disclosed and deleted. (for more information visit https://is.gd/mysql43) After payment send mail toak+2j7vk@onionmail.org and we will provide a link for you to download your data.Your DATAID is: 2J7VK

The mail address carries the victim code after a plus sign. We saw three codes in three runs: 2J7VK, 2CUXM and 2EE9O. The bitcoin address was the same in all three.

Where the note leads

We followed every link from our sensor, never from our own network, and only read what came back.

  • https://is.gd/mysql43 forwards to https://ak1r4.cc/mysql.
  • ak1r4.cc/mysql/ forwards to an encrypted note on the paste site paste.sh (note PRsZyldy). The key to read it is part of the link, so anyone given the link can read it. We read it and do not repeat the key here.
  • ak1r4.cc itself forwards to the paste site's front page.
  • The note names a second short link, https://bit.ly/telegram423. It forwards to ak1r4.cc/telegram/, which forwards to the Telegram account akilahelp.

The domain ak1r4.cc was registered on 16 April 2026 through NiceNIC. It uses Cloudflare for its DNS only, not as a proxy: the name points straight to 65.87.7.60, an Apache 2.4.58 server on Ubuntu, in an address block registered to Neopolitan Networks.

The paste is a "guide" for victims. In short, it says the victim must pay in bitcoin (other coins by arrangement) and send proof of payment with the victim code, after which a download link will follow and the attackers' copy will be deleted. It adds pressure:

  • "This offer stands for 24hs." and "After 72 hours, we cannot guarantee that we will be able to send the data to you."
  • "If you are a system administrator or programmer and your boss is unaware of this incident, we will contact them after 48 hours."
  • "If you have not contacted us within two days from the time of the incident, we will consider the transaction incomplete. Your data will then be sent to any interested parties."
  • It ends with a list of exchanges where a victim can buy bitcoin with a card.

On 2 December at 09:40 UTC the bitcoin address had received nothing, in no transaction at all.

What a real server does with it

Our decoy only pretends, so we tested the bot's statements on real servers. We took the 31 connections of the first run from 64.89.163.142 and played each one, in its recorded order, as its own client session against MySQL 8.0.46, MySQL 8.4.13 and MariaDB 11.8.10. Each server held a database app with the same six tables, 23,500 rows and foreign keys between them. The servers had no network, and each ran on its own small disk so we could examine it afterwards.

StepMySQL 8.0MySQL 8.4MariaDB 11
Read every table (the "backup")fails: no database selectedfailsfails
Drop the foreign keys, the tables and appdonedonedone
Ransom notedropped, made again by a later connection: staysstaysstays
RESET MASTER (erase the binary logs)donerefused: the statement no longer exists in 8.4done
Take remote root's rightsdonedonedone
Give back the shutdown right, then shut downboth fail: the server keeps runningboth failboth fail

Three things in our first reading of the decoy records were wrong for real servers. The bot does not copy the data. Its note is not lost: a connection that starts later makes the note database again. And it cannot shut the server down, because removing root's rights also removes the right to hand any back. Root logging in from the server itself (root@localhost) keeps all its rights.

We still call it a wiper, and this is our reading. It deletes every table and, where it can, the binary logs an owner would recover from, and it keeps nothing it could sell back. The 21 sets of traced keys it read from our decoy, 252 keys in all, have not been used. Since a real server would not even have handed them over, we do not expect them to be.

The query we cannot explain

After the shutdown request, the bot sends SELECT JSON_SCHEMA_VALID('{"enum":[0]}', '"AAAA...A"'), with a string of about 200 letters A. On a working server this simply returns 0. We looked for a known crash or flaw that this would trigger and found none that matches. It may test whether the server is still answering, or try a flaw we do not know. We do not know which.

What is new, and what is not

Bots that empty internet-facing databases and leave a ransom note are old news. Varonis described one that drops the foreign keys and the tables and leaves a RECOVER_YOUR_DATA table with an onionmail address and a database code, much like this one. The Register reported a similar bot against PostgreSQL whose "backup" kept only the first 20 rows of each table. Akamai advised owners to check that an attacker really holds their data before thinking of paying, and a study presented at NDSS measured these attacks across tens of thousands of servers and grouped the notes by their shared details.

In the reports we checked we did not find the parts that make this bot worse than a plain extortion script: dropping its own note database, deleting the binary logs, taking away root's rights and trying to shut the server down. We also did not find a test of whether such a bot's "backup" works at all on a real server. On 2 December we also found no public mention of ak1r4.cc, is.gd/mysql43, the bitcoin address or the Telegram account.

Will paying get the data back?

On the evidence we have, no. The note promises a download link after payment. On the three server versions we tested, the bot's reads failed and it took no copy, so there is nothing to download. Our test covers the statements of one recorded run on three versions. A server set up so that a login lands in a database automatically, or a later version of the bot, could behave differently, and we cannot see what the operators hold. The bitcoin address had received no payment when we checked.

If your server's general query log was switched on, you can check this yourself: it lists each of the bot's connections. A SELECT * on a connection that never sent USE (or Init DB) before it returned no rows.

If this happened to you: getting the data back

We tested every step below on the disks of our three servers after the bot's run. Do them in this order. Speed matters: until the server stops, it keeps writing, and new writes cover the space where the deleted rows still sit.

  1. Copy the disk before anything else. Take a snapshot of the server's disk (your cloud provider's volume snapshot, or an image of the drive), then stop MySQL as root@localhost on the server itself; the bot's shutdown failed and the server is still running. Do every recovery step on a copy, never on the original disk, and never restore onto it.
  2. Check what the bot did. A database RECOVER_YOUR_DATA, a root@'%' account left with only USAGE, and SHOW BINARY LOGS listing only one small new log mean it ran in full. Several logs going back days mean RESET MASTER failed.
  3. If the binary logs survived, replay them. On MySQL 8.4 and later the bot's RESET MASTER fails, so the logs stay. Find the position just before the bot's first ALTER TABLE ... DROP FOREIGN KEY with mysqlbinlog, then replay up to it into a fresh server: mysqlbinlog --stop-position=<position> binlog.0000NN | mysql. In our lab this gave back all 23,500 rows and every foreign key. The logs only reach back as far as they are kept, 30 days by default, so restore your last full backup first and replay the logs from that point.
  4. If the logs are gone, rebuild the rows from the disk. Dropping a table frees its disk space but does not clear it. The free tool undrop-for-innodb scans a disk image for InnoDB pages (stream_parser) and turns them back into rows (c_parser), given each table's CREATE TABLE statement, which you can take from your application's migrations or an old dump. You then load the rows into a fresh server. In our lab this rebuilt 15,622 of 23,500 rows on MySQL 8.0 (66%: two tables whole, others partly) and 23,304 on MySQL 8.4 (99%). How much survives depends on which parts of the disk were written over after the drop.
  5. On MariaDB, ask a specialist. Every one of the 23,500 rows was still on the MariaDB disk, but undrop-for-innodb found no pages in it: MariaDB 10.5 and later store pages in a format the tool does not read. A data recovery service that handles InnoDB can work from your disk copy.
  6. Do not count on undelete tools. General file undelete tools (extundelete, ext4magic) gave back none of the deleted table files in our test.
  7. Close the way in before the server goes back online. Change every database password, remove remote root and take the port off the internet, or the bot will be back. It came back to our decoy within minutes.

Our test was a best case: nothing was written to the disks after the attack, and we copied them within minutes. On a server that keeps running for hours, expect less from step 4.

How to protect a database

  • Keep MySQL off the internet. Ports 3306 and 3307 should answer only to your own servers, through a firewall or a private network. This bot only works on a server it can reach.
  • No remote root, no short passwords. Every login it used was root with a password from a short list: root, 123456, root@123.
  • Keep the logs and backups elsewhere. Send binary logs to another machine as they are written, and keep backups where a database login cannot reach them. On MySQL 8.4 and later this bot cannot erase the logs at all.
  • Watch for the bot's statements. RESET MASTER, REVOKE ... FROM root, GRANT SHUTDOWN and SHUTDOWN from a remote client are rare on a normal server and worth an alert.
  • Block the block. Our free firewall feed carries the addresses that attack our decoys.

Indicators

Free to use, with or without credit.

WhatValue
Addresses that ran the bot (2 December)64.89.163.158, 64.89.163.142
Addresses that logged in and stopped (1 December)64.89.163.166, 64.89.163.89, 64.89.163.82
Address block they come from64.89.163.0/24
Note database and tableRECOVER_YOUR_DATA
Bitcoin addressbc1qfd3xlyjtwjjzzk25d4nkatczx2hs03nsldx0fh
Mail address patternak+<victim code>@onionmail.org
Short links in the note and the guidehttps://is.gd/mysql43, https://bit.ly/telegram423
Domain behind themak1r4.cc (65.87.7.60)
Guide on the paste sitepaste.sh note PRsZyldy
Telegram accountakilahelp
Last query of each runSELECT JSON_SCHEMA_VALID('{"enum":[0]}', '"AAAA...')

How we know

Every statement the bot sent comes from our own decoy's records: the logins, the statements in order and their times. The decoy is a pretend database server with made-up data; nothing real was stored, read or deleted. What real servers do with those statements, and what we got back, comes from our replay on MySQL 8.0.46, MySQL 8.4.13 and MariaDB 11.8.10 on 2 December 2026, offline, with marked test rows so every recovered row could be counted. The links in the note were followed from our sensor and only read, and the paste was decrypted with the key its own link carries. Domain, address and wallet details come from public registration data, DNS and the bitcoin ledger, checked on 2 December 2026. Where something is our reading and not observed, the text says so. We reported the address block to its network's abuse desk on 30 November, and on 2 December reported the new runs to it, the server behind ak1r4.cc to its host, and the domain to its registrar. Since this run, our decoy also removes a database when a visitor drops it, as a real server would. The analysis of our records was done with Claude, Anthropic's AI model, inside our own tooling.

Free / Threat Analysis Toolkit

Would these attacks work on your systems? Find out in a minute.

Free scanners for macOS, Linux and Windows, a check of your own log files and a test of your address from the internet, built from what our decoys record every day. Nothing is sent back to us.