Spot unexpected URLs: Firefox Containers for visual signals
I found a phishing attempt, using search engine results, for Bitwarden credentials.
Update, 2023.02.22: seems a recurring, if not regular, occurrence for Bitwarden users 🧐
Now, avoid using search engines for regular logins-save your regular URLs. But I visit lots of URLs, and it's tough to be vigilant all the time (sorry, Mad-Eye). So I made being careful easier for myself, by using Firefox Containers to help me spot unexpected URLs.
Firefox Multi-Account Containers (install or source code) is not only useful as a tool for privacy, the browser extension can do double-duty defending against phishing. The method outlined here can work against typosquatting (typing googel.com
instead of google.com
, woops). And theoretically against homoglyph attacks (where a URL looks visually similar to one that you recognize, but is actually different)-though this has not been rigorously tested.
The defence is simple to set up. Here's how.
How it works
Three features, combined, allow Firefox Multi-Account Containers to signal you if you might be on the wrong URL:
A. Containers can be assigned colours of your choice. When a tab is opened in a Container, the top edge of the tab is coloured using what you assigned.
B. Specific URLs can be made to always automatically open in a Container of your choice.
C. A Container can be limited to only allowing those whitelisted URLs to be opened within it.
Setup
- Open the known legitimate URL in Firefox. For example,
https://vault.bitwarden.com
- Whitelist that URL, by making it always open in a Container of your choice (How it works, B),
- Limit the chosen Container to only contain whitelisted URLs (How it works, C),
- Choose an expected colour for the tabs when that specific Container is opened (How it works, A). Green is common language for okay :)
Usage
The system you've just set up will signal you if you land somewhere unexpected, instead of a page you've whitelisted. This behavioural defense method is best used for high-value URLs worth taking the time to whitelist, where you make repeat visits.
When a tab's colour matches the colour assigned to the Container for safe, whitelisted URLs, you can be confident the URL opened matches the known good URL.
Also, thanks to feature C described earlier, if you visit a good URL that is initially recognized by Firefox Containers as whitelisted, but which then redirects to a different domain, Containers will "kick out" the tab, removing the colour and signaling to you that something has changed.
Limitations
- Containers need separate whitelisting for sub-domains. For example, you'll need to whitelist
mail.google.com
(Gmail) andmeet.google.com
individually. Whitelisting the root domaingoogle.com
won't catch them all ;-) - Because whitelisting needs you to specifically choose URLs, this method won't help with general browsing. For that, your browser relies on the Safe Browsing project and other safety features. To get the latest safety features, quit your browser often. Nonetheless, Safe Browsing doesn't always know of the newest dodgy URLs, so the method outlined here could help you spot unexpected URLs before they get flagged by Safe Browsing.
🐭