TL;DR
MES-Attacks introduce a new class of software-controlled covert channels that exploit standard Operating System (OS) synchronization primitives—like mutexes, semaphores, and file locks—to leak data. By utilizing "closed" resources shared only between malicious processes, these attacks achieve high transmission rates (up to 13 kb/s) with extremely low error rates (<1%), even across sandbox and virtual machine (VM) boundaries.
What Problem Does This Paper Address?
Covert channels are secret communication paths that allow two processes to exchange information in violation of a system's security policy. Traditionally, these are classified into hardware-based (e.g., exploiting CPU caches) or software-based (e.g., exploiting shared system variables).
The authors identify two major weaknesses in existing methods:
- Hardware Dependency: Cache-based attacks require deep knowledge of specific hardware architecture and can often be mitigated by hardware-level isolation.
- Noise and Interference: Most software covert channels use "open" shared resources accessible to all users. This creates significant "noise" when legitimate users access those resources, leading to high Bit Error Rates (BER).
MES-Attacks aim to create a hardware-agnostic, software-level channel that is both high-speed and resilient to noise by exploiting the very mechanisms the OS uses to manage concurrency.
Methods
The researchers exploit Mutual Exclusion and Synchronization Mechanisms (MESM). These are the "traffic lights" of an OS, ensuring that multiple processes don't crash into each other when accessing shared resources.
The attack involves two malicious processes: a Trojan (which has access to secret data) and a Spy (which can communicate with the outside world). They use two primary strategies:
- Contention-based (Mutual Exclusion): The Trojan and Spy compete for a "closed" resource (like a specific file lock or a Mutex). To send a '1', the Trojan holds the resource for a long time; to send a '0', it releases it quickly or enters a sleep state. The Spy measures how long it takes to acquire the resource to deduce the bit.
- Cooperation-based (Synchronization): This is a novel approach where the processes work together. The Spy waits for a specific signal (e.g., a Windows
EventorTimer). The Trojan triggers the signal after a specific delay. Because the Spy is "awakened" directly by the Trojan's action, the channel is much cleaner and faster than competitive contention-based channels.
The authors implemented these attacks using various primitives across Windows and Linux, including Event, Timer, Mutex, Semaphore, and flock. They also explored multi-bit symbol encoding, using four different timing intervals to transmit 2 bits of data at once (e.g., 15µs for '00', 65µs for '01', etc.).
Datasets
As a systems security paper, the authors do not use traditional "datasets." Instead, they evaluate their attacks across three experimental scenarios:
- Local: Both processes running on the same OS instance.
- Cross-Sandbox: Processes separated by security silos (using Firejail on Linux and Sandboxie on Windows).
- Cross-VM: Processes running in different Virtual Machines (evaluated on Hyper-V and VMware Workstation Pro).
Key Insights and Ideas
- The Power of "Closed" Resources: Unlike previous attacks that used public system resources, MES-Attacks use resources negotiated privately between the Trojan and Spy. This "closed" nature makes the channel nearly invisible to other processes and drastically reduces environmental noise.
- Cooperation > Contention: Most covert channels are "noisy" because they rely on processes fighting over resources. By using synchronization (where one process explicitly waits for another), the authors created a "cooperative" channel that is more efficient and less likely to be disrupted by system scheduling.
- Bit Independence: In their cooperative model, a timing error in one bit does not cascade to subsequent bits. This makes the channel much more robust than cache-based "Prime+Probe" attacks, where one missed cycle can desynchronize the entire stream.
Key Results
The performance of MES-Attacks significantly outperforms many existing software-based channels:
- Transmission Rate (TR): Reached a peak of 13.105 kb/s in local Windows environments using
Eventobjects. - Reliability: The Bit Error Rate (BER) remained under 1% across all tested scenarios (Local, Cross-Sandbox, and Cross-VM).
- Cross-Boundary Success:
- Cross-Sandbox: Achieved 12.383 kb/s on Windows.
- Cross-VM: Achieved 6.552 kb/s using
FileLockEXon Hyper-V. - Throughput Boost: Using 2-bit symbol encoding increased the peak transmission rate to 15.095 kb/s.
Limitations and Future Work
- VM Isolation Variations: The attack's success across VMs depends heavily on the Hypervisor. While it worked on Hyper-V (which shares certain kernel objects between the guest and host), it failed on VMware because VMware provides stricter isolation for those specific objects.
- Object Discovery: Currently, the attacker must know the name or handle of the shared object (e.g., a handle generated by
wininit.exe). The authors suggest that future work should focus on automating the discovery of these shared "multiplexed" objects. - Defense Difficulty: Because these attacks use fundamental OS functions required for normal program execution, they are incredibly difficult to block without severely degrading system performance. Future work is needed to develop detection mechanisms that can distinguish between legitimate synchronization and malicious covert signaling.
Summary updated