LLM Code Descriptions for Faster, Lower-False-Positive Malware Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing cybersecurity methods for detecting malicious code in source code are laborious, require human expertise in multiple programming languages, and suffer from high false positive rates, leading to inefficient resource utilization and security vulnerabilities.

Innovation Solution

Employing generative artificial intelligence, specifically large language models (LLMs) to generate natural language descriptions of code, which are then analyzed by classification models to determine maliciousness scores, reducing false positives and enhancing threat analysis.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If human experts manually analyze source code for malware detection, then detection accuracy can be maintained, but the process becomes laborious and time-consuming

Engineering Contradiction:
Improvedetection accuracyVSAvoidanalysis time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent introduces an intermediary system comprising code explanation generation models and natural language processing components that mediate between the source code and human analysts. These intermediaries automatically generate explanations of code functionality, allowing analysts to quickly understand malicious behavior without manually examining every line of code, thus maintaining high detection accuracy while significantly reducing analysis time.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system enables self-service by automatically generating code explanations and threat assessments without requiring deep human expertise for every analysis. The automated generation of natural language descriptions of code functionality allows the system to serve itself in the initial analysis phase, freeing human experts to focus only on complex cases that require human judgment.

Inventive Principle:
Principle #25Self-service

2Reliability

If human experts manually review code to reduce false positives, then detection reliability improves, but resource utilization becomes inefficient

Engineering Contradiction:
Improvedetection reliabilityVSAvoidresource utilization
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent segments the code review process into automated explanation generation and human verification stages. The system divides the analysis workload by automatically generating code explanations for routine cases, reserving human expert resources only for cases requiring nuanced judgment. This segmentation maintains high detection reliability while dramatically improving overall resource utilization efficiency.

Inventive Principle:
Principle #1Segmentation

3Adaptability or versatility

If comprehensive code analysis is performed to detect all malicious activities, then security coverage is improved, but the complexity of the detection system increases

Engineering Contradiction:
Improvesecurity coverageVSAvoiddetection system complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent employs natural language processing models as intermediaries that translate complex code analysis into human-understandable explanations. These intermediary models handle the complexity of comprehensive code analysis internally, presenting simplified threat assessments to users. This approach maintains broad security coverage while keeping the user-facing system complexity manageable.

Inventive Principle:
Principle #24Intermediary (Mediator)

4Productivity

If automated code analysis is implemented to improve productivity, then resource utilization improves, but false positive rates increase

Engineering Contradiction:
Improveresource utilizationVSAvoidfalse positive rate
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system implements self-service through automated generation of code explanations that include contextual information about code functionality and potential malicious behavior. This automated explanation generation provides sufficient context for most cases, reducing false positives while maintaining high productivity. The system serves itself by generating its own analytical insights without requiring constant human intervention.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS20250217473A1Using large language models to generate natural language descriptions of code for enhanced threat analysis and malware detection
Publication Date: 2025.07.03 CROWDSTRIKE
  • US20250217473A1 patent drawing
  • US20250217473A1 patent drawing
  • US20250217473A1 patent drawing

AI summary

A system and method of using generative AI to generate natural language descriptions of code for enhanced threat analysis and malware detection. The method includes determining that a file comprises source code for causing malicious activity. The method includes generating, by a processing device and using one or more large language models (LLMs), natural language (NL) descriptions of the source code responsive to determining whether the file comprises the source code to cause the malicious activity. The method includes providing the NL descriptions of the source code to a classification model trained to generate a first set of maliciousness scores each indicating whether source codes are associated with one or more types of malicious activity. The method includes generating, using the classification model, a maliciousness score for the source code indicating that the source code is associated with the one or more types of malicious activity.