TheCyberNews

Dangerous File Extensions

Before you click on an email attachment, check its file extension (the letters after the dot). Use this database to see if it is safe or a known malware vector.

ExtensionTypeDanger LevelDescription
.exe
Executable
Critical RiskA direct Windows program. Never open this from an email.
.scr
Screensaver
Critical RiskActually a hidden executable file. Heavily used by older malware.
.bat
Batch File
Critical RiskA script that runs commands directly on your computer.
.vbs
VBScript
Critical RiskA script that executes code via Windows Script Host.
.js
JavaScript
Critical RiskWhile normally safe inside a browser, downloading and running a raw .js file will execute it directly on your computer.
.docm
Macro Document
High RiskA Word document that contains embedded code (macros). Often used in spear-phishing.
.xlsm
Macro Spreadsheet
High RiskAn Excel spreadsheet with embedded macros. Frequently used to distribute ransomware.
.zip
Compressed Archive
Medium RiskSafe on its own, but hackers use zip files to bypass email scanners and hide the real malware inside.
.iso
Disk Image
Medium RiskActs like a virtual CD-ROM. Recently abused by hackers to bypass Windows security warnings (Mark-of-the-Web).
.pdf
PDF Document
Low RiskGenerally safe to view. The main risk is phishing links hidden inside the text.
.txt
Plain Text
Generally SafeCannot execute code. (However, always ensure the file doesn't end in .txt.exe!)
.jpg
Image
Generally SafeStandard image file. (Make sure you have file extensions visible in Windows so a hacker can't trick you with image.jpg.exe)

The "Hidden Extension" Trick

By default, Windows hides file extensions for "known file types" to make things look cleaner. Hackers absolutely love this feature.

If a hacker names their virus invoice.pdf.exe, Windows will hide the .exe part. To you, it looks exactly like a harmless file named invoice.pdf. When you double-click it expecting a document, it runs the virus instead.

How to show File Extensions in Windows:

  1. Open File Explorer (Press the Windows Key + E).
  2. Click the View tab at the top.
  3. Check the box next to File name extensions.