Phishing Emails Use HTML Attachments to Hide Credential Theft Pages
Social Engineering & Fraud · 1 source · Updated 4mo ago · First seen Aug 14, 2026

Cybercriminals are increasingly using HTML attachments in phishing emails to evade detection and steal credentials, embedding malicious logic directly in attached files instead of placing suspicious links in the message body. The attachments commonly use JavaScript to redirect victims to fraudulent login pages or to display a complete phishing page locally inside the browser, making the email appear less obviously malicious to both users and some security controls.
Researchers found that attackers also obfuscate these attachments to hinder static analysis, including hiding phishing URLs, concealing entire scripts, and using deprecated JavaScript functions such as unescape() to decode and render phishing content at runtime. Kaspersky reported detecting nearly 2 million emails carrying malicious HTML attachments in the first four months of 2022, including 851,328 blocked in March alone, underscoring how effective and persistent the technique remains for credential-harvesting campaigns.
Why it matters
Impact assessment
HTML-attachment phishing affects any organization with email-exposed users, especially enterprises relying on webmail, browser-based SSO, banking portals, and cloud identity providers. The primary impact is credential theft leading to account takeover, follow-on business email compromise, fraud, and reputational damage rather than direct malware execution.
This is a widespread and persistent exposure, not a narrowly targeted issue. Kaspersky reported nearly 2 million malicious HTML-attachment emails detected in the first four months of 2022, including 851,328 in March alone, indicating active use in the wild at scale.
Supporting details
- Affected populations: email users, help desks, finance staff, executives, and users of cloud login portals.
- Affected industries: broad cross-sector exposure; financial services branding was specifically abused in an HSBC-themed example.
- Severity: moderate to high depending on downstream access tied to stolen credentials, especially where MFA is weak or absent.
- Scope: mass phishing campaigns with broad delivery volume.
- Exploitation in the wild: yes; the story describes active credential-harvesting campaigns and large-scale detections.
Structured facts extracted
- Entity names: Kaspersky, HSBC Bank.
- Threat type: phishing, credential theft, account takeover precursor.
- Delivery method: phishing emails with HTML attachments.
- Scale data:
- Nearly 2 million malicious HTML-attachment emails detected in the first four months of 2022.
- 851,328 blocked in March 2022.
- 299,859 detected in January 2022.


