A man-in-the-browser attack is malware that operates inside the victim's own web browser, intercepting and manipulating web activity after the page loads and after any HTTPS connection is already established. Unlike a network interception that sits between your machine and the server, a man-in-the-browser attack sits between the web page and your eyes: it can read everything you type — passwords, account numbers, one-time codes — and rewrite what you see, so the payment you approved is not the payment that is executed. From the victim's side, everything looks normal, which is what makes the attack class quietly devastating for finance and admin work.
TL;DR
- Man-in-the-browser malware lives in the browser itself — as malicious extensions, injected scripts or browser-process tampering — and reads or rewrites web activity on the victim's own device.
- It defeats the two things people trust most: the padlock and the 'looked right' page, because both are read on the infected machine after they are rendered.
- Classic behaviours: credential capture at login, transaction tampering on payment screens, and real-time relay of MFA codes.
- Defences are layered: endpoint protection, extension allow-lists, transaction signing or out-of-band approval, and the staff habit of reporting odd browser behaviour.
- The same training that stops the initial install stops the attack — the malware still has to get onto the machine first.
What a man-in-the-browser attack actually is
The name describes the position: an attacker positioned inside the browser, between the web application and the user. The techniques in the family:
- Malicious browser extensions. Installed through a deceptive listing or a bundled installer, they read page content, log keystrokes and exfiltrate data with full browser permissions.
- Injected scripts. Malware on the device hooks the browser process and injects JavaScript into every page as it loads — invisible to the user, undetectable by the website.
- Transaction-tampering trojans. The historic banker-trojan pattern (Zeus, and the families that followed): the victim reviews a legitimate-looking transfer, but the injected code has rewritten the account details before submission — same session, different payee.
- Real-time credential and MFA relay. The malware captures the login and one-time code as typed and hands the live session to the attacker, who uses it while the victim believes they are still on the site.
The common thread: nothing is intercepted on the network. Everything happens after the encrypted connection has already delivered the page, on a machine the user trusts.
Why the padlock does not protect you
HTTPS proves the connection between your browser and the server is encrypted — it says nothing about what the browser itself is doing with the content. A man-in-the-browser attack happens after the decryption, on the victim's machine: the page arrives encrypted and correct, and is then altered or read inside the compromised browser. That is why the classic advice 'check for the padlock' does nothing here, and why the attack outflanks a security model that treats the endpoint as trusted.
The Australian context
The loss pattern that follows this attack is the familiar one: payments that went to the wrong account, mailboxes that sent invoices nobody sent, admin panels altered from inside a real session. The Australian Signals Directorate logged more than 84,700 cybercrime reports in 2024-25 — one every six minutes — with small business reporting an average self-reported cost of $56,600 per incident (ASD Annual Cyber Threat Report 2024-2025). The quiet session-level compromise that a man-in-the-browser attack produces is exactly the shape of incident behind many of those reports.
Signs of a man-in-the-browser compromise
- The browser behaves differently than it used to: new toolbars, changed homepage or search engine, unfamiliar extensions nobody can remember installing.
- Pages render oddly — unexpected fields, altered layouts, prompts for information the real site never asks for.
- A payment or transfer confirmation shows different payee details at the bank's end than on your screen.
- MFA prompts arrive for logins you did not just attempt.
- The machine is slower than it should be, or shows unfamiliar processes consuming CPU or network.
- Colleagues or the bank report transactions or messages that don't match your records.
Any of these on a machine used for payments or admin work is a disconnect-and-scan event: isolate the device, run a full endpoint scan, and rotate credentials used from it.
How to defend against man-in-the-browser attacks
- Keep endpoint protection current and behavioural. The injected-script and process-hooking techniques are detectable — modern endpoint tools catch the tampering even when the malicious page looks perfect.
- Allow-list browser extensions and audit them quarterly; block the public extension stores on machines that handle payments where practical. A malicious extension is the cheapest version of this attack, and allow-listing is the control that closes it.
- Restrict software installation to admin-approved tools. The malware needs an install to persist — standard users who cannot install software cannot install it.
- Use out-of-band transaction verification. Where the platform supports transaction signing or push approval on a separate device, enable it — rewriting what the victim sees cannot rewrite what a second device confirms.
- Patch the browser and operating system on the same cadence as everything else. Browser zero-days and plugin holes are recurring delivery routes.
- Dedicate machines to sensitive work where possible. A payments laptop that never installs free software and never browses casually is a much harder target.
- Train the report-odd-behaviour habit. The install still has to come through a person: Cyber Aware's security awareness training rehearses the fake-update, bundled-installer and extension lures monthly, phishing simulations measure who clicks, and human risk reporting shows whether the reporting reflex is landing. A cyber security gap assessment confirms the technical floor beneath the training.
Man-in-the-browser vs man-in-the-middle vs session hijacking
| Man-in-the-browser | Man-in-the-middle | Session hijacking | |
|---|---|---|---|
| Where the attacker sits | Inside the victim's browser, on their device | On the network between client and server | With a stolen session token, replaying it |
| Defeats HTTPS? | Yes — operates after decryption | No — encryption and certificate checks resist it | Not relevant — the session is already valid |
| What it can do | Read input, alter transactions, relay MFA | Read or modify unencrypted traffic | Take over the logged-in session |
| Typical delivery | Malicious extension, trojanised install | Fake Wi-Fi, ARP spoofing | Infostealer malware, stolen cookies |
| Primary defence | Endpoint protection, extension allow-lists | VPN, HSTS, certificate validation | Short sessions, device binding, passkeys |
FAQ
What is a man-in-the-browser attack in simple terms? Malware inside your own web browser that watches everything you type and can alter what you see — so the payment you approved on screen is not the payment that actually happens.
Does HTTPS stop a man-in-the-browser attack? No. HTTPS encrypts the connection to the server; the attack runs inside the browser after the page has been decrypted. The padlock proves the pipe, not the machine at your end.
How does man-in-the-browser malware get installed? Through the same routes as most malware: phishing attachments, bundled free software, fake browser updates, or a deceptive extension accepted from the public store.
Can antivirus detect man-in-the-browser attacks? Modern behavioural endpoint protection catches the process-hooking and script-injection techniques and the persistent helpers that reinstall them — signature-only scanning struggles with fresh variants.
What should a business do after a suspected compromise? Disconnect the device from the network, run a full scan, rotate every credential used from that machine from a clean device, review recent transactions with the bank, and report to ReportCyber if money or data moved.
Are browser extensions still a real risk in 2026? Yes — they remain the cheapest version of this attack class. Extensions auto-update silently, so a once-legitimate one can turn malicious without any user action; quarterly audits and allow-listing are the standing defence.
One last thing
Open the extensions list on the machine your finance team uses today. Every entry nobody can explain is a potential man-in-the-browser implant — and the fix takes two minutes. Multiply that check across your fleet and this entire attack class loses its favourite entrance.
Related guides
- Security awareness training — monthly rehearsal of the install decisions this attack depends on.
- Security gap assessment — check endpoint coverage, extension policy and patch cadence as a set.
- Compare security awareness platforms — how platforms differ on building the reporting reflex.