Sub topic 14
Browser security: updates, extensions, certificates, and pop-ups
This chapter assumes you know how malware and social engineering work (earlier chapters), how patching fits into system upkeep, and basic networking terms such as HTTP, DNS, and IP address. It covers the browser settings that CompTIA A+ Core 2 expects you to apply and troubleshoot.
Why the browser is a major attack surface
A web browser runs code from servers you do not control. It parses HTML, runs JavaScript, loads plug-ins and extensions, stores passwords and cookies, and talks to the network. Attackers target it because one visit to a bad page can be enough to start an attack.
Browser problems usually fall into four groups, and each group has its own control:
| Problem | Typical symptom | Main control |
|---|---|---|
| Unpatched browser flaw | Drive-by download, silent malware install | Keep the browser updated |
| Malicious or excessive extension | Changed home page, injected ads, stolen data | Install only trusted extensions, review permissions |
| Invalid or untrusted certificate | Certificate warning page | Do not bypass; check date, name, and issuer |
| Pop-ups and redirects | Fake virus alerts, endless new windows | Pop-up blocker, safe browsing, scan for malware |
Keeping the browser updated
Browsers are patched often because they are exposed to the internet all day. A flaw that lets a web page run code on your computer is called a remote code execution flaw. A drive-by download is a malware install that happens just by visiting a page, with no click on a download link.
Good practice:
- Leave automatic updates on. Chrome, Edge, and Firefox update themselves by default.
- Restart the browser when it asks. Many updates apply only after a restart.
- Download browsers only from the vendor's site or a trusted store.
- Remove old browsers that are no longer used. An abandoned browser still receives no patches.
- In managed networks, administrators control updates with Group Policy or a management tool, test them first, then deploy.
Outdated plug-ins (add-on programs for things like video or PDFs) were once a leading infection path. Modern browsers have mostly removed them, which is one reason to avoid any site that tells you to install a "required player."
Extensions and add-ons
An extension is a small program that adds features to a browser. Extensions can read and change the pages you visit. A malicious one can steal passwords, insert ads, or redirect searches.
Review these before installing:
- Source. Use the official store only. Check the publisher, the number of users, and recent reviews.
- Permissions. An ad blocker may need to read pages. A "color picker" that wants access to all your data on all websites is suspicious.
- Need. Fewer extensions means a smaller attack surface. Remove what you do not use.
- Updates. Extensions update on their own. A trusted extension can be sold to a new owner and turned malicious, so recheck permissions when they change.
Signs of a bad extension include a changed home page or default search engine, new toolbars, ads on sites that normally have none, and slow browsing. Fix it by removing the extension in the browser's extensions page, resetting browser settings, and scanning for malware.
In business settings, an administrator can allow only approved extensions through policy. This applies least privilege to the browser.
Certificates and HTTPS
HTTPS is HTTP protected by TLS. It encrypts traffic between the browser and the site and proves the site's identity with a digital certificate. A certificate authority (CA) is a trusted organization that issues certificates. Your operating system and browser ship with a list of trusted CAs.
When you connect, the browser checks the certificate. The check passes only if all of these are true:
- The certificate was issued by a trusted CA, directly or through a chain.
- The date is within the valid period (not expired and not yet valid).
- The name on the certificate matches the site address.
- The certificate has not been revoked.
Common certificate errors
| Warning | Likely cause | What to do |
|---|---|---|
| Expired certificate | Site owner did not renew | Do not proceed on a login or payment page. Notify the owner. |
| Name mismatch | Wrong address, or a redirect to a different site | Check the address you typed. |
| Untrusted issuer or self-signed | Internal test server, or an attacker | Proceed only if you know it is an internal system you trust. |
| Warnings on every site | Wrong system date, or a man-in-the-middle device | Check the clock first. Then check for a proxy or malware. |
The wrong system clock is a classic exam answer. If every HTTPS site shows an expired or not-yet-valid error, fix the date and time before suspecting an attack.
A man-in-the-middle (on-path) attack places the attacker between you and the site. Unexpected certificate warnings on a public network may mean this is happening. Some companies do inspect HTTPS on purpose with a proxy. In that case the company installs its own root certificate on managed computers so no warning appears.
Pop-ups, redirects, and fake alerts
A pop-up is a new window or overlay opened by a page. Some are harmless, such as a login window. Others are ads or scams. A common scam is the fake security alert that claims your computer is infected and shows a phone number or a download button. This is scareware.
Controls and responses:
- Keep the browser's pop-up blocker on. Allow exceptions only for sites you trust that need them.
- Do not call numbers or click buttons in a browser alert. Real antivirus products do not report infections through a web page.
- If a page will not close, close the browser from Task Manager or reopen it without restoring the previous session.
- Block notification permissions from sites you do not know. Abused notification prompts can send scam alerts even when you are not on the site.
- Use the browser's safe browsing or SmartScreen feature to warn about known bad sites and downloads.
- If pop-ups appear on sites that normally have none, or they keep returning, suspect adware or a bad extension and begin the malware removal process.
Other settings worth knowing
- Password managers. Browser and standalone managers fill saved passwords only on the matching address, which helps defeat look-alike phishing pages. Protect the saved passwords with a strong main password or the OS account lock.
- Cookies and cache. Cookies track sessions. Clear them on shared computers. Clearing the cache and cookies also fixes some odd page behavior.
- Private browsing. It does not save history, cookies, or form data locally after the window closes. It does not hide activity from the network, the employer, or the site.
- Sync. Browser sync copies bookmarks and passwords between devices. Secure the account with multifactor authentication.
- Autofill. Turn off saved payment cards on shared or public computers.
- Location, camera, and microphone permissions. Review them per site and revoke those that are not needed.
- Secure downloads. Check file type and source. Be careful with unexpected executables, scripts, and macro-enabled documents.
Troubleshooting workflow
When a user reports browser trouble:
- Identify the symptom: redirects, pop-ups, certificate errors, or slowness.
- Check the date and time, and the browser version.
- Disable extensions, then re-enable them one at a time to find the bad one.
- Check proxy settings and the hosts file for unexpected entries.
- Clear cache and cookies, then reset the browser if needed.
- Run an antivirus scan and follow the malware removal process if you find malware.
- Document the cause and what you fixed, and educate the user.
You can use PowerShell to check one part of this, the proxy setting:
netsh winhttp show proxyDirect access means no system-wide WinHTTP proxy is set. A proxy you did not expect deserves a closer look.
Exercise
Every HTTPS site on one user's laptop shows "certificate not yet valid." The same sites work on a coworker's laptop. What is the most likely cause, and what is the first thing to check?
Show answer
The laptop's system date or time is wrong, so the certificate dates fail validation. Check and correct the date, time, and time zone first. If the error continues, then look for a proxy or malware that inserts its own certificate.
Exercise
A user says a web page displays "Your PC is infected! Call this number now" and will not close. List the correct response.
Show answer
Do not call the number or click anything in the alert. Close the browser with Task Manager, reopen it without restoring the session, and then scan for malware. If the alerts come back, check for bad extensions or adware and follow the malware removal process.