Automated Security Assessment of Browser Extensions: A Static and Behavioral Risk Classification Framework
Varun Meda
Independent Researcher · Browser Security & Digital Privacy
varunmeda01@gmail.com · github.com/VMaroon95
August 2026 · Working Paper
Abstract
Browser extensions occupy a uniquely privileged position in the web security stack: they execute within the browser process, can read and modify page content across all visited websites, intercept network requests, access stored credentials, and communicate with external servers, all with user-level permissions and minimal runtime oversight. Despite this privileged position, the security evaluation available to end users when installing an extension is limited to a list of requested permissions (often opaque to non-technical users), user reviews, and a Chrome Web Store safety badge that reflects basic policy compliance rather than behavioral security analysis. This paper presents a framework for automated, quantitative security assessment of browser extensions using static analysis of the manifest, content scripts, and background service workers, combined with behavioral heuristics that identify patterns associated with malicious or privacy-violating extensions. The framework produces an A-F risk grade calibrated against a labeled dataset of 3,847 extensions including both benign and confirmed-malicious samples. We describe implementation in the open-source ExtensionGuard tool (live on the Chrome Web Store) and report evaluation results showing 91.3% precision and 87.6% recall on the malicious class. We also propose a set of disclosure recommendations for extension marketplace operators that would reduce the information asymmetry between developers and users.
Keywords: browser extension security, Chrome extension, static analysis, manifest analysis, permission scoring, risk classification, browser security, malicious extension detection

1. Introduction

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.


2. Background

2.1 Extension Architecture and Attack Surface

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.

2.2 Manifest V3 and Security Improvements

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.


3. Framework Design

3.1 Feature Extraction

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:

CategoryFeature CountExamples
Permission risk12has_all_urls, has_cookies, has_scripting, permission_count, host_pattern_specificity
Code patterns15eval_usage, dynamic_script_inject, fetch_third_party_count, dom_mutation_observer, keydown_listener
Network exposure8unique_external_domains, has_known_malicious_domain, uses_cdn_only, exfil_pattern_score
Store signals7install_count, review_rating, developer_verified, days_since_last_update, review_count_ratio
Manifest structure5has_content_security_policy, uses_web_accessible_resources, background_persistent
Table 1: Feature categories and example features in the ExtensionGuard assessment framework.

3.2 Risk Scoring Model

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:

GradeScore RangeInterpretation
A0–20Low risk. Minimal permissions, no suspicious code patterns, good store signals.
B21–40Moderate risk. Some elevated permissions; review code access if privacy-sensitive.
C41–60Elevated risk. Broad permissions and/or suspicious patterns. Caution advised.
D61–80High risk. Multiple risk indicators. Avoid unless extension is from a trusted, known developer.
F81–100Critical risk. Strong indicators of malicious or severely privacy-violating behavior. Do not install.
Table 2: Risk grade scale and interpretation.

3.3 Behavioral Heuristics

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:


4. Evaluation

4.1 Dataset

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.

4.2 Results

MetricValue
Precision (malicious class)91.3%
Recall (malicious class)87.6%
F1 score (malicious class)89.4%
AUC-ROC0.947
False positive rate8.7%
Mean analysis time per extension1.4 seconds
Table 3: Evaluation results on the 3,847-extension labeled dataset.

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.

4.3 Comparison with Alternatives

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.


5. Implementation: ExtensionGuard

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.


6. Disclosure Recommendations

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:

  1. Mandatory behavioral disclosure: Extensions should be required to declare in human-readable terms what data they access, what external servers they communicate with, and for what stated purpose (analogous to the privacy nutrition labels introduced by Apple for mobile apps).
  2. Dynamic behavioral monitoring post-install: Periodic re-analysis of installed extensions for behavioral changes from initial submission, using automated dynamic analysis in a sandboxed environment, would detect the deferred-activation evasion pattern.
  3. Developer identity verification: Requiring developers to verify organizational identity before publishing extensions, and displaying verified status prominently, would raise the cost of malicious publisher accounts.
  4. Standardized permission explanations: Permission declarations should be accompanied by plain-language impact statements explaining what the permission enables in user-facing terms, not technical API terms.

7. Conclusion

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.


8. References

DataDome. (2025). The state of browser extension security 2025. DataDome Threat Intelligence Report. https://datadome.co/reports/
Felt, A. P., Ha, E., Egelman, S., Haney, A., Chin, E., & Wagner, D. (2012). Android permissions: User attention, comprehension, and behavior. In Proceedings of the Eighth Symposium on Usable Privacy and Security (pp. 3:1–3:14). USENIX. https://www.usenix.org/conference/soups2012/technical-sessions/presentation/felt
Jagpal, N., Dingle, E., Durumeric, Z., Grier, C., Han, J., Paxson, V., & Thomas, K. (2015). Trends and lessons from three years fighting malicious extensions. In Proceedings of the 24th USENIX Security Symposium (pp. 579–593). USENIX.
Kaspersky Lab. (2024). Browser extension malware: 2023-2024 campaign analysis. Kaspersky Securelist. https://securelist.com
Thomas, K., Bursztein, E., Grier, C., Ho, G., Jagpal, N., Kapravelos, A., McCoy, D., Nappa, A., Paxson, V., Pearce, P., Provos, N., & Rajab, M. A. (2023). Ad injection at scale: Assessing deceptive advertisement modifications. In 2023 IEEE Symposium on Security and Privacy (pp. 151–167). IEEE. https://doi.org/10.1109/SP.2015.26
Xing, X., Meng, W., Lee, B., Weinsberg, U., Sheth, A., Wetzel, R., & Lee, W. (2015). Understanding malvertising through ad-injecting browser extensions. In Proceedings of the 24th International Conference on World Wide Web (pp. 1286–1295). ACM. https://doi.org/10.1145/2736277.2741672
ExtensionGuard is open source at github.com/VMaroon95/ExtensionGuard and available on the Chrome Web Store. Correspondence: varunmeda01@gmail.com