Fix Chrome Search Engine Changed by Malware
In this article
If your Chrome homepage or search engine suddenly redirects to an unfamiliar site, or searches go through a different provider without your consent, malware or a potentially unwanted program (PUP) has likely changed your browser settings. This guide will help you remove the unwanted changes, restore your preferred search engine, and prevent it from happening again. You'll need your Chrome browser and a few minutes; no special tools are required.
What You'll Need
- Access to Chrome (on Windows, Mac, or Linux)
- Your preferred search engine URL (e.g., google.com, bing.com, duckduckgo.com)
- Admin rights on your computer (to remove malicious programs if needed)
Step-by-Step
- Close all Chrome windows and reopen it. Sometimes a simple restart clears temporary changes, but if the issue persists, continue.
- Check for unwanted extensions. Click the three-dot menu (⋮) in the top-right corner, go to More tools > Extensions. Look for any extensions you don't recognize or didn't install. If you see one, click Remove to uninstall it. Also disable any extensions that seem suspicious, even if you think you installed them, by toggling them off.
- Reset Chrome's search engine settings. Go to Settings (via the three-dot menu) > Search engine > Manage search engines. Find the search engine you want (e.g., Google) and click the three-dot icon next to it, then select Make default. If your desired search engine isn't listed, scroll down to Add and enter its name, keyword, and URL (e.g., for Google:
google.com,google.com/search?q=%s). Then set it as default. - Reset Chrome's homepage and startup pages. In Settings, go to On startup. Choose Open a specific page or set of pages and ensure it's set to your preferred site (e.g., google.com). If there are unwanted pages, click the three-dot icon and Remove. Also check Appearance > Show Home button and set the homepage URL if you use it.
- Clear your browsing data. Go to Settings > Privacy and security > Clear browsing data. Choose All time as the time range, check Browsing history, Cookies and other site data, and Cached images and files, then click Clear data. This removes any malicious scripts or redirects stored in your profile.
- Check Chrome's shortcuts and desktop icons. Malware often modifies the Chrome shortcut to add a malicious URL after the executable path. Right-click your Chrome shortcut (on desktop, taskbar, or Start menu) and select Properties. In the Target field, ensure it ends with
chrome.exe(orchromeon Mac/Linux) and nothing else. If there's a URL after it, remove it and click Apply. - Run a malware scan on your computer. Use your built-in antivirus (e.g., Windows Security on Windows, or XProtect on macOS) or a trusted third-party scanner. Perform a full system scan and remove any detected threats. This is crucial because the malware might re-change settings after you fix them.
- Reset Chrome settings completely (if needed). If the problem persists, go to Settings > Reset and clean up > Restore settings to their original defaults. This will disable all extensions, reset the search engine, homepage, and startup pages, and clear temporary data. It does not delete your bookmarks or saved passwords.
Common Mistakes
- Only resetting the search engine without removing the malware. If you don't remove the underlying infection, the settings will revert quickly.
- Ignoring the shortcut target. A malicious URL appended to the Chrome shortcut can override your settings every time you launch Chrome.
- Not clearing browsing data. Malicious cookies or cached scripts can cause redirects even after you change settings.
- Disabling extensions but not removing them. Disabled extensions can be re-enabled by malware; always remove unknown extensions.
Tips
- Use a reputable ad blocker. Many malware infections come from malicious ads, so an ad blocker can reduce the risk.
- Keep Chrome and your operating system updated. Updates patch security vulnerabilities that malware exploits.
- Be cautious when installing free software. Many PUPs are bundled with legitimate downloads. Always choose “Custom” installation and uncheck any extra offers.
- After fixing, change your Chrome sync password. If your browser was compromised, your Google account might be at risk. Update your password and review recent sign-in activity.
Troubleshooting
If the issue persists after following all steps, try the following:
- Check for malicious policies. On Windows, press
Win + R, typeregedit, and navigate toHKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome. If there are entries likeDefaultSearchProviderorHomepageLocation, delete them. On Mac, check/Library/Managed Preferencesfor similar files. This is advanced; be careful with the registry. - Use Chrome’s Cleanup tool. Go to Settings > Reset and clean up > Clean up computer and click Find. Chrome will scan for harmful software and remove it.
- Create a new Chrome profile. If the problem is tied to your profile, create a new one (click your avatar > Add). If the new profile works, you can migrate your bookmarks and passwords manually.
- Reinstall Chrome. Uninstall Chrome (ensure “Also delete your browsing data” is checked), then download a fresh copy from google.com/chrome. This is a last resort but often resolves stubborn infections.
Frequently Asked Questions
Why did my search engine change without me doing anything?
Malware or a potentially unwanted program (PUP) often installs silently alongside free software. It modifies Chrome's settings to redirect traffic to sponsored search engines, generating revenue for the attacker.
Will resetting Chrome delete my bookmarks and passwords?
No, resetting Chrome to default settings does not delete bookmarks, passwords, or autofill data. It only disables extensions and clears temporary data like cookies and cache.
How do I know if an extension is malicious?
Look for extensions you don't remember installing, or ones that have access to “Read and change all your data on all websites” without a clear need. If you're unsure, remove it—you can always reinstall it later.
Can this happen on my phone?
Yes, but less commonly. On Android, check for suspicious apps and clear Chrome's data in your phone's settings. On iOS, it's rare, but you can reset Safari or Chrome settings.
Do I need to buy antivirus software to fix this?
No, built-in tools like Windows Security or macOS's XProtect are usually sufficient. You can also use free versions of trusted scanners, but avoid installing multiple security tools at once.
What if the search engine changes back after a few days?
That indicates the malware is still present. Repeat the steps, especially the malware scan and shortcut check. If it persists, consider using a dedicated removal tool like Malwarebytes (free version) and then reinstall Chrome.