MSIL Wildcard Hashing for .NET Malware Family Clustering

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Malware authors use sophisticated techniques to obfuscate their software, making it difficult for existing security systems to detect and prevent malware from compromising computers and communicating with command and control servers.

Innovation Solution

Transform the Microsoft Intermediate Language (MSIL) code of .NET binaries into a uniform format, generate a file signature (DNCodeHash) by hashing the wildcarded methods, and use this signature for malware detection and clustering, which improves accuracy and reduces false positives and negatives.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional malware detection methods are used, then detection capability is maintained, but accuracy is low due to obfuscation techniques

Engineering Contradiction:
Improvemalware detection accuracyVSAvoidanalysis complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent transforms MSIL code by changing its parameter representation - replacing method parameters with wildcard characters (*) to create a normalized format that is independent of specific parameter names and types. This transformation enables accurate matching of obfuscated malware while maintaining manageable analysis complexity through systematic parameter abstraction.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent applies different processing treatments to different parts of the code structure - method signatures are wildcarded while method bodies are hashed. This local differentiation allows the system to capture structural patterns at the signature level while handling the complexity of implementation details through hashing, thereby improving detection accuracy without proportionally increasing analysis complexity.

Inventive Principle:
Principle #3Local quality

2Object-affected harmful factors

If code obfuscation is used by malware authors, then malware evasion capability is improved, but detection accuracy deteriorates

Engineering Contradiction:
Improvemalware evasion capabilityVSAvoidmalware detection accuracy
Core Design Contradiction:
Object-affected harmful factorsVSMeasurement precision

Solution Approach 1:

Instead of trying to detect obfuscated malware through its original form, the patent inverts the approach by transforming the code into a normalized wildcard format where obfuscation details are abstracted away. This inversion allows the detection system to see through obfuscation layers and identify the underlying malicious patterns that remain consistent despite parameter name changes.

Inventive Principle:
Principle #13The other way round (Inversion)

Solution Approach 2:

The patent creates a transformed copy of the MSIL code with wildcarded parameters that preserves the structural essence while removing obfuscation-specific details. This copied representation serves as the basis for detection, allowing the system to identify malware families based on their structural patterns rather than surface-level obfuscation variations.

Inventive Principle:
Principle #26Copying

3Measurement precision

If detailed code analysis is performed, then detection accuracy is improved, but processing time increases

Engineering Contradiction:
Improvemalware detection accuracyVSAvoidprocessing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The patent extracts only the essential structural information from MSIL code - specifically method signatures with wildcarded parameters - while excluding detailed implementation content which is replaced with hashes. This extraction approach maintains detection accuracy by preserving structural patterns while reducing processing time by eliminating the need to analyze every detail of method bodies.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent segments the code analysis into distinct components: method signature analysis through wildcarding and method body analysis through hashing. This segmentation allows the system to process different parts of the code with appropriate techniques, improving overall efficiency while maintaining comprehensive detection capability.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12505212B2Automated code signature generation for windows .net binaries
Publication Date: 2025.12.23 PALO ALTO NETWORKS INC
  • US12505212B2 patent drawing
  • US12505212B2 patent drawing
  • US12505212B2 patent drawing

AI summary

Various embodiments provide a system, method, and device for generating a signature for Windows .NET binaries. The method incudes (i) generate a file signature based on code using a hashing technique, and (ii) classify a sample using the file signature based on the code.