Content Security Policy Header Generation for Third-Party Domain Blocking

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Modern web-based computing environments are vulnerable to phishing attacks and security-related vulnerabilities due to malicious scripts injected by third-party advertising containers, which existing technologies fail to monitor and block effectively in real-time.

Innovation Solution

A method involving the generation of a Content Security Policy (CSP) header set based on rule conditions, transmission to a computing device, and blocking of non-whitelisted third-party domains, with a whitelist lookup file comparison and alert generation for security teams, and automated updating of rule conditions using a feature toggle system.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If third-party advertising containers are added to websites to facilitate data collection and sharing, then the functionality and versatility of the website are improved, but the website becomes vulnerable to phishing attacks and security-related vulnerabilities

Engineering Contradiction:
ImprovefunctionalityVSAvoidsecurity vulnerability
Core Design Contradiction:
Adaptability or versatilityVSObject-affected harmful factors

Solution Approach 1:

The system performs preliminary actions by generating Content Security Policy (CSP) headers before the third-party scripts are executed. These CSP headers pre-define the allowed domains and restrict where scripts can be loaded from, preventing malicious scripts from executing before they can cause harm. The whitelist of approved third-party domains is established in advance, and the CSP mechanism is put in place before any potentially malicious code runs.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The Content Security Policy (CSP) header acts as an intermediary between the website and third-party advertising containers. It mediates the interaction by establishing security rules that control which third-party domains can load scripts and resources. The CSP header serves as a gatekeeper that allows legitimate third-party functionality while blocking malicious scripts, thus protecting the website without completely preventing third-party integration.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If existing technologies are used to monitor third-party domains, then some level of security monitoring is provided, but real-time tracking and blocking of malicious domains is not achieved effectively

Engineering Contradiction:
Improvesecurity monitoringVSAvoidreal-time response
Core Design Contradiction:
ReliabilityVSSpeed

Solution Approach 1:

The system implements feedback by continuously monitoring CSP violation reports from the browser and using this information to update the whitelist of approved third-party domains. When a violation is detected, the system receives feedback about the malicious domain, evaluates it against the whitelist, and automatically updates the CSP headers to block the malicious domain in real-time. This closed-loop feedback mechanism enables dynamic adaptation to new threats.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system performs self-service by automatically detecting, evaluating, and blocking malicious third-party domains without requiring manual security intervention. The automated workflow includes receiving CSP violation reports, comparing domains against the whitelist, generating alerts for non-whitelisted domains, and automatically updating CSP headers to block malicious domains. This automation enables real-time security response without human involvement in the blocking process.

Inventive Principle:
Principle #25Self-service

3Reliability

If manual management of third-party tags is performed, then security control is maintained, but the complexity and time required for updates increase significantly

Engineering Contradiction:
Improvesecurity controlVSAvoidupdate time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system enables self-service by automatically managing the whitelist of approved third-party domains and updating CSP headers without manual intervention. The automated workflow includes receiving CSP violation reports, comparing domains against the whitelist, generating alerts for non-whitelisted domains, and automatically updating CSP headers to block malicious domains. This automation eliminates the need for manual security team intervention in routine blocking operations.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system replaces manual mechanical processes with automated electronic systems. Instead of security teams manually reviewing and updating third-party domain whitelists, the system uses automated CSP header generation, violation report processing, and domain blocking mechanisms. This substitution of manual mechanical updates with automated electronic processes dramatically reduces update time while maintaining security control.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Data Source

PatentUS10778687B2Tracking and whitelisting third-party domains
Publication Date: 2020.09.15 DELL PROD LP
  • US10778687B2 patent drawing
  • US10778687B2 patent drawing
  • US10778687B2 patent drawing

AI summary

Disclosed herein are methods, systems, and processes to track and whitelist third-party domains. A web request is received from a computing device. A Content Security Policy (CSP) header set is generated based on rule conditions and transmitted to the computing device. A violation notice indicating that third party domains used to render the web request violate one or more rule conditions identified by the CSP header set is received from the computing device. The third party domains are blocked as part of performing the web request.