Short answer: when your search engine keeps switching to Yahoo on its own, a browser hijacker is almost always responsible: a malicious or unwanted extension, a program installed on your computer, a forced browser policy or a configuration profile on Mac. Remove suspicious extensions, set your search engine back, check for policies (chrome://policy, edge://policy, about:policies) and profiles, uninstall unwanted programs, reset the browser and run a malware scan. If you use browser sync, clean all synced devices.
Yahoo itself is a legitimate search engine, and some browsers or regions offer it as an option. The problem is the forced change: hijackers often route searches through their own servers to “search.yahoo.com” or similar, earning referral revenue from search ads. You may notice brief redirects through unfamiliar domains before results load, or a Yahoo results page with odd parameters in the URL.

Step 1: Check extensions
Open your browser’s extensions page: chrome://extensions, edge://extensions, Firefox Add-ons and themes, or Safari > Settings > Extensions. Remove anything you did not install on purpose, especially extensions offering search, PDF tools, file conversion, maps, weather, coupons or streaming. If the search setting shows “controlled by an extension”, that extension is the culprit.
Step 2: Set your search engine again
In Chrome, go to chrome://settings/searchEngines; in Edge, Settings > Privacy, search, and services > Address bar and search; in Firefox, Settings > Search; in Safari, Settings > Search. Choose your preferred engine and delete unfamiliar engines from the list. If it changes back after restarting the browser, continue with the next steps.
Step 3: Look for policies or profiles
Hijackers increasingly use enterprise policies so you cannot change settings back. Check chrome://policy, edge://policy or Firefox’s about:policies. On a personal computer, policies like a forced default search provider indicate unwanted software. On Windows, back up the registry and remove unwanted keys under HKEY_LOCAL_MACHINE\SOFTWARE\Policies for Google\Chrome, Microsoft\Edge or Mozilla\Firefox. On Mac, check System Settings > Privacy & Security > Profiles (or General > Device Management) and remove unknown profiles. On work devices, consult IT before changing policies. See Chrome managed by your organization.
Step 4: Uninstall unwanted programs
On Windows, open Settings > Apps > Installed apps, sort by install date and uninstall programs you do not recognise, particularly those installed around when the change started. On Mac, check Applications, Login Items and the LaunchAgents folders. Bundled installers from free software sites are the most common source.
Step 5: Reset the browser
Use the browser’s reset option: Chrome Settings > Reset settings; Edge Settings > Reset settings; Firefox Help > More troubleshooting information > Refresh Firefox; Safari users can clear website data and remove extensions manually. Resets keep bookmarks and saved passwords.

Step 6: Scan for malware
On Windows, run a full Microsoft Defender scan with potentially unwanted app blocking turned on (Windows Security > App & browser control > Reputation-based protection), and an offline scan if needed. On Mac, keep macOS updated so XProtect can remove known adware, and consider a reputable second-opinion scanner.
Step 7: Check browser shortcuts and sync
On Windows, right-click the browser shortcut, choose Properties, and remove any website address added after the program path in the Target field. If you use Chrome, Edge or Firefox sync, check extensions on all your devices; otherwise the hijacker may sync back.
Preventing it
Choose custom installation when installing free software and untick bundled offers, install extensions only from official stores after checking reviews and permissions, avoid fake “update” prompts, and keep potentially unwanted app protection enabled.
Frequently asked questions
Is Yahoo search a virus?
No. Yahoo is a legitimate search engine; the forced change is caused by unwanted software.
Why does it happen only on Mac Safari or Chrome?
Mac hijackers often use configuration profiles or launch agents. Check those locations.
Will resetting my browser fix it permanently?
Only if you also remove the program, policy or extension responsible.
Can it steal my data?
Hijackers mainly collect search and browsing data and show ads, but they can lead to malicious sites.
Related: remove the search redirect virus from Chrome, remove a browser hijacker from Firefox.



