Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Malvertising: How Search Ads Spread Password Stealers

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Cyber criminals buy ads on search engines to make malicious sites appear at the top of results. When you click, the site tries to trick you into downloading a file that steals saved passwords, cookies, and other credentials. This guide explains the exact steps attackers use, so you can recognize and avoid these traps.

What You'll Need

  • A computer or phone with a web browser (the steps apply to both, but note differences below)
  • Basic familiarity with search engines (Google, Bing, DuckDuckGo)
  • No special tools or software required

Step-by-Step

  1. Create a malicious website. The attacker builds a site that looks like a legitimate software download page, login portal, or document sharing service. They often clone a real site's design to make it convincing.
  2. Buy search ads that target specific keywords. Using an ad platform (like Google Ads or Bing Ads), they bid on keywords people commonly search, such as "free PDF converter," "download Zoom," or "bank login." The ad appears as a sponsored result at the top of the search page.
  3. Craft a compelling ad copy. The ad text usually says something like "Official Download" or "Secure Login" and uses the real brand name. It may include a fake URL that looks similar to the real one (e.g., "g00gle.com" or "micros0ft.com").
  4. Set up a redirect chain. When you click the ad, the attacker's tracking URL may redirect you through several intermediate pages before landing on the malicious site. This is done to hide the final URL from ad reviewers and to make tracing harder.
  5. Deliver the malware via a fake download or login. The malicious page might show a button that says "Download Now" or a login form. If you click download, you get a file (often a .zip, .exe, or .msi) that actually contains the password-stealing malware. If you enter your credentials, they are sent to the attacker's server.
  6. Use a legitimate-looking installer. The downloaded file may be a trojanized installer of a real program (e.g., a cracked version of a paid app) or a standalone executable. When you run it, it installs the malware silently along with a fake installation wizard.
  7. Steal credentials and send them to a command-and-control server. The malware runs in the background, extracting saved passwords from browsers, cookies, autofill data, and sometimes even from password managers. It then sends this data over the internet to the attacker.
  8. Profit from the stolen data. The attacker may sell the credentials on dark web markets, use them to access your accounts, or attempt to drain your bank accounts.

Common Mistakes

  • Clicking ads without checking the URL. Always hover over the ad link to see the actual domain before clicking. If it's not the official site, don't click.
  • Assuming sponsored results are safe. Search engines do not verify every ad for safety; they only check that it doesn't violate their policies, and malicious ads often slip through.
  • Downloading software from third-party sites. Even if the ad looks legitimate, always go directly to the official website by typing the address or using a bookmark.
  • Ignoring browser warnings. If your browser shows a warning about the site being deceptive or unsafe, take it seriously and leave.
  • Entering credentials on a page that doesn't have a padlock icon. While HTTPS isn't a guarantee of safety, a lack of it is a red flag.

Tips

  • Use an ad blocker. Ad blockers can hide sponsored results, reducing your exposure to malicious ads.
  • Bookmark important sites. For banking, email, and software downloads, always use your own bookmarks or type the URL manually.
  • Keep your browser and operating system updated. Security patches help protect against exploits that malware might use.
  • Use a password manager. Password managers can help you avoid typing passwords on fake sites, and they often warn you if a URL doesn't match the saved entry.
  • Enable two-factor authentication (2FA). Even if your password is stolen, 2FA can block unauthorized access.
  • Check the ad's display URL carefully. Look for misspellings, extra characters, or unusual top-level domains (like .xyz or .top).

Troubleshooting

If you suspect you've clicked a malicious ad and may have downloaded or entered credentials:

  1. Disconnect from the internet. This can stop the malware from sending your data.
  2. Run a full antivirus scan. Use your installed security software or a reputable on-demand scanner like Malwarebytes.
  3. Change your passwords. Do this from a different, trusted device. Change passwords for all accounts you may have used on the malicious site.
  4. Enable 2FA on important accounts. This adds an extra layer of protection.
  5. Check for unauthorized activity. Look at recent logins, transactions, or changes to your accounts.
  6. If you entered financial details, contact your bank. They can monitor for fraud and help secure your accounts.
  7. Consider a clean reinstall of your operating system. If the malware is persistent and you can't remove it, reinstalling Windows or macOS from scratch is the safest option. Back up important files first, but be aware that some malware can hide in backups.

Frequently Asked Questions

How do cyber criminals get ads approved on search engines?

They use legitimate-looking landing pages that pass initial review, then redirect to the malicious site after approval. They also use new accounts and payment methods to avoid being banned.

Can I get malware just by clicking an ad, without downloading anything?

In most cases, no. Simply clicking an ad usually just takes you to a website. However, the site could exploit a browser vulnerability (a "drive-by download"), so it's still risky. Keep your browser updated to reduce this risk.

What kind of passwords do these stealers target?

They typically target passwords saved in browsers (Chrome, Edge, Firefox), cookies, and autofill data. Some also target password manager databases, but that's less common.

Are search ads on Google and Bing equally dangerous?

Both platforms have been used for malvertising. Google has more users, so it's a bigger target, but Bing ads have also been abused. The risk is similar across platforms.

How can I tell if I've already been infected?

Signs include unexpected pop-ups, slow performance, new toolbars or extensions, and unusual network activity. But many stealers are silent, so regular scans with reputable antivirus software are important.

Is it safe to use a search engine if I have an ad blocker?

Ad blockers reduce the risk significantly, but they aren't perfect. Some malicious ads can bypass blockers, so always remain cautious.