How ott3r07/arm_antivm works
Main Components Organization
a) Core Detection Modules (Central Components):
• CNTFRQ (Counter Frequency) Module
• CurrentEL (Current Exception Level) Module
• HCR_EL2 (Hypervisor Configuration Register) Module
• ID Register Module
• MIDR_EL1 (Main ID Register) Module
• SCTLR (System Control Register) Module
b) Support Components:
• Build System (Makefile-based compilation)
• Timing Analysis Component
• Test Framework
Relationships and Interactions
• Use a layered approach with three main layers:
1. Kernel Space (top layer)
2. Module Interface Layer (middle)
3. Hardware Register Access Layer (bottom)
Component Details
a) For each module, indicate:
• Input: Register access requests
• Output: Detection results
• Interaction with kernel space
• Hardware register dependencies
Specific Elements
a) Module Components:
• .ko (Kernel Object) file as the runtime component
• Relationship between source (.c) and compiled (.ko) files
b) Hardware Interface:
• ARM system registers (CNTFRQ, EL2, MIDR_EL1, etc.)
• Access paths from modules to registers
c) Detection Flow:
• Data collection paths
• Analysis paths
Technical Details to Highlight
• Kernel Module Interface
• ARM Architecture-specific components
• VM Detection mechanisms
• System register access patterns
The detection flow sequence
Keep the abstraction level focused on the system architecture while maintaining details about the ARM-specific components and detection mechanisms. This will help other engineers understand both the high-level structure and the low-level technical implementation.
Remember to indicate that this is a kernel-level project with direct hardware access requirements, which is crucial for understanding the security and privilege implications of the system.