Skip to content

Is a DjVu file safe? DjVu documents vs the .djvu ransomware

Updated October 22, 20266 min read

Search for DjVu and you'll soon find warnings about a “DjVu virus”. That's a ransomware family that borrowed the name, not the document format. Here's what a DjVu book really is, what the ransomware does, and how to tell one from the other.

Is a DjVu book safe to open?

A DjVu file holds what a scanner produced: an image of each page, sometimes a hidden text layer so you can search and copy, and the book's contents and links. Unlike office documents, it has no macros, scripts or programs inside it, so opening a book doesn't run anything. As with any file, a deliberately broken one could try to exploit a bug in the program that reads it, which is why you should keep your reader and browser up to date and get books from sources you trust. More about the format in What is a DjVu file?

What is the STOP/Djvu ransomware?

STOP, also called Djvu, is a ransomware family that targets Windows computers. Security researchers named it after one of its early variants, which added .djvu to the end of every file it locked. It has nothing to do with the document format beyond that name. What it does:

  • It locks your own files: photos, documents and music are encrypted so they can no longer be opened.
  • It renames them: each file gets an extra ending, such as photo.jpg.djvu. Other variants use many other short endings, so .djvu is only one of them.
  • It leaves a ransom note, usually a text file called _readme.txt, in the affected folders, asking for payment.
  • It usually arrives with pirated software: cracked programs, key generators and fake “free download” installers are its most common way in. It doesn't come from opening a scanned book.

How to tell a DjVu book from a locked file

The two look alike only in their names. A few checks settle it:

  • Where it came from: a book you downloaded from a library or archive is a document. Files you already had, suddenly with a new ending, are not.
  • The full name: a locked file keeps its old ending in front of the new one, as in report.docx.djvu or holiday.jpg.djvu. A book is simply book.djvu.
  • How many files changed: ransomware renames files across whole folders at once. A book is one file you chose to get.
  • A ransom note: a _readme.txt file appearing next to your files is a clear sign of ransomware.
  • Does it open? A real DjVu book opens in any DjVu viewer and shows pages. A locked file won't open anywhere, because it isn't a DjVu document at all.

How to open a DjVu book safely

Most of the risk around DjVu comes from the programs people install to open it, not from the books. A few habits keep you safe:

  • Skip “free download” sites and bundled installers. Download portals often wrap programs in installers that add extra software. If you install a desktop DjVu viewer, get it from its official page or from your platform's app store.
  • Watch for double endings. A file called book.djvu.exe is a program, not a book. On Windows, turn on file name extensions in File Explorer (View › Show › File name extensions on Windows 11) so you see the real ending.
  • Or install nothing at all. Our free online DjVu viewer opens the book right in your browser. The file isn't uploaded: it's read on your device and nothing is stored when you close the page.
  • Need a file anyone can open? The DjVu to PDF converter also runs in your browser, keeps the book's searchable text and turns its contents into PDF bookmarks.

Reading DjVu books on iPhone and iPad

On iPhone and iPad, DjVu Reader from the App Store opens DjVu books directly. Like every App Store app, it runs in its own space on your device, and it opens DjVu and PDF books. It's free to start, with 3 book uploads; open a book from Files, Safari or Mail, as shown in how to open DjVu files on iPhone.

What to do if your files were renamed to .djvu

If your own photos and documents suddenly end in .djvu or another unfamiliar ending, and a _readme.txt note appeared, your computer has ransomware. A DjVu viewer can't open those files, and renaming them back won't help, because their contents are encrypted. Instead:

  • Disconnect the computer from the internet and from shared drives, so it can't reach more files.
  • Scan it with reputable security software to find and remove the infection.
  • Look for a decryptor from a known security company. Free tools exist for some STOP/Djvu variants, for example through the No More Ransom project backed by Europol and security companies. They work only in some cases, so read their instructions carefully. Avoid “decryption services” that ask for money or turn up in unsolicited messages.
  • Ask a professional if you're unsure, and report the attack to your local police. Security agencies generally advise against paying the ransom: there's no guarantee you'll get your files back.
  • Keep a copy of the locked files. If no decryptor works today, one may appear later. Afterwards, restore from a backup if you have one.

Common questions

Can a DjVu file contain a virus?
A DjVu book has no macros or scripts, so opening one doesn't run any code. As with images or PDFs, a deliberately damaged file could target a bug in an outdated reader, so keep your software updated and get books from sources you trust. Be wary of a file whose name ends in .exe, .scr or .bat after .djvu: that's a program pretending to be a book.
Is the DjVu virus the same as a DjVu file?
No. “Djvu” is the nickname of the STOP ransomware family, taken from the .djvu ending one early variant added to the files it locked. A DjVu book is a scanned document that happens to share the name.
Are DjVu files dangerous to download?
The books themselves aren't. The danger is on download sites that push installers, “codec packs” or cracked programs alongside the book. Download only the .djvu file, and if a site insists you run a program to get it, close the page.
Is it safe to open a DjVu file online?
With our online DjVu viewer, yes: the book is read in your browser on your own device and never uploaded, so it can't be stored or seen by anyone else. Close the page and nothing is kept.
Can I open files locked by the Djvu ransomware in a DjVu viewer?
No. Those files are your own photos and documents, encrypted, with .djvu added to the name. No viewer can open them; only the right decryption key can restore them. See the section above on what to do.

Open your first DjVu book.

Free on the App Store for iPhone and iPad.

More guides

All guides