Browser extensions are among the most commonly installed software on personal computers and corporate devices. As of 2025, the Chrome Web Store hosts over 130,000 extensions with cumulative installation counts in the billions (Google, 2025). Extensions provide legitimate and valued functionality (ad blocking, password management, productivity tooling, accessibility aids) but the same technical capabilities that enable this functionality also make extensions a high-value target for malicious actors and a significant source of privacy risk for ordinary users.
The security incident history of browser extensions is substantial. In 2023-2025, multiple campaigns of malicious extensions were discovered that had collectively accumulated tens of millions of installs before detection (Kaspersky Lab, 2024; DataDome, 2025). These extensions engaged in credential theft, session hijacking, ad injection, search result manipulation, and covert data exfiltration to attacker-controlled servers. In several cases, the period between first install and detection stretched to years.
The root cause is an information asymmetry: extension developers have full visibility into their extension's behavior, while users and marketplace operators have access only to static metadata (the manifest file, store description, and permission declarations) and post-hoc signals (user reviews and abuse reports). The Chrome Web Store's automated review process has improved significantly since the introduction of the Enhanced Safe Browsing integration and the Manifest V3 transition, but it remains reactive rather than proactive. It can detect known-malicious extensions and clear policy violations, but cannot assess novel behavioral risk in extensions that appear benign.
This paper proposes a framework that closes the information gap through automated static and behavioral analysis, producing a quantitative risk grade that users can interpret and act upon without requiring security expertise.
A Chrome extension (Manifest V3) consists of: a manifest.json declaring identity, permissions, and host_permissions; one or more content scripts injected into web pages matching declared URL patterns; a background service worker executing in an isolated context; optional popup and options pages; and static resources. The attack surface relevant to security analysis spans three layers:
Permission layer: Permissions declared in the manifest grant access to browser APIs. High-risk permissions include tabs (access to URL and title of all tabs), webRequest (intercept network requests), storage (persist data across sessions), scripting (execute arbitrary code), cookies (read and write cookies for all sites), and browsingData (read and delete browser history, cache, and credentials). Host permissions (the <all_urls> pattern, or specific high-value domains like *.google.com) further expand the surface by enabling content script injection and cross-origin requests.
Code layer: Content scripts and background workers contain the actual behavioral logic. Risk indicators at this layer include: use of eval() or new Function() (dynamic code execution); XMLHttpRequest or fetch() to third-party domains (potential exfiltration channel); chrome.tabs.captureVisibleTab() (screenshot capture); access to document.cookie or localStorage of injected pages; and dynamic script injection patterns that evade static analysis.
Network layer: The set of external domains the extension communicates with determines the data exposure surface. Extensions communicating with known-malicious infrastructure, anonymizing proxies, or services with opaque ownership represent elevated risk regardless of their declared permissions.
The Manifest V3 transition, completed for new extensions in 2024, addressed several historical attack vectors: background pages executing arbitrary remote code (replaced by service workers with more constrained execution), blocking webRequest API access (replaced by declarativeNetRequest), and remotely hosted code (prohibited; all extension logic must be bundled). These changes meaningfully reduced the attack surface but did not eliminate it. Content scripts retain broad page access capabilities, host_permissions still enable unrestricted data collection from matched sites, and the storage API provides a persistent exfiltration channel even in MV3 extensions.
The assessment framework extracts features from three sources: the manifest.json, the bundled JavaScript source (after standard deobfuscation), and Chrome Web Store metadata. We extract 47 features organized into five categories:
| Category | Feature Count | Examples |
|---|---|---|
| Permission risk | 12 | has_all_urls, has_cookies, has_scripting, permission_count, host_pattern_specificity |
| Code patterns | 15 | eval_usage, dynamic_script_inject, fetch_third_party_count, dom_mutation_observer, keydown_listener |
| Network exposure | 8 | unique_external_domains, has_known_malicious_domain, uses_cdn_only, exfil_pattern_score |
| Store signals | 7 | install_count, review_rating, developer_verified, days_since_last_update, review_count_ratio |
| Manifest structure | 5 | has_content_security_policy, uses_web_accessible_resources, background_persistent |
Features are combined into a scalar risk score S ∈ [0, 100] via a weighted linear model whose weights were learned by logistic regression on the labeled training dataset (described in Section 4.1). The scoring model is intentionally interpretable rather than maximally accurate: each feature contributes independently to the score, and the contribution of each feature is visible to users who request detailed output. This transparency is a deliberate design choice. A user who can understand why an extension received a given score is better positioned to make an informed installation decision than one who receives an opaque classification.
The scalar score maps to letter grades as follows:
| Grade | Score Range | Interpretation |
|---|---|---|
| A | 0–20 | Low risk. Minimal permissions, no suspicious code patterns, good store signals. |
| B | 21–40 | Moderate risk. Some elevated permissions; review code access if privacy-sensitive. |
| C | 41–60 | Elevated risk. Broad permissions and/or suspicious patterns. Caution advised. |
| D | 61–80 | High risk. Multiple risk indicators. Avoid unless extension is from a trusted, known developer. |
| F | 81–100 | Critical risk. Strong indicators of malicious or severely privacy-violating behavior. Do not install. |
Beyond the scored features, the framework applies a set of binary behavioral heuristics that, if triggered, result in an automatic F grade regardless of the linear score. These heuristics encode known attack patterns for which no mitigating factors exist:
We constructed a labeled evaluation dataset of 3,847 Chrome extensions: 3,340 benign extensions randomly sampled from the Chrome Web Store and 507 confirmed-malicious extensions from three sources (disclosed malicious extension campaigns reported by Kaspersky Lab, 2024; DataDome, 2025; and our own analysis). Malicious extensions were labeled based on confirmed behavioral evidence (captured network traffic to attacker infrastructure, confirmed credential theft, or researcher disclosure) rather than heuristic suspicion.
The dataset is imbalanced, with malicious extensions representing 13.2% of samples. This ratio approximates the estimated prevalence in the wild based on large-scale Chrome Web Store analyses (Thomas et al., 2023). We evaluate using precision and recall on the malicious class, and area under the ROC curve.
| Metric | Value |
|---|---|
| Precision (malicious class) | 91.3% |
| Recall (malicious class) | 87.6% |
| F1 score (malicious class) | 89.4% |
| AUC-ROC | 0.947 |
| False positive rate | 8.7% |
| Mean analysis time per extension | 1.4 seconds |
The false negative rate of 12.4% (1 in 8 malicious extensions not flagged) is the primary area for improvement. Analysis of missed extensions shows that most evade detection through one of two strategies: using legitimate cloud services (Google Drive, Dropbox, GitHub Gist) as exfiltration channels, which do not appear in malicious domain lists; or deferring malicious behavior activation to a point after initial installation via a delayed timer or a server-side configuration flag that changes after store review. Both evasion strategies require dynamic behavioral analysis to detect reliably.
We compare ExtensionGuard with the two most widely used alternative assessment approaches available to end users: manual permission review and Chrome Web Store safety badges. Manual permission review, even by security-aware users, achieves estimated precision of 40-60% on the malicious class based on prior usability studies (Felt et al., 2012). Chrome Web Store badges indicate policy compliance rather than behavioral security; confirmed-malicious extensions in our dataset held store badges in 71.2% of cases prior to removal.
ExtensionGuard (github.com/VMaroon95/ExtensionGuard) is an open-source Chrome extension that implements the assessment framework and is itself available on the Chrome Web Store. It analyzes any extension from the extension management page or the Web Store listing, displaying the A-F grade, a detailed factor breakdown, and a plain-language explanation of each risk indicator. Analysis runs in the browser using locally cached blocklists and the static scoring model; no extension code is transmitted to external servers.
A notable design constraint warrants description: analyzing another extension's code while running as an extension oneself is architecturally complex. ExtensionGuard accesses the source code of installed extensions through the chrome.management API (which provides access to the manifest) and by fetching the extension's CRX package from the Web Store CDN for uninstalled extensions. JavaScript parsing uses a lightweight AST parser running locally in the extension's service worker context.
As of August 2026, ExtensionGuard has been installed by approximately 8,400 users and has analyzed over 340,000 extension assessments, providing an empirical dataset of real-world assessments.
Technical assessment tools like ExtensionGuard address the information asymmetry between developers and users, but scalable improvement requires structural changes to extension marketplace practices. We propose four recommendations for marketplace operators:
Browser extensions represent an underappreciated risk vector that is disproportionately difficult for non-technical users to evaluate. The framework presented here demonstrates that automated static analysis can achieve high precision and recall for malicious extension classification (91.3% and 87.6%, respectively) using a transparent, interpretable scoring model. The open-source ExtensionGuard implementation makes this analysis accessible to end users without requiring security expertise or external data submission.
The primary limitations are evasion via legitimate cloud services and deferred behavioral activation, both of which require dynamic runtime analysis to address. Future work will explore sandboxed execution environments for dynamic extension behavioral analysis and integration with network traffic monitoring to detect legitimate-service exfiltration channels.