Component Protection Framework Using Defensive Patterns

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Modern web applications with client-side components are vulnerable to attacks, as attackers can execute code within the same web browser, potentially accessing sensitive information and disrupting functionality.

Innovation Solution

A protection framework is established using defensive patterns such as the immediately-invoked function pattern, global object pattern, constructor pattern, and on-attributes pattern to create a hardened boundary between the component and its attack surface, preventing unauthorized access and manipulation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If client-side functionality is implemented in web components, then user interface responsiveness and interactivity are improved, but security vulnerability to attacks increases

Engineering Contradiction:
Improveuser interface responsivenessVSAvoidsecurity vulnerability
Core Design Contradiction:
Ease of operationVSObject-affected harmful factors

Solution Approach 1:

The patent divides the web component into multiple isolated contexts using immediately-invoked function expressions (IIFEs) and sandboxed iframes. Each segment operates in its own scope with controlled access to the component's internal state, preventing attackers from accessing the entire component at once while maintaining functional responsiveness.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces an intermediary protection framework that sits between the attacker and the component's sensitive data. This framework uses proxy objects and attribute access interceptors to mediate all interactions, allowing legitimate user operations to proceed while blocking malicious access attempts.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If global variables and public methods are exposed for component functionality, then ease of use and integration are improved, but accessibility to attackers increases

Engineering Contradiction:
Improvecomponent integrabilityVSAvoidattack surface exposure
Core Design Contradiction:
Adaptability or versatilityVSObject-affected harmful factors

Solution Approach 1:

The patent employs proxy objects as intermediaries that wrap the component's public interface. These proxies intercept all read and write operations, validating access requests and preventing direct manipulation of internal state while maintaining the appearance of a fully functional public API for legitimate users.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent applies different security characteristics to different parts of the component interface. Critical internal variables use strict private scopes with no external access, while public methods use controlled proxies, and configuration options use validated setters. This localized security approach maintains versatility while minimizing attack surface.

Inventive Principle:
Principle #3Local quality

3Reliability

If defensive patterns are applied to protect component assets, then security against attacks is improved, but implementation complexity increases

Engineering Contradiction:
Improveprotection framework effectivenessVSAvoidimplementation complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent applies defensive patterns during the component initialization phase rather than as reactive measures. Immediately-invoked function expressions create isolated scopes before any user interaction, and proxy objects are established upfront to control all future access. This preliminary structuring provides strong protection while keeping the runtime overhead minimal.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent uses universal defensive patterns like IIFEs and proxies that can protect multiple different types of assets (variables, functions, objects) with a single implementation approach. This multi-functional protection mechanism reduces overall implementation complexity compared to applying separate protection measures for each asset type.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS10242180B2Component protection frameworks using defensive patterns
Publication Date: 2019.03.26 SAP SE
  • US10242180B2 patent drawing
  • US10242180B2 patent drawing
  • US10242180B2 patent drawing

AI summary

Systems and methods are provided herein for establishing a protection framework for a component. Identified assets of a component requiring protection from a potential attack are received. A list of assets is generated based on the identified assets. A protection framework is configured to include at least one defensive pattern to protect the list of assets against the potential attack. The protection framework is executed to establish a hardened boundary between the component and an attack surface of the component.