How Fake Outlook Attachments Steal Credentials
Recognise HTML attachments that imitate Microsoft 365 sign-in pages, check the warning signs and respond quickly if a password or MFA code has been entered.

Xian Hui
12 November 2026 · 7 min read

In brief
How do fake Outlook attachments steal passwords, and what should accountants do?
An HTML attachment can open a fake Microsoft 365 sign-in page and send entered passwords to an attacker. Check the file extension and address bar before typing. Close and report suspicious pages. If you entered credentials, report immediately, change your password through a trusted route and have active sessions revoked.
What you'll learn
- Recognise a fake sign-in page opened from an email attachment
- Explain how an HTML file can capture passwords and MFA codes
- Check file extensions and browser addresses before entering credentials
- Respond promptly after opening a suspicious page or entering a password
- Identify account settings that need review after suspected compromise
How Fake Outlook Attachments Steal Credentials
An accountant at a small Singapore practice is matching incoming receipts to a client's ledger. An email titled 'Remittance advice for outstanding invoices' arrives with Remittance_Advice_SGD.htm attached. Opening it launches the browser, rather than Word, Excel or a PDF reader. A Microsoft-style sign-in box appears with the accountant's work email already filled in. The page claims the document is protected and asks for a password.
Stop before typing. Fake Outlook attachments can turn a routine remittance check into credential theft. The important question is who controls the page asking for your credentials.
How can an attachment become a fake sign-in page?
An HTML file is a web page saved as a file. The extensions .htm and .html identify this format. HTML attachment phishing uses that page to imitate a familiar service, such as an Outlook or Microsoft 365 sign-in screen.
The file can contain both the appearance of a sign-in form and instructions that send entered information to an attacker. It does not need to open a real Microsoft service to display a convincing box. An email address already filled in is just text the attacker can supply.
Because the page starts as a file on the computer, the address bar may show a local path beginning file:///. Alternatively, the attachment may quickly redirect to an attacker-controlled website. A local starting point does not prevent the page from sending information over the internet.
What might the accountant see?
This illustration shows the warning signs. It is not a working form or a reproduction of Microsoft's screen. The address bar, highlighted in orange, is the giveaway.
The decisive mismatch is a supposed remittance document asking for work credentials through a downloaded web page. Do not enter a password to test it. Do not use a colleague's account or reopen the attachment on another device to investigate.
Why might Outlook and antivirus allow the attachment through?
Microsoft's published blocked-attachment list includes .exe and .js, but does not list .htm or .html. That default extension list therefore does not, by itself, block these two web-page formats. A practice's administrator or other security controls may impose additional restrictions.
A credential-stealing page does not need to contain a virus or install software. Its purpose may be to persuade you to submit a password. Security tools can still identify phishing, but delivery to the inbox and the absence of an antivirus warning are not evidence of authenticity.
Learn to recognise dangerous email attachments and file extensions, rather than relying on the attachment icon or the reassuring words in its filename.
Which warning signs should you check?
Pause at any unexpected request for credentials. Use these signs together, rather than treating one reassuring detail as clearance.
| Sign | What it means |
|---|---|
The attachment ends in .htm, .html, .shtml or .svg | The file may display browser content. The extension does not establish a safe document. |
| A supposed document opens in the browser | Check why it is presenting a sign-in screen instead of the expected content. |
The address starts with file:/// | You are viewing a local file, not a Microsoft-hosted sign-in page. |
The domain is not login.microsoftonline.com or your firm's known sign-in page | It is not an expected sign-in destination. Stop and verify independently. |
| You must sign in just to read an attachment | The file is asking for account access. Verify the sharing request separately. |
| Your email address is pre-filled | Someone knows your address. This does not authenticate the page. |
| An unexpected MFA prompt appears | Do not approve it or supply a code to the page. |
| The page rejects a password you believe is correct | It may be collecting another entry. Do not try again there. |
For more on destinations, follow the guide to checking links and websites before and after clicking.
What happens after a password or MFA code is entered?
Some fake pages report 'incorrect password' to collect the password twice. Others redirect to the real Microsoft site afterwards. Seeing a genuine page later does not undo an earlier disclosure.
Some attacks relay the sign-in to Microsoft in real time. Multi-factor authentication (MFA) adds a check beyond the password, but a code typed into the fake page may also be relayed and used by the attacker. Do not approve an unexpected prompt, even if it follows the attachment you just opened.
Supported passkeys and security keys bind authentication to the genuine service, helping resist this impersonation. The course article on passwords, passkeys and MFA for accountants explains the distinction between manually entered codes and phishing-resistant methods.
How should you open a genuine shared document?
Genuine Microsoft 365 sign-in normally uses login.microsoftonline.com, or your firm's own sign-in page if IT has set one up. Open Microsoft 365 yourself through a known address or trusted bookmark before accessing the shared file. Genuine OneDrive or SharePoint sharing uses links to hosted files, rather than an .htm attachment that asks you to type your password.
If the request remains unclear, contact the sender using details already held by the practice. Ask them to confirm what they shared. A familiar-looking link still needs checking.
What should you do if you opened the attachment?
If nothing was typed, close the browser tab and report the email through the practice's established channel. State that the attachment was opened but no credentials were entered. Preserve the message for the designated reviewer without forwarding the attachment around the team.
If a password was typed, act immediately:
- Report at once to the designated incident lead or IT contact through a trusted channel. Say whether you entered a password, entered an MFA code or approved a prompt.
- Change the password from a trusted device. Type the known sign-in address yourself rather than following the email or attachment.
- Sign out of all sessions. Ask the administrator to revoke active sessions, as changing a password alone may not end existing access.
- Review sign-in methods and MFA devices with the administrator. Investigate unfamiliar additions and check recent sign-in activity.
- Check mailbox forwarding and inbox rules for unauthorised changes. Follow the practice's incident reporting and containment process and record actions taken.
A compromised mailbox may be used to send false payment instructions to clients. The Singapore Police Force's business email compromise advisory describes attackers using compromised accounts to request changes to payment details. Apply independent verification of supplier bank-detail changes and flag potentially affected instructions to the incident lead.
Key takeaways
- A downloaded web page can imitate Microsoft 365 and collect credentials without installing a virus.
- Check the extension, browser address and reason for signing in before typing.
- A pre-filled email, password error or later genuine page does not prove safety.
- Close and report suspicious pages. After entering credentials, change the password and coordinate account containment immediately.
Last source check: 12 November 2026.
Next in the course: Ransomware, Backups and Recovery for Accounting Practices
Sources
Frequently asked questions
This information has been prepared for general informational purposes only and is not intended to be relied upon as accounting, tax, or other professional advice.


