Cyber Security News

Breaking macOS Apple Silicon Kernel Hardening: KASLR Exploited

Security researchers from Korea University have successfully demonstrated a groundbreaking attack, dubbed SysBumps, which bypasses Kernel Address Space Layout Randomization (KASLR) in macOS systems powered by Apple Silicon processors.

This marks the first successful breach of KASLR on Apple’s proprietary ARM-based architecture, revealing significant vulnerabilities in the kernel hardening mechanisms of modern macOS systems.

KASLR is a critical security feature designed to randomize the memory layout of the kernel, making it difficult for attackers to predict the location of key system functions or data structures.

Apple has fortified KASLR in macOS for Apple Silicon by implementing kernel isolation, a technique that separates user-space and kernel-space memory layouts to mitigate side-channel attacks.

Despite these measures, the SysBumps attack effectively bypasses these defenses by exploiting speculative execution vulnerabilities in system calls.

Exploiting Speculative Execution to Break Kernel Isolation

The SysBumps attack leverages speculative execution, a performance optimization feature in modern processors, to infer kernel memory addresses.

By exploiting Spectre-type vulnerabilities in certain macOS system calls, attackers can manipulate branch predictors to induce speculative execution of invalid inputs.

This transient execution accesses kernel addresses, leaving detectable traces in the Translation Lookaside Buffer (TLB), which attackers then analyze to determine the validity of specific addresses.

The attack employs a prime+probe technique on the TLB as a side channel to monitor state changes.

By measuring access latency, attackers can distinguish between valid and invalid kernel addresses.

This process ultimately allows them to deduce the base address of the kernel, effectively breaking KASLR.

Remarkably, SysBumps achieves an average accuracy of 96.28% and completes its attack within just three seconds across various M-series processors and macOS versions.

Mitigation Strategies

The discovery of SysBumps underscores a critical weakness in existing kernel isolation techniques implemented in macOS.

By bypassing KASLR, attackers gain the ability to exploit other vulnerabilities more easily, potentially compromising system integrity and exposing sensitive data.

To address this vulnerability, researchers have proposed several mitigation strategies:

  • Partitioning the TLB between user-space and kernel-space processes.
  • Modifying TLB behavior for invalid addresses to prevent side-channel leakage.
  • Reordering code execution paths to eliminate speculative execution of sensitive instructions.

Apple has acknowledged the vulnerability and is investigating its root cause.

Affected systems include multiple generations of Apple Silicon processors (M1 through M3 series) running macOS versions 13.1 through 15.1.

Users are strongly advised to update their systems with the latest security patches as they become available.

The SysBumps attack highlights the ongoing challenges in securing modern computing systems against advanced side-channel attacks.

As speculative execution continues to be exploited for bypassing critical defenses like KASLR, balancing performance optimizations with robust security measures remains an urgent priority for technology companies like Apple.

This research serves as a reminder of the complexities involved in safeguarding cutting-edge hardware and software architectures from ever-evolving threats.

Investigate Real-World Malicious Links & Phishing Attacks With Threat Intelligence Lookup - Try for Free

Aman Mishra

Aman Mishra is a Security and privacy Reporter covering various data breach, cyber crime, malware, & vulnerability.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

1 day ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

1 day ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

1 day ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

1 day ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

1 day ago