A ZIP file is a container. Looking at the list of files inside doesn't run anything; the risk comes from what is inside and what you do with it, such as double-clicking a program disguised as a document, enabling macros, or extracting with a tool that trusts dangerous paths. A few checks before you extract catch most common tricks.
Start with where it came from
- Were you expecting it? Unexpected invoices, delivery notices, CVs and voicemails in ZIP files are a common way to deliver malware, even from addresses you know, because email accounts get taken over.
- Does this sender normally send ZIPs? If not, confirm through another channel, such as a phone call or a new message, not by replying to the email.
- Did the download come from the official site? Software from mirrors, forums and file-sharing links may have been repackaged.
Warning signs inside the archive
| Sign | Why it's a risk |
|---|---|
Double extensions such as invoice.pdf.exe or photo.jpg .scr | Windows hides known file extensions by default, so the program looks like a PDF or an image. |
| Hidden right-to-left characters in a name | An invisible character reverses the end of the name, so a program called invoice[RLO]fdp.exe displays as invoiceexe.pdf. |
Programs and scripts: .exe, .scr, .bat, .cmd, .ps1, .vbs, .js, .hta, .msi, .lnk, .jar | Opening them runs code. Expected in a software download; suspicious in an email that should contain documents. |
| An encrypted ZIP with the password in the same message | Antivirus software and email filters can't look inside an encrypted archive, which is exactly why attackers use them. |
Macro-enabled Office files (.docm, .xlsm, .pptm) and older .doc, .xls, .ppt | Macros can run code. Don't click Enable Content in a document you weren't expecting. |
Disk images: .iso, .img, .vhd, .vhdx | Files inside may lose Windows' downloaded-from-the-internet marking, which turns off some security warnings. |
| HTML and SVG files | They can run scripts or show a fake sign-in page when opened in a browser. |
| Archives inside the archive | Each extra layer is another place to hide something, and some scanners don't look deep. |
Tricks aimed at the extraction tool
Some archives target the software that extracts them rather than you:
- Zip bombs are small archives that expand to gigabytes or more, through extreme compression ratios or entries that share the same data, to fill your disk or freeze your computer. A file of a few kilobytes that claims to expand to many gigabytes is the giveaway.
- Zip Slip uses entry names such as
../../evil.bator absolute paths, so a careless extractor writes files outside the folder you chose, possibly overwriting something important. Links that point outside the folder can do the same. - Conflicting headers and duplicate names make different apps see different files in the same ZIP, which can slip a file past a scanner.
Not every tool protects against these, especially older archivers, scripts and server code that extracts uploads automatically.
Check an archive in your browser
- Open ZIP Safety Check and choose the archive. It reads the archive index and link targets only; nothing is extracted or run, and the file is not uploaded.
- Review the findings. Each has a severity (High, Medium, Low or Info), an explanation and the files involved, and the overall verdict follows the most serious one.
- For the full file list with sizes, dates and compression ratios, open the archive in ZIP Viewer.
- If the archive won't open or reports errors, Test ZIP Integrity shows whether it is damaged.
- If it looks as expected, extract only what you need with Extract ZIP, which neutralises unsafe paths.
ZIP Safety Check is not an antivirus. It looks at names, paths, sizes and structure, not at what the files contain, so a harmful file with an ordinary name, such as a malicious PDF, won't be flagged. Scan the extracted files with your antivirus as well.
If something looks wrong
- Don't open or run anything from the archive. Delete it, or leave it unopened if your IT team wants to see it.
- Contact the sender through a different channel to check whether they really sent it.
- At work, report it to your IT or security team. Many organisations have a report button in the mail client.
- If you already opened something suspicious, disconnect from the network, run a full scan with your antivirus and tell your IT team.