By J. Mesa
You search for a popular app, click the first result, and download what looks like the official installer. The result was a paid ad, and the file is malware. This trick is called malvertising, and it works because people trust the top of a search page.
How it works
Criminals pay for ads that appear above real results. They copy the brand name and design of a well-known tool such as a PDF reader, a video-call app, a password manager, or a free office suite. The link leads to a lookalike website. The download contains genuine software bundled with a hidden program, or just the malware.
Other versions place malicious ads on legitimate websites, redirect visitors to scam pages, or hide code in image ads. Our earlier post on common ransomware entry points lists malicious downloads among the doors attackers use.
What the malware does
- Steals saved passwords and browser sessions, which lets attackers skip your login.
- Installs a backdoor for later access.
- Records keystrokes or takes screenshots.
- Delivers ransomware or other payloads. See our ransomware guide.
Small businesses face the extra risk that one infected laptop may hold saved logins for the company bank and email accounts.
Warning signs
- The ad address does not match the official domain.
- The site asks you to disable security software to install.
- The download comes from a file-sharing link instead of the vendor’s own page.
- The installer has an odd name, an unusual file type, or an unexpected size.
- A pop-up claims your device is infected and tells you to download a fix. Those pages follow the same playbook as fake websites.
Safer ways to get software
- Go to the vendor’s site directly. Type the address or use a bookmark, and skip the ad.
- Use official app stores and your company’s approved software list.
- Skip the top sponsored result, and check that the domain matches the real company.
- Verify the file. Reputable vendors publish checksums or digital signatures, and the operating system shows a publisher name when you run a signed installer.
- Use a managed software catalog so staff install approved tools with a click.
- Block known-bad ads with a reputable ad blocker or a DNS filtering service. Some security teams recommend an ad blocker for exactly this reason.
- Keep protection running. Up-to-date endpoint security catches many fake installers.
Policies for the business
- Restrict who can install software. Staff should work in standard accounts, following least privilege.
- Keep an approved list, and give people an easy request process to reduce shadow IT.
- Include a line in your acceptable use policy that forbids installing software from unapproved sources.
- Teach staff that a search ad is an ad, and not a recommendation.
If someone installed a fake
- Disconnect the device from the network.
- Report it to IT right away.
- Change passwords for any accounts used on that device, from a clean one. Revoke active sessions.
- Run a full scan, and consider wiping and reinstalling the system if it was compromised.
- Check for new accounts, forwarding rules, and strange activity, as described in our post on how to tell if your email has been hacked.
- Treat it as an incident. Our guide to incidents versus breaches helps you decide what comes next.
What the fake pages look like
Malvertising pages succeed because they copy the design of the real vendor so closely that the difference is hard to see. Common features include:
- A near-perfect copy of the product’s home page, including logos and screenshots
- A download button that leads to a file hosted somewhere else
- A web address that adds a word or substitutes a character, such as an extra word before the brand name
- Search ads that show the genuine brand name and logo above the real result
- Pop-ups that claim you must update a font, a video player, or a browser to continue
The files themselves often arrive as installers with believable names. Some are signed with stolen or fraudulently obtained certificates, which means a signature alone does not guarantee safety. Pair the checks in this article with endpoint protection that can catch bad behavior after installation.
Where else malicious ads appear
Search results are one place. Others include:
- Social media sponsored posts promoting free tools or giveaways
- Banner ads on ordinary websites that redirect to fake update pages
- Ads inside free mobile games and utility apps
- Video platform ads that promote cracked software
- Sponsored results inside app stores
The common thread is paid placement. Anyone with a payment method and a convincing message can buy attention, and the review process for ads is imperfect.
A decision tree for installing software
When someone needs a new program, walk through these questions.
- Is it on the approved list? If yes, install it from the company catalog.
- If not, who makes it? Find the maker’s official site by typing the name you already know, or by following a link from a trusted source such as the company’s own documentation.
- Does the download page match the official domain? Compare the address carefully.
- Is the file signed by the right publisher? On Windows, the properties window of an installer lists the digital signature.
- Do reviews from reputable sources exist? If not, pause.
- Who will maintain it? Software that never updates becomes a patching problem.
If any answer is unclear, ask IT or the owner before you install.
Detection and cleanup tips for small teams
- Keep a list of installed software on each device, and compare it to the approved list every quarter.
- Watch for browsers with unfamiliar search engines or home pages.
- Use DNS filtering or a secure web gateway that blocks known malicious domains.
- Keep protection running, and do not let employees turn it off for an installer.
- If a fake program ran, assume stored passwords are exposed. Change them from a clean device, and treat the device as compromised until it is wiped or cleaned.
Education that sticks
Tell staff a concrete story. For example: an employee searched for a free PDF editor, clicked the top ad, and installed a program that stole the saved passwords from the browser. Within an hour the attacker had logged in to the company email. A story like that changes habits more than a policy sentence does.
The bottom line
Do not trust the first result. Download from the vendor’s real site, limit who can install software, and keep protection current. Thirty seconds of checking the address saves days of cleanup.
Related reading: Browser Extension Security: Which Add-Ons Are Safe to Install? and Keyloggers and Spyware: What They Are and How to Find and Remove Them, Antivirus vs. EDR: What Is the Difference, and Which Does Your Business Need?, How to Tell If Your Email Has Been Hacked, and What to Do About It.