Why Phishing Attacks Are Changing: The Rise of HTML Attachments and Script-Based Email Threats

Next story

For years, businesses have been trained to be suspicious of Microsoft Word documents asking users to "Enable Content" or Excel spreadsheets hiding malicious macros. While these threats haven't disappeared entirely, cybercriminals have evolved their tactics.

Today, HTML attachments and other script-based files have become increasingly popular tools for launching sophisticated phishing attacks. Instead of infecting a computer with malware, these attacks often have a different objective: stealing Microsoft 365 credentials and gaining access to business email accounts.

For small and medium-sized businesses (SMBs), this shift represents a significant challenge. Many employees know to avoid opening suspicious Office documents, but far fewer understand why HTML attachments are dangerous or how they can be used to impersonate trusted login pages.

As phishing techniques continue to evolve, businesses need both employee awareness and advanced email security to stay protected.

Why phishing attacks are changing

Traditional phishing emails relied heavily on malicious attachments containing macros or embedded malware. However, improvements in Microsoft Office security have made these attacks less effective. By disabling macros by default and introducing stricter protections, Microsoft forced cybercriminals to find new ways to trick victims.

Rather than exploiting software vulnerabilities, today's attackers increasingly exploit human behaviour.

Instead of installing malware, many campaigns simply aim to steal login credentials. Once attackers gain access to a business email account, they can:

  • Launch Business Email Compromise (BEC) scams
  • Steal sensitive company information
  • Send phishing emails from legitimate business accounts
  • Access Microsoft 365 services, including SharePoint, OneDrive and Teams
  • Use compromised accounts as a gateway for broader attacks

This shift explains why phishing attacks are changing and why businesses need to recognise newer types of email threats.

What are HTML attachments?

An HTML attachment is simply a webpage saved as a file, typically with extensions such as:

  • .html
  • .htm
  • .shtml

Unlike a PDF or Word document, HTML files open inside your web browser.

While HTML itself is not malicious, it allows attackers to create highly convincing webpages that closely resemble legitimate login portals from Microsoft 365, Dropbox, DocuSign, Adobe, or banking services.

This is how HTML attachments are used in phishing attacks: instead of directing users to a suspicious website, attackers embed a fake login page inside the attachment itself.

When opened, the file may appear to display:

  • A secure document waiting to be viewed
  • An invoice requiring authentication
  • A voicemail notification
  • A shared OneDrive document
  • A Microsoft 365 login screen

The victim is prompted to enter their username and password, believing they are accessing a legitimate service.

In reality, those credentials are transmitted directly to the attacker.

How cybercriminals steal Microsoft 365 credentials

One of the biggest objectives behind modern HTML phishing campaigns is credential theft.

A typical attack may look like this:

  1. An employee receives an email claiming a document has been shared.
  2. The email contains an HTML attachment instead of a link.
  3. Opening the attachment displays what appears to be a Microsoft 365 login page.
  4. The employee enters their username and password.
  5. The credentials are sent to the attacker.
  6. The fake page may then redirect the user to the real Microsoft login page, making the incident appear harmless.

This is one of the most common ways cybercriminals steal Microsoft 365 credentials, particularly in organisations that rely heavily on cloud-based productivity platforms.

Because no malware is installed, users often don't realise anything suspicious has happened until much later.

Why HTML attachments are dangerous

Understanding why HTML attachments are dangerous requires recognising how they differ from traditional malicious files.

Unlike executable malware, HTML files can:

  • Display convincing fake login portals
  • Redirect users to phishing websites
  • Execute JavaScript within the browser
  • Hide malicious redirects behind legitimate-looking content
  • Evade users who only expect dangerous Word or Excel attachments

Many people assume an HTML file is simply a webpage and therefore safe. Attackers take advantage of this misconception.

As a result, HTML attachment phishing scams have become increasingly effective because they rely more on deception than malware.

Common email attachment threats for small businesses

While HTML phishing is growing, it is only one of several attachment-based techniques targeting SMBs.

Some of the most common include:

  • HTML login pages designed to harvest credentials
  • PDF files containing links to phishing websites
  • ZIP archives hiding malicious scripts
  • JavaScript (.js) files
  • ISO or IMG disk image files
  • OneNote files containing embedded malicious content
  • Password-protected archives designed to bypass email scanning

Cybercriminals continually adapt their techniques as security controls improve, making layered protection increasingly important.

How to identify malicious HTML attachments

Employee awareness remains an essential part of SMB cybersecurity. Here are several warning signs that can help staff identify malicious HTML attachments:

Unexpected login requests

If opening an attachment immediately asks you to sign in to Microsoft 365 or another service, pause before entering your credentials.

Unusual attachment types

Many employees expect PDFs or Office documents. An unexpected ".html" file should prompt additional caution.

Urgent language

Messages claiming your account will expire, that an invoice requires immediate review, or that a payment is overdue are common phishing tactics.

Generic greetings

"Dear Customer" or "Dear User" instead of your name may indicate phishing.

Mismatched sender information

Always verify both the sender's address and the context of the request.

Unexpected document-sharing notifications

If you weren't expecting a shared document, confirm with the sender using another communication channel before opening the attachment.

Email attachment security best practices

Strong email attachment security best practices combine employee awareness with technical controls.

Businesses should:

  • Train employees to recognise newer phishing techniques, not just malicious Office documents.
  • Verify unexpected attachments before opening them.
  • Enable multi-factor authentication (MFA) for Microsoft 365 accounts.
  • Keep operating systems and browsers updated.
  • Use advanced email filtering capable of analysing modern phishing techniques.
  • Block dangerous attachment types where appropriate.
  • Monitor account logins for suspicious activity.
  • Use endpoint protection to detect malicious scripts and related threats.

These practices significantly reduce the likelihood of successful email phishing attacks.

How to protect your business from HTML phishing

As attackers become more sophisticated, businesses need multiple layers of protection rather than relying solely on user awareness.

A modern cybersecurity strategy should include:

Advanced email protection

Email remains the primary delivery method for phishing attacks. Advanced filtering can identify suspicious attachments before they reach employees.

Endpoint protection

Even if a malicious attachment is opened, endpoint protection can detect and block malicious activity.

Credential protection

Monitoring for suspicious authentication attempts helps reduce the impact of stolen credentials.

Behaviour-based detection

Modern security solutions can identify suspicious behaviours rather than relying only on known malware signatures.

Security awareness training

Employees remain the last line of defence against phishing attempts.

Protecting SMBs from email phishing attacks with ESET PROTECT Advanced

Modern phishing campaigns demand more than basic antivirus software.

ESET PROTECT Advanced provides a layered approach designed to help businesses defend against today's evolving email threats, including credential theft and sophisticated phishing campaigns.

Key capabilities include:

  • Advanced endpoint protection against known and emerging threats
  • Cloud-based management for simplified administration
  • File Server Security to protect critical business data
  • Full Disk Encryption to safeguard sensitive information if devices are lost or stolen
  • Advanced threat detection using machine learning and behavioural analysis
  • Easy deployment and centralised visibility across endpoints

By combining advanced protection technologies with employee awareness, businesses can reduce their exposure to phishing attacks that target both users and identities.

Phishing has evolved. Your defences should too

The days when businesses only needed to worry about malicious Word documents are over.

Today's attackers increasingly rely on HTML attachments, convincing fake login pages, and sophisticated social engineering to steal credentials rather than install malware.

Understanding how HTML attachments are used in phishing attacks, recognising suspicious attachment types, and following email attachment security best practices are essential steps for every SMB.

However, awareness alone isn't enough.

The most effective defence against modern cyber threats is a layered security strategy that combines employee education with advanced endpoint protection, intelligent email security, and continuous threat detection.

As phishing continues to evolve, businesses that adapt their security posture will be far better positioned to protect their users, their data, and their reputation