Browser security at work: malicious extensions, session hijacking and the new attack surface
Why the browser has become the place where work and attacks happen, how malicious browser extensions, session hijacking, OAuth consent phishing and unapproved AI tools work, and which controls actually reduce the risk.
Summary
- Most work now happens in the browser: email, documents, CRM, code review, admin consoles and AI assistants. The browser holds the session cookies and tokens that open all of them, which makes it one of the most valuable targets on any device.
- The main threats are malicious or hijacked browser extensions, session hijacking through stolen cookies, OAuth consent phishing, sensitive data pasted into unapproved AI tools, and SaaS used only through the browser without IT knowing about it.
- Effective controls are layered: extension allow-lists through browser management policies, short and bound sessions, phishing-resistant MFA, regular OAuth app reviews, browser and identity telemetry, and awareness that explains real attack patterns.
Much of what used to be desktop software now runs in a browser tab. Email, documents, chat, CRM, ticketing, code review, cloud consoles, HR systems and AI assistants all live behind a URL. For many employees, the browser is the workplace.
Attackers have noticed. If everything important is reachable from the browser, then the browser, its extensions and the session tokens it stores are a shortcut past firewalls, endpoint agents and even passwords. This guide explains the main risks for browser security in companies, how malicious browser extensions, session hijacking and OAuth consent phishing work, and which controls reduce the risk without making the browser unusable.
Why the browser is the new attack surface
Three developments have moved risk into the browser:
- Everything is SaaS. Business data lives with SaaS providers and is accessed through the browser. The network perimeter no longer sits between the user and the data.
- Sessions are the new keys. After sign-in, access is carried by session cookies and tokens stored in the browser. Whoever holds a valid session usually does not need the password or the second factor.
- The browser is extensible. Extensions can read and change pages, see what users type and make requests on their behalf. Each extension is third-party code running inside your most important application.
At the same time, the browser is often the least managed piece of software on a device. Operating systems get patch policies and endpoint protection; browsers are frequently left with default settings, whatever extensions users install, and sign-ins to personal profiles mixed with work accounts.
Malicious browser extensions
Most extensions are useful and harmless. The problem is that an extension with broad permissions has almost the same access as the user in every tab. There are three common ways a malicious browser extension ends up on a work device:
- Installed on purpose. An extension that promises a free PDF converter, coupon finder or AI helper collects data in the background.
- Hijacked later. A legitimate extension changes hands, or the developer's store account is compromised, and an update adds malicious code. Extensions update automatically, so the change reaches every installation without anyone noticing.
- Permission creep. An update requests new permissions. Depending on the browser, users may only see a short prompt, which many accept without reading.
Which extension permissions matter
| Permission or capability | What it allows | Risk |
|---|---|---|
| Read and change data on all websites | Read page content, form fields and inject scripts into every site | High: covers webmail, SaaS admin consoles and internal tools |
| Cookies | Read and set cookies for the sites it has access to | High: can copy session cookies and enable session hijacking |
| Web requests | Observe or modify requests and responses | High: can redirect, alter content or capture data in transit |
| Clipboard read | Read what the user copies | Medium to high: passwords, tokens and customer data pass through the clipboard |
| Tabs and history | See which pages are open and visited | Medium: reveals internal URLs and the SaaS tools in use |
| Access to specific sites only | Run on a short, named list of domains | Lower, if the domains fit the purpose of the extension |
Session hijacking and cookie replay
Session hijacking means taking over a session that a legitimate user has already established. In the browser, the most common form is cookie theft followed by replay: an attacker copies the session cookie or token and imports it into their own browser. To the application, the attacker now looks like the signed-in user.
Typical ways session tokens are stolen:
- Infostealer malware on the device reads the browser's cookie store and saved passwords and sends them to the attacker.
- Malicious extensions with cookie or page access read tokens directly.
- Adversary-in-the-middle phishing: a phishing page acts as a proxy between the user and the real sign-in page. The user enters password and MFA code, the real service issues a session cookie, and the proxy keeps a copy.
- Application weaknesses such as cross-site scripting or tokens stored in places where scripts can read them.
This is why session hijacking is so effective: multi-factor authentication protects the moment of sign-in, but a stolen session is already past that moment. It is also why stolen sessions complement classic credential stuffing: one attack guesses the door key, the other copies the key after the door is open. Our guide to account takeover detection covers the signals on the login side.
OAuth consent phishing
OAuth consent phishing does not steal a password at all. The user is asked to grant a third-party app access to their work account: "Allow this app to read your email and files." If the user clicks Allow, the app receives a token with exactly those permissions, often long-lived and independent of the user's password. Changing the password or enforcing MFA does not revoke it.
Warning signs include apps from unknown publishers, generic names that imitate well-known tools, and requests for broad scopes such as full mailbox access, all files or offline access. The glossary entry on OAuth app permissions explains how scopes work and what to look for.
Unapproved AI tools and copy/paste of sensitive data
AI assistants are just another browser tab, which makes them easy to adopt and hard to see. A developer pastes a stack trace with an API key, a sales rep pastes a customer list, an HR employee pastes a performance review. Nobody intends harm, but the data has left the company, possibly to a provider without a data processing agreement and with unclear rules on storage and training. This is the core of shadow AI.
AI browser extensions add a second layer: to help with "any page", they often request access to all websites, which brings us back to the extension risk above.
SaaS used only through the browser
A large part of shadow IT today needs no installation at all. Someone signs up for a file sharing, survey or diagram tool with their work email, uploads data and invites colleagues. Nothing is installed, so endpoint inventories miss it. If the sign-up uses a local password instead of SSO, the identity provider misses it too. The browser is often the only place where this usage is visible. Our guide to shadow IT discovery describes the data sources in detail.
Browser security controls that work
No single control covers all of these threats. The following layers complement each other.
1. Extension allow-lists via browser management
Chromium-based browsers such as Chrome and Edge, and Firefox, support enterprise policies that control which extensions may be installed. The most robust approach is deny by default, allow by exception: block all extensions, then allow a reviewed list. Policies can be distributed through your device management (MDM), group policy or the browser vendor's cloud management.
// Generic example of a Chromium ExtensionSettings policy (JSON).
// Check your browser vendor's policy documentation for exact names and options.
{
"*": {
"installation_mode": "blocked",
"blocked_install_message": "Request extensions via the IT portal."
},
"<approved-extension-id>": {
"installation_mode": "allowed"
},
"<required-extension-id>": {
"installation_mode": "force_installed",
"update_url": "https://clients2.google.com/service/update2/crx"
}
}
Practical tips:
- Start with an inventory: which extensions are installed today, on how many devices, with which permissions?
- Review each extension for publisher, purpose, permissions and site access. Prefer extensions that only run on the sites they need.
- Re-review when an extension changes owner or requests new permissions, and remove extensions nobody uses.
- Offer a fast request path. If approval takes weeks, people move to unmanaged browsers or personal profiles.
- Restrict or separate personal browser profiles on work devices, so work sessions do not mix with private extensions.
2. Session protection
- Shorter session lifetimes for sensitive applications, and re-authentication for critical actions such as changing payment details, exporting data or granting admin rights.
- Session binding: bind sessions to the device where possible. Chrome now supports Device Bound Session Credentials, which ties a session to a key stored on the device so that a copied cookie is not enough on its own; websites must support it. Some identity providers offer comparable token protection features in their conditional access settings.
- Secure cookie flags in your own applications:
HttpOnly,Secureand a suitableSameSitevalue, plus server-side session invalidation on logout and password change. - Revoke sessions on suspicion. When a device is infected or an account looks compromised, revoke all sessions and tokens in the identity provider and affected SaaS apps, not just the password.
- Endpoint hygiene against infostealers: patched browsers and operating systems, endpoint protection, no local admin rights for daily work.
3. MFA and phishing-resistant authentication
MFA remains essential, but not every factor is equal. One-time codes and push approvals can be relayed by an adversary-in-the-middle proxy. Phishing-resistant methods such as passkeys and FIDO2 security keys are bound to the real domain, so a lookalike site cannot use them. Combine them with conditional access that takes device state into account, and you close the most common path to stolen sessions.
4. OAuth app reviews
- Restrict which apps users can authorise on their own, for example only verified publishers and low-risk scopes; route everything else through admin consent.
- Review granted OAuth apps regularly: publisher, scopes, number of users, last use.
- Revoke grants for unknown or unused apps and for apps with broad scopes that no one can justify.
- Include OAuth grants in offboarding. Tokens issued to an app can outlive the employee's account changes.
5. Browser and identity telemetry
You cannot protect what you cannot see. Useful signals come from the browser management console (installed extensions, versions, policy compliance), the identity provider (sign-ins, OAuth grants, token use) and your own applications (session events). A generic pattern for detecting cookie replay in your own application logs:
-- Generic pseudo-SQL: one session used from several IPs or user agents within an hour
SELECT session_id, user_id,
COUNT(DISTINCT client_ip) AS ips,
COUNT(DISTINCT user_agent) AS agents
FROM auth_events
WHERE event_time > now() - INTERVAL '1' HOUR
GROUP BY session_id, user_id
HAVING COUNT(DISTINCT client_ip) > 2 OR COUNT(DISTINCT user_agent) > 1;
Mobile users and VPNs change IP addresses legitimately, so treat a hit as a lead, not a verdict. A change of user agent or a jump between countries within the same session is usually more telling.
6. User awareness that explains real patterns
Awareness works best when it is specific: show what a consent screen with broad scopes looks like, why an "AI helper" extension wants access to all websites, and why a sign-in page reached from a link deserves a second look. Make reporting easy and thank people for reports. Our guide to phishing protection for employees describes warnings that people actually read.
Overview: threats, controls and signals
| Threat | Main controls | Signals to watch |
|---|---|---|
| Malicious or hijacked extensions | Allow-list, permission review, separate profiles | New extensions, permission changes, owner changes |
| Session hijacking | Short and bound sessions, endpoint hygiene, session revocation | One session from several IPs or agents, impossible travel |
| Adversary-in-the-middle phishing | Phishing-resistant MFA, link and page checks | Sign-ins right after visits to lookalike domains |
| OAuth consent phishing | Admin consent, scope restrictions, regular reviews | New OAuth apps, broad scopes, unknown publishers |
| Data pasted into AI tools | Approved AI assistant, clear data rules, awareness | Use of unknown AI domains and AI extensions |
| Browser-only shadow IT | SSO for approved apps, fast request path, discovery | Sign-ups with work email, visits to unknown SaaS apps |
Checklist: browser security in your company
- All work browsers are managed by policy, including version and update settings.
- Extensions are blocked by default and allowed from a reviewed list.
- Extension permissions and owner changes are reviewed, unused extensions are removed.
- Personal browser profiles are restricted or separated from work profiles.
- Sensitive applications use short sessions and re-authentication for critical actions.
- Session binding is enabled where your browser, identity provider and applications support it.
- Phishing-resistant MFA (passkeys or FIDO2 keys) is required for admins and rolled out to everyone else.
- User consent to OAuth apps is restricted, and granted apps are reviewed regularly.
- Incident playbooks revoke sessions and tokens, not just passwords.
- Identity provider logs and application session events are collected centrally and searched for anomalies.
- An approved AI assistant exists, with clear rules on which data may be used.
- Awareness training covers consent screens, extensions and AI copy/paste, and reporting is easy.
How Obseria helps
Obseria does not replace your browser management or your identity provider. Extension allow-lists, session lifetimes and MFA policies stay where they are configured today. Obseria adds visibility and protection in a few specific places:
- Phishing protection in the browser: Obseria Guard, currently in beta, is a Chrome extension (also for Edge, Brave and other Chromium browsers) and a Mac app. It checks page visits, links and emails in Gmail and Outlook on the web for phishing signals such as lookalike domains, and depending on your policy blocks a dangerous page or shows it behind a warning. It warns when a password is entered on a suspicious page and reports findings to your Obseria organization, where admins confirm or dismiss them for every device. Guard can be rolled out via Chrome policy or MDM. It does not manage other extensions and does not protect session cookies.
- Browser-only SaaS and OAuth apps: Obseria Shadow IT reads sign-ins and OAuth grants from Google Workspace and Microsoft 365, read-only, and keeps unknown OAuth apps in the inventory. Obseria Guard is a further discovery source: visits to apps in the Obseria SaaS catalog are recorded with the work email of the device, without full URLs, page titles or content. See SaaS discovery for the details.
- Risk and reviews: SaaS risk assessment gives each app a score with the reasons shown, including granted OAuth permissions, and access reviews let owners confirm or remove access with evidence such as last use. Shadow IT is not a CASB and blocks nothing: revoking access creates a task for the app owner instead of changing anything at the vendor.
- Detection on identity logs: the Cloud SIEM runs detection rules over the logs you send, including identity provider sign-ins, for example sign-ins from a new country or at an unusual hour. Detection only, nothing is blocked.
To see how this looks with your own data, start a free trial or check the plans on the pricing page.
Frequently asked questions about browser security
Are browser extensions really a security risk?
Extensions with broad permissions can read and change everything a user sees in the browser, including webmail and SaaS admin consoles. Most are harmless, but a single malicious or hijacked one can expose data and sessions, which is why an allow-list is worth the effort.
Does MFA protect against session hijacking?
Only partly. MFA protects the sign-in. Once a session cookie or token has been issued, a copy of it can often be used without the second factor. Phishing-resistant MFA blocks proxy phishing, and session binding, short lifetimes and session revocation address stolen cookies.
What is the difference between session hijacking and credential stuffing?
Credential stuffing tries stolen username and password pairs to sign in. Session hijacking skips the sign-in entirely by reusing a session that already exists. Both lead to account takeover, but they leave different traces in your logs.
How do I detect OAuth consent phishing?
Review the third-party apps that users have authorised in your identity provider. Look for unknown publishers, names that imitate well-known tools, broad scopes and apps granted by only one or two people. Restricting user consent prevents many cases in the first place.
Should we block AI tools in the browser?
Blocking alone tends to move usage to personal devices. Offer an approved AI assistant with clear rules on which data may be used, block what is clearly risky, and explain why copying customer data or secrets into unknown tools is a problem.