Hypervisor-Based System Call Monitoring via MSR Shadowing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Modern computer security monitoring capabilities are insufficient due to the limitations imposed by PatchGuard, which restricts the ability to monitor fundamental process interactions such as system calls, leading to reduced robustness in detecting malicious intrusions.

Innovation Solution

An in-band software monitor intercepts system calls made from a Model Specific Register (MSR) within the kernel, while an out-of-band hypervisor traps read and write requests to the MSR, allowing for obscured presence and enhanced monitoring operations without triggering PatchGuard or impacting system stability.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Difficulty of detecting and measuring

If Direct Kernel Object Manipulation (DKOM) is used to monitor system calls, then monitoring capabilities are enhanced, but system stability deteriorates due to PatchGuard triggering Blue Screen of Death

Engineering Contradiction:
Improvemonitoring capabilityVSAvoidsystem stability
Core Design Contradiction:
Difficulty of detecting and measuringVSReliability

Solution Approach 1:

The patent introduces an intermediary mechanism (hypervisor or kernel driver) that mediates between the monitoring application and the system call interface. This intermediary captures and analyzes system call information without requiring direct modification of protected kernel objects, thereby avoiding PatchGuard detection while maintaining monitoring capabilities.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent creates copies of system call information and kernel object data through legitimate interfaces rather than directly manipulating the original protected objects. By working with copies obtained through approved methods, the system can analyze and monitor without triggering PatchGuard's integrity checks.

Inventive Principle:
Principle #26Copying

2Reliability

If approved monitoring methods are used to avoid PatchGuard, then system stability is maintained, but monitoring capabilities are reduced

Engineering Contradiction:
Improvesystem stabilityVSAvoidmonitoring capability
Core Design Contradiction:
ReliabilityVSDifficulty of detecting and measuring

Solution Approach 1:

The patent implements a multi-functional monitoring system that can operate through multiple approved interfaces (system call interception, process creation monitoring, network activity tracking, file system monitoring). This universal approach compensates for the limitations of individual approved methods by providing comprehensive monitoring capabilities across different system domains.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent divides the monitoring functionality into multiple independent modules, each responsible for a specific aspect of system monitoring (process monitoring, network monitoring, file system monitoring, registry monitoring). This segmentation allows each module to use appropriate approved methods for its specific domain while collectively providing comprehensive monitoring coverage.

Inventive Principle:
Principle #1Segmentation

3Difficulty of detecting and measuring

If kernel modifications are made for monitoring, then monitoring robustness is improved, but ease of operation deteriorates due to complexity of implementation

Engineering Contradiction:
Improvemonitoring robustnessVSAvoidimplementation complexity
Core Design Contradiction:
Difficulty of detecting and measuringVSEase of operation

Solution Approach 1:

The patent implements self-service mechanisms where the monitoring system automatically performs tasks such as registering for system call notifications, setting up process creation callbacks, and configuring network filters without requiring manual kernel object manipulation. This automation reduces implementation complexity while maintaining robust monitoring capabilities.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS10198280B2Method and apparatus for hypervisor based monitoring of system interactions
Publication Date: 2019.02.05 ALERT LOGIC LLC
  • US10198280B2 patent drawing
  • US10198280B2 patent drawing
  • US10198280B2 patent drawing

AI summary

A security system and method efficiently monitors and secures a computer to defend against malicious intrusions, and includes an in-band software monitor disposed within a kernel in communication with an operating system (OS) of the computer. The monitor intercepts system calls made from an MSR (Model Specific Register), to execute monitoring operations, and subsequently returns execution to the OS. An out-of-band hypervisor communicably coupled to the OS, has read shadow means for trapping read requests to the MSR, and write mask means for trapping write requests to the MSR. The hypervisor includes means for responding to the trapped read and write requests so that presence of the monitor is obscured.