katlab tools/scan-archive support on Ko-fi

Scan an archive for viruses

Check a ZIP, RAR, 7z or tar.gz before you open it. Every file inside is scanned for known malware, Office macros and shortcuts are opened up to see what they would do, and the archive itself is checked for zip bombs and other tricks. Nothing is extracted to disk and nothing is uploaded.

The archive stays on your device. The check runs in your browser.

How to scan an archive for viruses

  1. Drop the ZIP, RAR, 7z or other archive onto the box above. If its files are encrypted, you can enter the password to scan them too.
  2. The scanner opens the archive in your browser, including archives inside it, and checks every file. The structure check appears first; malware results stream in as each file is scanned.
  3. Read the verdict and the list of what was checked. Every finding explains in plain words what the file does. Use the VirusTotal links for a second opinion from about 70 antivirus engines.

What the scan looks for

Known malware

Files are scanned by YARA-X, the engine VirusTotal uses, with about 5,900 openly licensed detection rules from ReversingLabs, Malpedia, Florian Roth's Signature Base, SEKOIA, ditekSHen and others, collected by YARA Forge. A match names the malware family and the rule's author. Programs, scripts and documents are scanned first.

Malicious documents and shortcuts

Most malware sent in archives is not a program but a document or shortcut that downloads one. The scanner opens these files and looks at what they would do:

Booby-trapped archives

The archive itself is checked for zip bombs, files that would be written outside the folder you extract to (Zip Slip), programs disguised as documents with double extensions or hidden right-to-left characters, and tampered ZIP headers. The Zip Bomb Checker page explains these in detail.

VirusTotal lookups

Every file, including files in nested archives, gets a SHA-256 fingerprint computed in your browser. Programs, scripts, macro documents and nested archives are listed with a VirusTotal link, and every file has one in the table. Clicking a link sends only that fingerprint, never the file.

Is it safe to scan a virus here?

Yes. Nothing in the archive is ever run. Files are unpacked in the browser's memory and read as data: the rules compare byte patterns, and macros are decoded as text and searched. Nothing is saved to your disk, and nothing is opened by Windows, Office or another program. The scanning code runs as WebAssembly inside a browser worker without access to your files, so even a file crafted to attack the scanner could at worst crash the tab. The danger starts when you extract the files and open them, which is what the scan warns you about first.

What it cannot catch

Each result lists exactly what was checked and what was not. In general:

A clean result means nothing known was found and the archive is built normally, not that every file is safe. Keep your antivirus running when you extract, and do not enable macros in documents from people you do not know.