Sub topic 11
Browser symptoms: pop-ups, redirects and certificate warnings
This chapter assumes you know basic Windows usage, including Task Manager, Settings and Safe Mode. It also assumes you know common malware types (trojans, spyware, ransomware) and basic networking terms such as IP address and DNS. The chapter covers what the browser tells you about a compromised PC and how to narrow down the cause. It also covers how to choose the next step on the exam.
Why the browser is a symptom source
The browser is where most users meet malware. Many infections arrive through it, as a malicious download, a bad extension or a fake update prompt. Many others show up in it, because adware, spyware and hijackers change what the browser displays. On the 220-1102 exam, a browser symptom usually points to one of four causes:
- An unwanted or malicious extension, or a changed browser setting.
- A modified network setting, such as a proxy, DNS server or hosts file entry.
- A malicious or deceptive web page, such as a scam pop-up.
- A real certificate problem that is not malware at all, such as a wrong system clock.
Your job is to tell these apart before you act. That is step 1 of the troubleshooting methodology: identify the problem, gather information and question the user.
Pop-ups
A pop-up is a window or overlay that opens without the user asking for it. Not every pop-up means infection. Websites can show ads, and a browser's pop-up blocker handles most of them. The pattern matters more than the single event.
| Pattern | Likely cause |
|---|---|
| Pop-ups only on one website | That site's ads or scripts. Not necessarily a PC infection. |
| Pop-ups on every site, including a blank tab | Adware, a malicious extension or a hijacked browser |
| Pop-ups when the browser is closed | Adware or other malware running outside the browser |
| Fake "Your PC is infected" warnings | Rogue antivirus (scareware) |
| "Allow notifications" prompts, then ads in the system tray | A notification permission granted to a spam site |
Fake security warnings
A fake security warning claims the PC is infected and tells the user to call a number, install a "cleaner" or pay for a fix. It is social engineering. The page is trying to scare the user into acting. Real anti-malware does not appear as a browser tab with a countdown timer or a phone number.
Do not click anything in the window, including the X button, because some of these windows treat any click as consent. Close the browser from Task Manager instead (End task), or restart the PC if the page blocks that. Then check the installed programs list and the browser extensions for anything the user does not recognize, and run a scan.
Notification abuse
Modern browsers let a website send notifications once the user clicks Allow. Spam sites trick users into clicking it. The result looks like adware but lives only in the site permissions list. The fix is to open the browser's site settings, review the notification permissions and remove the unwanted sites. This costs the user no data and is less drastic than a full reset.
Redirects
A redirect sends the browser to a page other than the one requested. Some redirects are normal (http to https, or a company moving its site). Malicious redirects have these common signs:
- The home page or default search engine changed without the user doing it.
- Search results look unfamiliar, or clicking a result lands on an unrelated or ad-filled page.
- A link to a known site, such as a bank, opens a look-alike page.
- A new toolbar or extension appeared.
Where redirects come from
Check these places in order, from least to most invasive to fix:
- Browser settings. The home page, startup pages and default search engine. Hijackers rewrite these.
- Extensions. Disable all of them, then re-enable one at a time. A malicious extension can rewrite pages, inject ads and redirect searches.
- Proxy settings. A malicious proxy sits between the browser and the internet and can send traffic anywhere. Check the proxy settings in Windows and in the browser. A proxy the user never configured is a red flag.
- DNS settings. If the PC or router uses a rogue DNS server, a correct hostname resolves to the wrong IP address. The address bar shows the right name but the wrong site loads.
- The hosts file. This text file maps hostnames to IP addresses and is checked before DNS. Malware adds entries that point a real site to an attacker's address. It can also point antivirus update sites to 127.0.0.1 so that updates fail.
Checking the hosts file and proxy
The hosts file lives at %SystemRoot%\System32\drivers\etc\hosts. A clean file contains mostly comment lines that start with #. Any active line (no #) that maps a well-known site to an unfamiliar address deserves attention.
type %SystemRoot%\System32\drivers\etc\hostsThe proxy that Windows system services use can be checked with:
netsh winhttp show proxyThe expected output on a normal PC is Direct access (no proxy server). The per-user proxy used by most browsers is stored in the registry. You can read it from a command prompt:
reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServerIf the value does not exist, the command reports an error. That is normal and means no proxy is set. To see which DNS servers the PC is using, run ipconfig /all and read the DNS Servers line. Then compare the result with what the network is supposed to hand out.
ipconfig /allYou can test a name against the configured resolver with nslookup. If a bank's name resolves to an address in the hosts file but not through DNS, the hosts file is the cause.
nslookup example.comCertificate warnings
A browser uses HTTPS to encrypt traffic and to confirm that the site is the one it claims to be. The site proves its identity with a digital certificate, which a trusted certificate authority (CA) has signed. When the browser cannot verify the certificate, it shows a full-page warning such as "Your connection is not private."
Not every warning means an attack. Work from the benign causes to the serious ones:
| Cause | What it looks like | What to do |
|---|---|---|
| Wrong date or time on the PC | Many sites show errors at once, sometimes "certificate not yet valid" or "expired" | Fix the clock and sync time. Reload. |
| Expired certificate on the server | One site only, "expired" error | Tell the site owner. Do not bypass for sensitive sites. |
| Name mismatch | The certificate was issued for a different hostname | Check the address. Could be a typo, a misconfigured server or a redirect. |
| Self-signed or unknown CA | Common on internal test servers and lab devices | Acceptable only if you know the device and trust it. |
| Intercepted connection (man-in-the-middle) | Warnings on many HTTPS sites, especially on public Wi-Fi or after a hijack | Do not proceed. Disconnect, check proxy, DNS and installed root certificates. |
The clock check comes first
Certificates have validity dates. If the system clock is years off, almost every HTTPS site looks expired or not yet valid. This is a common exam trap. When the symptom is "all HTTPS sites show certificate errors" and the user has just replaced the CMOS battery or reset the PC, the answer is to correct the date and time, not to scan for malware.
When the warning is real
Several malicious scenarios produce certificate warnings:
- A rogue proxy or rogue DNS sends the user to a copy of a real site. The copy cannot present a valid certificate for the real name.
- A man-in-the-middle device on the network replaces certificates with its own.
- Malware installs its own root certificate into the trusted store so that it can intercept traffic without warnings. In this case the warnings go away, which is why you should also review the certificate store if hijack signs are present and the user reports no warnings.
Users should not click through a warning on a banking, email or work site. Bypassing it hands the connection to whoever intercepted it.
Putting the symptoms together
PC-level symptoms, such as slow performance, disabled antivirus and unknown processes, often appear next to browser symptoms. The commands from the previous chapters help here. netstat -ano lists connections with the owning process ID, which you can match to a process in Task Manager.
netstat -anoIf the browser is closed and an unknown process still holds a connection to a remote address, that process is a lead. If system files may have been altered, run sfc /scannow from an elevated prompt.
sfc /scannowFixing the problem
Match the fix to the evidence, and use the least destructive step that works.
- Document first. Note the symptoms, the date and any recent installs. This supports the later steps and the final documentation.
- Fix the clock if certificate errors are widespread.
- Remove unwanted permissions, extensions and programs. Then clear the cache and cookies.
- Correct network settings. Remove a rogue proxy, restore automatic DNS and clean the hosts file.
- Reset the browser to defaults if settings keep reverting. This removes extensions and custom settings but keeps bookmarks in most browsers, so it costs less than a reinstall.
- Treat repeated or system-wide symptoms as malware. Follow the seven-step removal process: identify and research symptoms, quarantine the system, disable System Restore, remediate, schedule scans and updates, enable System Restore and create a restore point, then educate the user. Do not skip quarantine just because the fix looks easy.
Common mistakes
- Treating one pop-up on one website as proof of infection.
- Clicking the X on a scareware window instead of ending the browser from Task Manager.
- Blaming malware for certificate errors when the system date is wrong.
- Resetting the browser and ignoring the proxy, DNS and hosts file, so the redirect returns.
- Telling the user to bypass a certificate warning on a sensitive site.
Exercise
A user says every HTTPS site shows "Your connection is not private" since the laptop's battery was fully drained. Antivirus shows no detections. What should you check first, and why?
Show answer
Check the system date, time and time zone. A drained battery can reset the clock, and certificates are validated against the current date, so almost all HTTPS sites look expired or not yet valid. Correct and sync the clock, then retest before looking for malware.
Exercise
A user's search engine changed, searches land on unfamiliar pages, and the hosts file contains an active line that maps a banking site to an unknown IP address. Name the browser and system places to check, and the process to follow if you confirm malware.
Show answer
Check the browser's home page, startup pages, default search engine and extensions. Then check the proxy settings, DNS servers and the hosts file, and remove the malicious hosts entry. If malware is confirmed, follow the seven-step removal process: identify symptoms, quarantine the system, disable System Restore, remediate, schedule scans and updates, re-enable System Restore with a new restore point, and educate the user.
Exercise
A fake "Your PC is infected, call this number" page fills the screen and will not close. What is the safest first action?
Show answer
Do not click anything on the page. End the browser from Task Manager, or restart the PC if needed. Then review extensions and installed programs, and scan with anti-malware.