Source Code Correction System for Security Compliance

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current static code analysis tools face challenges in efficiently detecting and addressing misconfigured source code elements, particularly in large-scale deployments, as they require extensive manual effort to identify and fix rule violations, and often lack recommendations for compliant alternatives.

Innovation Solution

A method and system that access source code listings and apply validation rules to identify non-compliant code elements, providing compliant alternatives for revision, thereby reducing the time to resolve security risks and assisting developers with 'tried and true' resource definitions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If manual review and fixing of code elements is performed, then compliance with validation rules is achieved, but time consumption and labor effort increase significantly

Engineering Contradiction:
Improvecompliance with validation rulesVSAvoidtime to resolve security risks
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system enables self-service by automatically generating compliant alternative code elements without requiring manual intervention. The processor autonomously identifies non-compliant code elements, searches for compliant alternatives in the corpus, and presents them to developers, allowing the system to serve itself in the compliance verification process.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system creates copies of compliant code elements from the corpus to replace non-compliant ones. By storing multiple compliant alternatives in the corpus and copying them to fix violations, the system eliminates manual rewriting while ensuring compliance with validation rules.

Inventive Principle:
Principle #26Copying

2Reliability

If comprehensive validation rules are applied to all code elements, then security compliance improves, but the complexity of the analysis process increases

Engineering Contradiction:
Improvesecurity complianceVSAvoidcomplexity of analysis process
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system segments the code base into individual code elements that can be independently analyzed against validation rules. By dividing the comprehensive validation task into smaller, manageable units (individual code elements), the system maintains thorough security checking while reducing the perceived complexity of the analysis process.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The corpus of compliant code elements acts as an intermediary between the validation rules and the non-compliant code. Instead of directly complex analysis and manual fixing, the system uses the corpus as a mediator that provides pre-validated alternatives, simplifying the compliance process.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If developers manually identify and fix non-compliant code elements, then security risks are addressed, but productivity is reduced due to extensive manual effort

Engineering Contradiction:
Improvesecurity risk resolutionVSAvoiddeveloper efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system performs self-service by automatically identifying non-compliant code elements, searching the corpus for compliant alternatives, and presenting ready-to-use fixes to developers. This automation eliminates the need for developers to manually analyze and rewrite code, significantly improving productivity while maintaining security compliance.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system performs preliminary action by pre-computing and storing compliant code alternatives in the corpus before they are needed. When validation violations are detected, the system can immediately retrieve pre-prepared compliant alternatives without requiring developers to perform time-consuming analysis or rewriting, thus enhancing productivity.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS20240061675A1Source code correction system
Publication Date: 2024.02.22 PALO ALTO NETWORKS INC
  • US20240061675A1 patent drawing
  • US20240061675A1 patent drawing
  • US20240061675A1 patent drawing

AI summary

A method, including accessing a corpus of source code listings including respective code elements, and accessing a repository of validation rules defining respective acceptable security parameters for the code elements. The validation rules are applied to the code elements so as to identify a first set of the code elements not in compliance with the validation rules and a second set of the code elements in compliance with the validation rules. A first code element not in compliance with a given validation rule is selected from the first set, and one or more second code elements in compliance with the given validation rule are identified in the second set. Finally, the first and the second code elements can be output together so as to invoke a revision of the first code element.