How websites secretly detect your browser extensions

Sites can silently uncover which browser extensions you have installed, and it happens faster than you think. Password managers, ad blockers, crypto wallets, employer tools—loaded pages can probe for them before you click anything, using features that were never meant to be privacy-invasive. The mechanisms aren’t bugs; they’re side effects of legitimate extension APIs and design choices that leave doors open to any website.
The three most common detection methods
Technique one is the most direct: a page sends a message to an extension that explicitly allows external connections. Extensions like customer-support helpers or bug-report tools often open this channel by listing allowed domains in their manifest under externally_connectable. But if the author uses a wildcard—"matches": ["<all_urls>"]—the door swings wide open. Any site can now ping the extension and confirm whether it’s installed, turning a convenience feature into a privacy leak.
Technique two exploits a quirk in how extensions serve their assets. Icons, images, and stylesheets marked as web-accessible live at predictable URLs like chrome-extension://<id>/icon-128.png. A page can simply try loading these files; if the image loads, the extension is installed. No permission needed, no cooperation from the extension author—just a loop of guesses using public extension IDs from the store. Security researchers have demonstrated this at scale years ago, yet it remains effective today.
Technique three targets extensions that neither talk to pages nor expose assets. If an extension modifies the page—hiding ads, injecting scripts, or altering styles—those changes become detectable bait. A page can plant a disguised ad banner or a styled element, then check if it disappears. If it does, the responsible extension is likely present. This method catches even privacy-focused tools that avoid broadcasting their presence.
Why it matters
This isn’t theoretical surveillance. Advertisers, analytics firms, and even malicious actors can compile lists of your installed tools to profile you, target ads based on your privacy habits, or exploit extension-specific vulnerabilities. The real issue isn’t the techniques themselves, but the lack of awareness among extension authors who unknowingly expose their users. Fixing it requires careful manifest restrictions and asset policies—steps many have yet to take. Until then, your browser’s privacy remains a leaky abstraction, quietly leaking more than you realize.
Source: DEV Community. AI-assisted editorial synthesis — TechnoExpress.

