Side-Channel Attack Detection via TLB Miss Monitoring

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current systems are inadequate in detecting and mitigating side-channel attacks, which exploit timing information and other implementation details to access sensitive data, posing a significant threat to computer security.

Innovation Solution

The implementation of a side-channel attack detection system that uses kernel address space layout randomization (KASLR) and performance monitoring counter (PMC) circuitry to detect speculative TLB misses, generating interrupts when privileged or secret data is accessed, thereby enhancing security without significant performance overhead.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional side-channel attack detection methods are used, then detection capability is limited, but system performance overhead remains acceptable

Engineering Contradiction:
Improveside-channel attack detection capabilityVSAvoiddetection system complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent introduces Translation Lookaside Buffer (TLB) miss detection as an intermediary mechanism to detect side-channel attacks. The TLB serves as a mediator between memory access operations and attack detection, allowing the system to detect speculative execution attacks without directly monitoring all memory operations. This intermediary approach enhances detection capability while avoiding the complexity of comprehensive monitoring systems.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The detection system leverages existing hardware components (TLB, performance monitoring counters) to perform attack detection autonomously. The performance monitoring counters automatically track TLB misses and generate interrupts when attack patterns are detected, eliminating the need for complex external monitoring infrastructure. This self-service mechanism improves reliability without proportionally increasing device complexity.

Inventive Principle:
Principle #25Self-service

2Measurement precision

If comprehensive monitoring of memory access operations is implemented, then attack detection accuracy improves, but system performance overhead increases

Engineering Contradiction:
Improveattack detection accuracyVSAvoidsystem performance
Core Design Contradiction:
Measurement precisionVSProductivity

Solution Approach 1:

The patent applies local quality by monitoring only specific memory access patterns that indicate side-channel attacks (TLB misses on privileged/secret data) rather than all memory operations. The performance monitoring counters are configured to track only relevant events, achieving high detection accuracy for targeted attack vectors while maintaining overall system performance. This selective monitoring approach avoids the performance penalty of comprehensive monitoring.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The system implements partial monitoring by focusing on the critical subset of memory operations that reveal attack patterns. Rather than monitoring every memory access, the system detects TLB misses specifically on protected data pages, which is sufficient to detect Spectre-like attacks. This partial action provides adequate detection accuracy without the overhead of exhaustive monitoring.

Inventive Principle:
Principle #16Partial or excessive action

3Reliability

If hardware-based detection mechanisms are added, then detection reliability improves, but device complexity and cost increase

Engineering Contradiction:
Improvedetection reliabilityVSAvoidhardware complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent utilizes existing multi-functional hardware components for attack detection. The Translation Lookaside Buffer serves both its traditional memory translation function and attack detection function. Performance monitoring counters, already present for performance analysis, are repurposed to detect attack patterns. This universal use of existing hardware improves detection reliability without adding dedicated detection hardware, thereby avoiding increased device complexity.

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

Solution Approach 2:

The system copies existing performance monitoring infrastructure to serve dual purposes. The same hardware mechanisms used for performance counting are utilized for security monitoring, creating a replicated functionality that achieves reliable detection without requiring separate dedicated hardware. This copying approach maintains hardware simplicity while improving reliability through multi-purpose utilization.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS11392698B2Active side-channel attack prevention
Publication Date: 2022.07.19 INTEL CORP
  • US11392698B2 patent drawing
  • US11392698B2 patent drawing
  • US11392698B2 patent drawing

AI summary

The present disclosure is directed to systems and methods of detecting a side-channel attack detecting a translation lookaside buffer (TLB) miss on a virtual address lookup caused by the speculative execution of an instruction and determining that the physical memory address associated with the virtual address lookup contains a privileged object or a secret object. Range register circuitry determines whether the physical memory address is located in an address range containing privileged objects or secret objects. Performance monitoring counter (PMC) circuitry generates an interrupt in response to receipt of information indicative of the TLB miss and information indicative that the physical memory address contains a privileged object or a secret object. The PMC circuitry causes the storage of information associated with the speculatively executed instruction causing the virtual address lookup.