Page Replacement Code Injection for Sandboxes

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing malware detection systems face challenges in efficiently updating sandbox environments and effectively thwarting malware detection mechanisms, particularly with polymorphic malware that can mutate and evade signature-based detection, and there is a need for improved mechanisms to handle real-time updates and obscure monitoring systems from malware.

Innovation Solution

The implementation of page replacement code injection, which allows for on-the-fly updates of virtual disk images by injecting code into a target program within the sandbox environment, enabling dynamic code injection without replacing the entire virtual disk, and obscuring the injected code from malware detection.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If entire sandbox installation is replaced to update the environment, then the sandbox can receive updated detection capabilities, but network resources are consumed and delays occur

Engineering Contradiction:
Improvedetection capabilityVSAvoidupdate delay
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The sandbox installation is segmented into modular components, allowing selective replacement of only the necessary detection modules rather than the entire sandbox environment. This enables incremental updates where specific detection capabilities can be refreshed independently, reducing network resource consumption and update delays while maintaining overall sandbox functionality.

Inventive Principle:
Principle #1Segmentation

2Productivity

If code is injected into target program, then sandbox can be updated without replacing virtual disk, but malware may detect the monitoring system

Engineering Contradiction:
Improveupdate efficiencyVSAvoiddetection evasion
Core Design Contradiction:
ProductivityVSDifficulty of detecting and measuring

Solution Approach 1:

The code injection mechanism employs dynamic timing and conditional execution strategies. Code is injected at strategically chosen moments when malware is least likely to be actively monitoring for changes, and the injected code uses dynamic behavior patterns to evade detection. The monitoring system adapts its injection timing based on malware activity states, making static detection ineffective.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent uses an intermediary code structure that acts as a bridge between the sandbox monitoring system and the target program. This intermediary layer obfuscates the true nature of the monitoring operations by translating them into seemingly benign code sequences, preventing malware from directly detecting the monitoring system while still enabling effective code injection and updates.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS10089461B1Page replacement code injection
Publication Date: 2018.10.02 MAGENTA SECURITY HOLDINGS LLC
  • US10089461B1 patent drawing
  • US10089461B1 patent drawing
  • US10089461B1 patent drawing

AI summary

Techniques for malicious content detection using code injection are described herein. In one embodiment a first code section of a target program is loaded into a first memory page of a virtual machine (VM) hosted by a virtual machine monitor (VMM). The target program to receive code injection. The VMM injects a second code section into the target program by replacing the first code section with a second code section loaded in a second memory page. Determining a behavior of a content specimen using the injected second code section instead of the first code section, and the second code section is injected after the target program.