Browser Extensions

From enterprise
Jump to: navigation, search
Browser Extensions
Technique
ID T1176
Tactic Persistence
Platform Linux, Windows, macOS
Permissions Required User
Data Sources Network protocol analysis, Packet capture, System calls, Process use of network, Process monitoring, Browser extensions
Contributors Justin Warner, ICEBRG

Browser extensions or plugins are small programs that can add functionality and customize aspects of internet browsers. They can be installed directly or through a browser's app store. Extensions generally have access and permissions to everything that the browser can access.12

Malicious extensions can be installed into a browser through malicious app store downloads masquerading as legitimate extensions, through social engineering, or by an adversary that has already compromised a system. Security can be limited on browser app stores so may not be difficult for malicious extensions to defeat automated scanners and be uploaded.3 Once the extension is installed, it can browse to websites in the background,45 steal all information that a user enters into a browser, to include credentials,67 and be used as an installer for a RAT for persistence. There have been instances of botnets using a persistent backdoor through malicious Chrome extensions.8 There have also been similar examples of extensions being used for command & control 9.

Mitigation

Only install browser extensions from trusted sources that can be verified. Ensure extensions that are installed are the intended ones as many malicious extensions will masquerade as legitimate ones.

Browser extensions for some browsers can be controlled through Group Policy. Set a browser extension white or black list as appropriate for your security policy.10

Change settings to prevent the browser from installing extensions without sufficient permissions.

Close out all browser sessions when finished using them.

Detection

Inventory and monitor browser extension installations that deviate from normal, expected, and benign extensions. Process and network monitoring can be used to detect browsers communicating with a C2 server. However, this may prove to be a difficult way of initially detecting a malicious extension depending on the nature and volume of the traffic it generates.

Monitor for any new items written to the Registry or PE files written to disk. That may correlate with browser extension installation.