# JSSignature: Eliminating Third-Party-Hosted JavaScript Infection Threats   Using Digital Signatures

**Authors:** Kousha Nakhaei, Ebrahim Ansari, Fateme Ansari

arXiv: 1812.03939 · 2019-02-11

## TL;DR

JSSignature is a client-side JavaScript framework that verifies third-party scripts using digital signatures, preventing malicious code execution and enhancing web security without restricting trusted providers.

## Contribution

It introduces a novel client-side digital signature validation method for third-party JavaScript resources, ensuring integrity and authenticity without limiting provider choices.

## Key findings

- Effective in preventing infected third-party scripts from executing.
- Minimal performance overhead during validation.
- Easy to deploy and integrate into existing web pages.

## Abstract

Today, third-party JavaScript resources are indispensable part of the web platform. More than 88% of world's top websites include at least one JavaScript resource from a remote host. However, there is a great security risk behind using a third-party JavaScript resource, if an attacker can infect one of these remote JavaScript resources all websites those have included the script would be at risk. In this paper, we present JSSignature, an entirely at the client-side pure JavaScript framework in order to validate third-party JavaScript resources using digital signature. Therefore, all included JavaScript resources are checked against the integrity, authentication and non-repudiation risks before the execution. In contrary to existing methods, JSSignature protects web pages regardless of third-party resource infection nature while it does not set any restrictions on trusted JavaScript providers. This approach has an acceptable one-time performance overhead and is an easily deployable add-in. We have validated the proposed solution by applying tests on an implemented version\footnote{The source-code, resources and the working demo are available at JSSignature website.

---
Source: https://tomesphere.com/paper/1812.03939