{"id":56238,"date":"2026-08-07T05:57:50","date_gmt":"2026-08-07T09:57:50","guid":{"rendered":"https:\/\/www.kaspersky.com\/blog\/?p=56238"},"modified":"2026-08-07T06:03:45","modified_gmt":"2026-08-07T10:03:45","slug":"dangerous-extensions-in-email","status":"publish","type":"post","link":"https:\/\/www.kaspersky.com\/blog\/dangerous-extensions-in-email\/56238\/","title":{"rendered":"To open or not to open: the email attachments that put you at risk"},"content":{"rendered":"<p>Have you ever tried to open an \u201cencrypted\u201d email or an urgent document, only to realize with horror that your usual DOCX attachment is actually a file with the extension .docx.exe? Or maybe you received an email supposedly with an invoice, contract, or internal memo attached\u00a0\u2014 only for the file to prove something entirely different from what it claimed to be? If so, you were likely targeted in a malware infection attempt.<\/p>\n<p>Cybercriminals routinely disguise malicious files as harmless documents and archives, banking on recipients blindly clicking without checking the extension. Kaspersky experts analyzed the file formats most frequently deployed in malicious email blasts to reveal what really lurks behind these extensions\u00a0\u2014 and how attackers weaponize them in their campaigns.<\/p>\n<p>Important note: the extensions we\u2019ll be discussing here are routinely used for completely legitimate files. For example, Windows executables normally end in .exe. However, we\u2019re focusing specifically on scenarios where attackers disguise or spoof a file\u2019s extension to pass it off as a totally different type of file.<\/p>\n<h2>What extensions are most commonly found in malware?<\/h2>\n<p>Our experts analyzed malicious email blasts from the beginning of 2026 to pinpoint the 15 most common dangerous file extensions.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"85\">.exe<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.js<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.html<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.dll<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.bat<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.vbs<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.xls<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.pdf<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.jse<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.au3<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.docx<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.htm<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.wsf<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.scr<\/td>\n<\/tr>\n<tr>\n<td width=\"85\">.lnk<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"wp-caption aligncenter\">\n<p class=\"wp-caption-text\">The top 15 file extensions used in malicious email blasts<\/p>\n<\/div>\n<p>Let\u2019s take a look at what files with these extensions actually do under the hood.<\/p>\n<h2>Executable files<\/h2>\n<p>An executable file is a compiled computer program that\u2019s ready to run. Once launched, a malicious executable can download additional payloads, alter system settings, steal user data, connect your device to external attacker-controlled servers, and much more. These are the most common executable extensions found in malicious email campaigns:<\/p>\n<ul>\n<li>.exe<\/li>\n<li>.dll<\/li>\n<li>.com<\/li>\n<li>.scr<\/li>\n<\/ul>\n<h3>.exe<\/h3>\n<p>The classic Windows executable extension. It powers every program you use daily, from web browsers and games to office suites and software installers.<\/p>\n<p>By the way, attackers often wrap EXE malware in double extensions: invoice.docx.exe, report.pdf.exe, or even photo.jpg.exe. They take advantage of a default Windows setting: hiding extensions for known file types. Because this setting is turned on by default, users only see the first part of the file name\u00a0\u2014 invoice.docx, report.pdf, or photo.jpg\u00a0\u2014 and assume it\u2019s just a normal document or image. But the second you open this trap file, the malware fires up.<\/p>\n<h3>.dll<\/h3>\n<p>Another common extension abused in malicious campaigns is .dll (dynamic-link library). These libraries hold functions that Windows programs frequently require while running, such as printing a document. This modular architecture prevents redundant code by letting multiple applications call on the exact same library for specific tasks. However, if an attacker replaces a legitimate library with an infected one, running any normal program that calls on it can trigger malicious code.<\/p>\n<h3>.com<\/h3>\n<p>While files with the .com extension have absolutely nothing to do with the web domain of the same name, cybercriminals likely count on victims mistaking these files for links in an unusual format. In reality, it\u2019s a legacy Windows executable format.<\/p>\n<p>While modern versions of Windows no longer rely on this file type, the operating system can still run and execute it, which makes opening one a very bad idea.<\/p>\n<h3>.scr<\/h3>\n<p>SCR files are screensavers\u00a0\u2014 those idle Windows screen animations featuring abstract patterns, the iconic bouncing logo, or whatever else. Despite their harmless reputation, screensavers are essentially executables just like EXE files: once opened, they can install extra components or alter system settings all the same. In malicious campaigns, these files routinely masquerade as images, screenshots, or documents.<\/p>\n<h2>Scripts<\/h2>\n<p>Scripts are text files containing a sequence of commands that a computer runs automatically in order. They can download files, install and launch programs, modify security settings, and plenty more. Email attackers rely on the following script types most often:<\/p>\n<ul>\n<li>.js and .jse<\/li>\n<li>.bat<\/li>\n<li>.cmd<\/li>\n<li>.vbs<\/li>\n<li>.wsf<\/li>\n<li>.vbe<\/li>\n<li>.au3<\/li>\n<\/ul>\n<h3>.js and .jse<\/h3>\n<p>The .js and .jse extensions are used by JavaScript files. Most users associate JavaScript strictly with websites and don\u2019t realize these files can run locally on their computer as standalone programs.<\/p>\n<p>We recently wrote about <a href=\"https:\/\/www.kaspersky.com\/blog\/prankware-crystalx-rat-maas\/55537\/\" target=\"_blank\" rel=\"noopener nofollow\">CrystalX RAT, a remote access Trojan<\/a> that logs keystrokes, steals clipboard contents, and injects malicious components into web browsers upon installation. Its JS scripts <a href=\"https:\/\/securelist.com\/crystalx-rat-with-prankware-features\/119283\/\" target=\"_blank\" rel=\"noopener\">monitored<\/a> cryptocurrency wallet addresses and silently swapped them with the attacker\u2019s own to hijack transactions in real time.<\/p>\n<h3>.cmd and .bat<\/h3>\n<p>BAT and CMD files are designed to automate tasks in Windows and can execute virtually any command in the operating system. Launching a file like this can infect your computer with malware.<\/p>\n<h3>.vbs<\/h3>\n<p>Visual Basic Script files with the .vbs extension are a long-time favorite among cybercriminals. Attackers frequently use double extensions to disguise .vbs files as plain text documents, such as invoices, app installation guides, or emails. For example, in the early 2000s, the <a href=\"https:\/\/www.kaspersky.com\/blog\/cybersecurity-history-iloveyou\/45001\/\" target=\"_blank\" rel=\"noopener nofollow\"><strong>iconic ILOVEYOU worm spread via a VBS script, infecting millions of computers worldwide<\/strong><\/a>. Victims received an email with the subject line \u201cILOVEYOU\u201d, but instead of a sweet confession, the attachment contained a malicious script. At its peak, this \u201cromantic\u201d worm had infected up to 10% of all internet-connected computers.<\/p>\n<h2>Web files<\/h2>\n<p>This category mainly includes .html, .htm, .hta and .svg files. Often these are phishing pages in disguise, designed to mimic login forms for email, cloud services, banking apps, and other platforms. Naturally, any credentials entered on these fake pages go straight to the attackers hunting for your accounts and money. Web files can also trigger malicious scripts and download additional payloads onto your system.<\/p>\n<h2>Archives<\/h2>\n<p>Cybercriminals routinely package malicious files inside archives (most commonly having .zip, .rar, and .7z extensions). These archives are often password-protected or encrypted to hinder content scanning. Additionally, attackers sometimes create intentionally <a href=\"https:\/\/any.run\/cybersecurity-blog\/corrupted-files-attack\/\" target=\"_blank\" rel=\"noopener nofollow\">corrupted archives<\/a> with damaged data structures: basic security filters often stumble over broken files and skip scanning them altogether, whereas archive managers can automatically repair and unpack the contents anyway.<\/p>\n<p>That\u2019s why we recommend using <a href=\"https:\/\/www.kaspersky.com\/home-security?icid=gl_kdailyplacehold_acq_ona_smm__onl_b2c_blo_lnk_sm-team______\" target=\"_blank\" rel=\"noopener nofollow\">advanced security solutions<\/a>\u00a0that can spot phishing emails and prevent you from launching dangerous files hidden inside archives.<\/p>\n<h2>PDF files (.pdf)<\/h2>\n<p>To many, PDF feels like a completely harmless file format\u00a0\u2014 after all, what could go wrong with flight tickets, documents, and slide decks? But beyond static text and images, PDFs can host clickable links, forms, and even scripts.<\/p>\n<p>Malicious code in a PDF is usually tucked away behind visual elements or embedded as hidden text. What\u2019s more, the risk comes not just from the file itself, but also from the software you use to view it: for instance, attackers spent months <a href=\"https:\/\/thehackernews.com\/2026\/04\/adobe-reader-zero-day-exploited-via.html\" target=\"_blank\" rel=\"noopener nofollow\">exploiting<\/a> a vulnerability in Adobe Acrobat that allowed them to execute malicious PDF files remotely. If you regularly work on PDF documents, make sure the JavaScript feature is disabled in your Adobe Acrobat. To do this, go to <em>Preferences<\/em> \u2192 <em>JavaScript<\/em> in the menu.<\/p>\n<p>By the way, heavy users of AI agents and chatbots should keep in mind that AI frequently falls for <a href=\"https:\/\/www.kaspersky.com\/blog\/new-llm-attack-vectors-2025\/54323\/\" target=\"_blank\" rel=\"noopener nofollow\">prompt injections<\/a>: hidden commands buried inside images, text, and web pages that the AI interprets as legitimate instructions, and executes without your knowledge.<\/p>\n<h2>LNK shortcuts (.lnk)<\/h2>\n<p>Files with the .lnk extension are standard Windows shortcuts that we use every day for quick access to apps and folders. By themselves, shortcuts don\u2019t contain any software\u00a0\u2014 they simply tell Windows what file to open or what command to run.<\/p>\n<p>However, an attacker can give a shortcut any icon and any name they want, completely hiding its real destination. The moment a victim clicks the shortcut, the infection chain kicks off. The malicious code usually executes silently in the background, leaving virtually no visual clues that anything went wrong.<\/p>\n<p>Cybercriminals also like to <a href=\"https:\/\/www.kaspersky.com\/blog\/polyglot-malware-masking-technique\/53263\/\" target=\"_blank\" rel=\"noopener nofollow\">hide LNK files behind double extensions<\/a> \u2014 betting that users won\u2019t look close enough to see what kind of file they\u2019re actually opening. Here\u2019s a classic example:<\/p>\n<div id=\"attachment_56242\" style=\"width: 1086px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/media.kasperskydaily.com\/wp-content\/uploads\/sites\/92\/2026\/08\/07054636\/dangerous-extensions-in-email-01.jpg\"><img decoding=\"async\" aria-describedby=\"caption-attachment-56242\" class=\"wp-image-56242 size-full\" title=\"Attackers use double extensions to disguise malicious LNK files\" src=\"https:\/\/media.kasperskydaily.com\/wp-content\/uploads\/sites\/92\/2026\/08\/07054636\/dangerous-extensions-in-email-01.jpg\" alt=\"Attackers use double extensions to disguise malicious LNK files\" width=\"1076\" height=\"197\"><\/a><p id=\"caption-attachment-56242\" class=\"wp-caption-text\">Windows File Explorer displays only the first part of the extension, .docx. The file type is clearly listed as a shortcut, but very few people notice that detail<\/p><\/div>\n<p>Your best bet is to avoid clicking incoming LNK files altogether: no one in their right mind has a reason to email you a desktop shortcut.<\/p>\n<p>By the way, if you haven\u2019t updated Windows in a while, we\u2019ve bad news for you: malicious code <a href=\"https:\/\/unit42.paloaltonetworks.com\/lnk-malware\/\" target=\"_blank\" rel=\"noopener nofollow\">can automatically execute<\/a> without you ever clicking the LNK\u00a0\u2014 simply opening the folder where it lives is enough to trigger it. Microsoft finally <a href=\"https:\/\/thehackernews.com\/2025\/12\/microsoft-silently-patches-windows-lnk.html\" target=\"_blank\" rel=\"noopener nofollow\">released a patch<\/a> for this long-abused vulnerability in December 2025. So don\u2019t put off system updates\u00a0\u2014 install them regularly to patch up the security holes attackers rely on.<\/p>\n<h2>Microsoft Office documents<\/h2>\n<h3>.xls and .xlsx<\/h3>\n<p>The file extension .xls is used by older versions of Microsoft Excel. Millions of people use Excel spreadsheets every day, and many are still running outdated software, which makes XLS files a favorite bait for cybercriminals. Budgets, employee rosters, financial records, urgent reports, and other spreadsheets stop being harmless the moment a user clicks <em>Enable Content<\/em>, allowing the program to run macros\u00a0\u2014 custom Microsoft Office scripts and commands built into the files. Once allowed, the malicious macro gets free rein to download files, launch programs, harvest system data, and alter settings.<\/p>\n<p>Unlike XLS, XLSX is the modern Excel format, which doesn\u2019t support embedded macros by default. Unfortunately, that doesn\u2019t guarantee complete safety: the spreadsheet can still pull live data from external sources and automatically connect to web destinations in the background.<\/p>\n<h3>.docx<\/h3>\n<p>Although modern DOCX files don\u2019t support macros by default, attackers have long figured out other ways to weaponize these documents. Typically, malicious DOCX files contain embedded links or instructions that force Word to contact external servers and pull down malicious payloads. Back in 2023, for instance, researchers uncovered a Microsoft Office <a href=\"https:\/\/msrc.microsoft.com\/update-guide\/vulnerability\/CVE-2022-30190\" target=\"_blank\" rel=\"noopener nofollow\">vulnerability<\/a> that allowed attackers to trigger built-in Windows system tools and download malware straight from the web.<\/p>\n<p>To reduce your risk when working with Microsoft Office apps, we recommend <a href=\"https:\/\/support.microsoft.com\/en-US\/Office\/collab-files\/what-is-protected-view\" target=\"_blank\" rel=\"noopener nofollow\">turning on Protected View<\/a>, <a href=\"https:\/\/support.microsoft.com\/en-US\/Office\/security-privacy\/block-or-unblock-external-content-in-office-documents\" target=\"_blank\" rel=\"noopener nofollow\">blocking external connections<\/a>, and <a href=\"https:\/\/support.microsoft.com\/en-US\/excel\/change-macro-security-settings-in-excel\" target=\"_blank\" rel=\"noopener nofollow\">disabling all macros without notification<\/a>.<\/p>\n<h3>Macro support in modern Microsoft Office<\/h3>\n<p>Macros are sequences of commands that automate complex, repetitive tasks in Excel, Outlook, Word, and PowerPoint. In modern versions of Microsoft Office, documents containing embedded macros are saved in specialized file formats with extensions like .xlsm, .xltm, .xlsb, .docm, and .pptm. While Microsoft Office includes built-in security controls\u00a0\u2014 such as <a href=\"https:\/\/support.microsoft.com\/en-us\/office\/security-privacy\/block-or-unblock-external-content-in-office-documents\" target=\"_blank\" rel=\"noopener nofollow\">blocking files downloaded from the web<\/a> and <a href=\"https:\/\/support.microsoft.com\/en-US\/Office\/security-privacy\/turn-on-or-off-security-alerts-and-policy-tips-in-the-message-bar-for-office\" target=\"_blank\" rel=\"noopener nofollow\">warning<\/a> you about potentially dangerous macros\u00a0\u2014 if you don\u2019t actually use macros and have no specific reason to run them, treat files with these extensions with caution.<\/p>\n<h2>How to check if a file is safe<\/h2>\n<ul>\n<li><strong>Use a <a href=\"https:\/\/www.kaspersky.com\/premium?icid=gl_bb2023-kdplacehd_acq_ona_smm__onl_b2c_kdaily_lnk_sm-team___kprem___\" target=\"_blank\" rel=\"noopener nofollow\">comprehensive security suite<\/a><\/strong> that automatically scans files for malware, prevents infections, blocks visits to suspicious sites, and completely removes malicious files from your devices. You can take advantage of a 30-day trial of <a href=\"https:\/\/www.kaspersky.com\/premium?icid=gl_bb2023-kdplacehd_acq_ona_smm__onl_b2c_kdaily_lnk_sm-team___kprem___\" target=\"_blank\" rel=\"noopener nofollow\">Kaspersky Premium<\/a>\u00a0if you urgently need to disinfect your computer or scan a file for viruses.<\/li>\n<li><strong>Never open attachments from unknown senders.<\/strong> Curiosity can cost you dearly, since many malware strains specifically hunt for credit card and crypto wallet data. Let the <a href=\"https:\/\/support.kaspersky.com\/kaspersky-for-windows\/21.26\/70873\" target=\"_blank\" rel=\"noopener\">Mail Anti-Virus<\/a> feature included in our <a href=\"https:\/\/www.kaspersky.com\/home-security?icid=gl_kdailyplacehold_acq_ona_smm__onl_b2c_blo_lnk_sm-team______\" target=\"_blank\" rel=\"noopener nofollow\">security solutions<\/a> do the heavy lifting: it automatically filters out malicious or suspicious emails and protects you from phishing attacks.<\/li>\n<li><strong>Examine incoming emails carefully<\/strong>: cybercriminals have become adept at disguising malicious messages. Always verify email addresses against official ones and make sure you know the signs of <a href=\"https:\/\/www.kaspersky.com\/blog\/how-to-deal-with-email-phishing\/53990\/\" target=\"_blank\" rel=\"noopener nofollow\">phishing<\/a> and <a href=\"https:\/\/www.kaspersky.com\/blog\/how-to-protect-against-spam\/52974\/\" target=\"_blank\" rel=\"noopener nofollow\">spam<\/a>. Attackers might try to scare you with claims of a hacked account, lure you to shady sites with \u201cunbeatable deals\u201d, or urge you to review a work document attached to the email. Any attempt to manipulate your emotions is a major red flag that someone is trying to trick you.<\/li>\n<li><strong>Never open files with double extensions. <\/strong>It\u2019s almost always a trap.<\/li>\n<li><strong>If you run into a file with an unfamiliar extension, take a moment to look it up online<\/strong>. Remember: a photo or plain text document will never have an .lnk or .vbs extension.<\/li>\n<\/ul>\n<blockquote><p>Check out our other posts on email and file security:<\/p>\n<ul>\n<li><a href=\"https:\/\/www.kaspersky.com\/blog\/how-to-protect-against-spam\/52974\/\" target=\"_blank\" rel=\"noopener nofollow\">Spam 101: what is spam, and how to defeat it<\/a><\/li>\n<li><a href=\"https:\/\/www.kaspersky.com\/blog\/how-to-deal-with-email-phishing\/53990\/\" target=\"_blank\" rel=\"noopener nofollow\">Phishing 101: what to do if you get a phishing email<\/a><\/li>\n<li><a href=\"https:\/\/www.kaspersky.com\/blog\/appsheet-phishing-emails\/55827\/\" target=\"_blank\" rel=\"noopener nofollow\">Attackers disguising phishing as Google AppSheet notifications<\/a><\/li>\n<li><a href=\"https:\/\/www.kaspersky.com\/blog\/qr-phishing-protection-technology\/53146\/\" target=\"_blank\" rel=\"noopener nofollow\">Checking QR codes in emails<\/a><\/li>\n<li><a href=\"https:\/\/www.kaspersky.com\/blog\/how-to-convert-files-safely\/53109\/\" target=\"_blank\" rel=\"noopener nofollow\">How to safely convert files<\/a><\/li>\n<\/ul>\n<\/blockquote>\n<input type=\"hidden\" class=\"category_for_banner\" value=\"premium-generic\">\n","protected":false},"excerpt":{"rendered":"<p>Our experts investigated which file extensions cybercriminals use most in their email blasts. Here&#8217;s a breakdown of the most dangerous attachment types \u2014 and how to keep your devices safe from malicious files.<\/p>\n","protected":false},"author":2706,"featured_media":56239,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2683],"tags":[19,4146,76,422],"class_list":["post-56238","post","type-post","status-publish","format-standard","has-post-thumbnail","category-threats","tag-email","tag-macros","tag-phishing","tag-threats"],"hreflang":[{"hreflang":"x-default","url":"https:\/\/www.kaspersky.com\/blog\/dangerous-extensions-in-email\/56238\/"},{"hreflang":"ru","url":"https:\/\/www.kaspersky.ru\/blog\/dangerous-extensions-in-email\/42464\/"},{"hreflang":"ru-kz","url":"https:\/\/blog.kaspersky.kz\/dangerous-extensions-in-email\/30929\/"}],"acf":[],"banners":"","maintag":{"url":"https:\/\/www.kaspersky.com\/blog\/tag\/email\/","name":"email"},"_links":{"self":[{"href":"https:\/\/www.kaspersky.com\/blog\/wp-json\/wp\/v2\/posts\/56238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kaspersky.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kaspersky.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kaspersky.com\/blog\/wp-json\/wp\/v2\/users\/2706"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kaspersky.com\/blog\/wp-json\/wp\/v2\/comments?post=56238"}],"version-history":[{"count":6,"href":"https:\/\/www.kaspersky.com\/blog\/wp-json\/wp\/v2\/posts\/56238\/revisions"}],"predecessor-version":[{"id":56241,"href":"https:\/\/www.kaspersky.com\/blog\/wp-json\/wp\/v2\/posts\/56238\/revisions\/56241"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kaspersky.com\/blog\/wp-json\/wp\/v2\/media\/56239"}],"wp:attachment":[{"href":"https:\/\/www.kaspersky.com\/blog\/wp-json\/wp\/v2\/media?parent=56238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kaspersky.com\/blog\/wp-json\/wp\/v2\/categories?post=56238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kaspersky.com\/blog\/wp-json\/wp\/v2\/tags?post=56238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}