TLB Watcher Detects Malware via ITLB DTLB Discrepancies
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Modern malware can evade detection by hiding in memory address mappings, making it difficult for existing systems to identify and mitigate malicious software effectively.
Innovation Solution
Implementing a TLB watcher that scans address mappings in the instruction and data translation look-aside buffers (ITLB and DTLB) to detect discrepancies between virtual and physical memory addresses, determining whether a process is generated by malicious software based on these mappings.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Object-affected harmful factors
If malware hides itself in memory address mappings to evade detection, then the malware's stealth capability is improved, but the detection precision of security systems deteriorates
Solution Approach 1:
The patent introduces a TLB watcher as an intermediary component that monitors translation look-aside buffers to detect malware. The TLB watcher acts as a mediator between the CPU and memory management unit, observing address mappings without interfering with normal memory operations. By watching for suspicious patterns in the TLB (such as unauthorized mappings or mappings to protected memory regions), the system can detect hidden malware while maintaining normal system performance and stealth evasion resistance.
2Device complexity
If traditional detection methods are used without examining TLB, then the system complexity is reduced, but the reliability of malware detection deteriorates
Solution Approach 1:
The patent extracts the detection function from the main CPU execution path by implementing a separate TLB watcher module. This extracted component specifically monitors translation look-aside buffer operations independently from normal instruction execution. By separating the detection functionality into a dedicated watcher that observes TLB events (such as page table walks, address translations, and memory mapping changes), the system achieves reliable malware detection without significantly increasing overall system complexity, as the watcher operates as a lightweight side-channel monitor.
3Measurement precision
If the TLB watcher scans all address mappings in ITLB and DTLB, then the detection precision is improved, but the processing time increases
Solution Approach 1:
The patent implements periodic scanning of translation look-aside buffers by the TLB watcher, rather than continuous monitoring of all memory operations. The watcher periodically examines address mappings in the ITLB (instruction TLB) and DTLB (data TLB) for suspicious patterns. This periodic action allows the system to maintain high detection precision by regularly checking for malware indicators while minimizing processing overhead by not continuously interrupting normal CPU operations. The periodic scans occur at strategically chosen moments when TLB events naturally occur, reducing time loss.
Data Source
AI summary
Systems and methods that detect presence of malicious software while comparing address mappings in multiple table look-aside buffers are provided. Address mappings in an instruction table look-aside buffer (ITLB) and a data table look-aside buffer (DTLB) may be scanned with each address mapping including a mapping between a virtual page in a virtual memory and a frame in a physical memory of a computing device. A discrepancy between an address mapping in the ITLB and an address mapping in the DTLB can be identified. Based on the discrepancy, a process associated with the mapping may then be identified as a malicious process.


