Package Dependency Malware Screening with Selective Generative ML

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing malware detection tools for open-source software are inefficient, require significant storage space and bandwidth, and fail to detect malware that covers its tracks during installation, while generative machine learning is computationally expensive and not scalable.

Innovation Solution

A malware detection system using a known package cache organized as a directed acyclic graph (DAG) compares file chunks of package integrations with a cache, leveraging generative machine learning only when severe consequences are at stake, and storing results to avoid redundant queries.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If generative machine learning is used to detect all suspected malware patterns, then detection accuracy is improved, but computational cost and time consumption increase significantly

Engineering Contradiction:
Improvemalware detection accuracyVSAvoidcomputational cost
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The system applies different detection methods to different parts of the analysis process: pattern recognition is used for initial screening of all files, while generative machine learning is applied only locally to ambiguous patterns that require deeper analysis. This selective application optimizes the balance between detection accuracy and computational cost.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The system uses pattern recognition as a preliminary action that performs more analysis than strictly necessary for simple cases, creating a filter that catches obvious malware while allowing ambiguous cases to proceed to generative machine learning. This partial action approach reduces the volume of expensive queries while maintaining high detection accuracy.

Inventive Principle:
Principle #16Partial or excessive action

2Speed

If pattern recognition is used to detect malware, then detection speed is improved, but detection reliability decreases due to false positives and false negatives

Engineering Contradiction:
Improvedetection speedVSAvoiddetection reliability
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The system implements a feedback loop where pattern recognition results are fed back to generative machine learning models for verification. The generative models provide feedback corrections to the pattern recognition system, improving overall reliability while maintaining speed through efficient query caching and selective re-analysis.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The system performs preliminary pattern recognition analysis on all files to establish a baseline detection. This preliminary action quickly identifies obvious malware and creates a reference framework that improves subsequent generative machine learning queries, enhancing both speed and reliability through staged analysis.

Inventive Principle:
Principle #10Preliminary action

3Reliability

If existing malware detection tools are used, then malware detection capability is provided, but storage space and bandwidth requirements become excessive

Engineering Contradiction:
Improvemalware detection capabilityVSAvoidstorage space
Core Design Contradiction:
ReliabilityVSVolume of stationary object

Solution Approach 1:

The system extracts only the essential information needed for malware detection - file hashes, metadata, and suspicious pattern descriptions - rather than storing complete package contents. This extraction approach maintains detection capability while dramatically reducing storage requirements and improving scalability.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The system creates a virtual copy of the package integration environment in memory, allowing analysis without physical installation. This copying approach enables malware detection capability while eliminating the need for actual package installation and storage, resolving the contradiction between detection capability and storage requirements.

Inventive Principle:
Principle #26Copying

4Reliability

If existing malware detection tools are used, then malware identification is performed, but scalability is limited due to installation requirements

Engineering Contradiction:
Improvemalware identificationVSAvoidscalability
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

The system replaces the mechanical installation process with a virtual analysis mechanism. Instead of requiring physical installation of packages for detection, the system uses file hash comparison and pattern recognition to identify malware, enabling scalable deployment without installation requirements while maintaining reliable malware identification.

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

Data Source

PatentUS20250291921A1Identifying ambiguous patterns as malware using generative machine learning
Publication Date: 2025.09.18 SOCKET INC
  • US20250291921A1 patent drawing
  • US20250291921A1 patent drawing
  • US20250291921A1 patent drawing

AI summary

A request is received to scan a package integration for a malicious dependency, the package integration to be integrated into an application. Using a known package cache, a subset dependencies of the package integration that have not been previously scanned is determined. Content of each file of the subset is input into a malware detection model, and an identification of an ambiguous pattern is received from the malware detection model. Responsive to receiving the identification of the ambiguous pattern, the ambiguous pattern is input into a severity model, and a level of severity that the ambiguous pattern would impose on an assumption that malware is present is received. Where the level of severity is above a threshold minimum level of severity, a query is transmitted to a generative machine learning model to determine whether malware is present.