In part 2 of my macOS security internals series, I demystify System Integrity Protection (SIP), breaking down how the kernel enforces Apple-signed entitlements over POSIX root privileges, the mechanics of rootless.conf, and why the hardware always has the final veto.

Includes a small C program to audit your own CSR bitfield configuration.

Read the full deep dive here:
https://bytearchitect.io/macos-security/Apple-defences-SIP-and-APFS-(cont'd)/

#macOS #infosec #cybersecurity #ReverseEngineering #XNU #AppleSecurity #Kernel #OSInternals #Rootless

🌘 Apple Silicon 與虛擬機:突破雙 VM 限制
➤ 深入 macOS 核心,手動解除虛擬化配額限制的技術實戰
https://khronokernel.com/macos/2023/08/08/AS-VM.html
這篇文章揭示了 Apple Silicon 架構下 macOS 限制同時運行僅能開啟兩臺虛擬機(VM)的技術底層。作者透過深入分析 XNU 內核與 `Virtualization.framework`,發現此限制源於內核層級的 `hv_apple_isa_vm_quota` 變數。他詳細說明瞭如何透過安裝開發版內核(Development Kernel)、配置自定義核心集合(Kernel Collection),以及利用 `boot-args` 參數覆蓋內核限制,成功繞過 Apple 的虛擬機配額,為開發人員與研究人員提供了擴展 VM 數量的實作方案。
+ 這簡直是 macOS 開發者的福音!終於不需要為了測
#macOS Internals #Apple Silicon #Virtualization #Kernel Development #XNU
Apple Silicon and Virtual Machines: Beating the 2 VM Limit

macOS Internals Deep Dive Building a Development Kernel Collection Configuring our Mac to boot the Development Kernel Collection Putting our machine to work! When did Apple grace us with this feature? Undoing our work for OS updates Closing Thoughts

Mykola’s blog
Anyone whom have contributed to #darwin or #xnu whom is outside of #apple who can shed some light on the process?

Here are some things that one can add to the analysis of the MacOS TCP timeout clock freeze bug.

The code for calculate_tcp_clock() in XNU was changed in May 2025. Older versions of this function (e.g. in xnu-11417) worked quite differently and wouldn't have stopped ticking the clock at 32-bit unsigned integer wraparound.

None of #NetBSD, #FreeBSD, nor #OpenBSD share this exact way of doing TCP timeout processing with #XNU.

FreeBSD does not have a tcp_now and works off the global 32-bit ticks variable. OpenBSD effectively works off the kernel's system clock, too, but with a randomized offset, and does 64-bit unsigned modular arithmetic. NetBSD uses a distinct 32-bit unsigned tcp_now counter that it simply increments by 1 at regular intervals, and does modular arithmetic subtraction.

https://photon.codes/blog/we-found-a-ticking-time-bomb-in-macos-tcp-networking

#TCP #MacOS

We Found a Ticking Time Bomb in macOS TCP Networking - It Detonates After Exactly 49 Days - Photon Blog

Photon powers conversational AI agents on iMessage, WhatsApp, Telegram, and more. Open-source Spectrum framework + SDK for seamless agent interactions.

This neighborhood belongs to us!! (the macos kernel)

#xnu #macos #osdev

Finally got x86_64 #XNU for #macOS 15.6 built into some kind of a binary on my M4 MBA.

Now I’m not quite sure how to boot the kernel in a VM… any ideas?

#Apple #Tech #Technology

@nico @iorsh

#XNU 😉
Sorry.
I run macOS natively, on a mac 😁

We call this kernel saunters: How Apple rearranged its #XNU with exclaves
Based on the references to exclaves in XNU source for #Apple's M4 chips and the A18 used in iPhone 16, source argues exclaves form the basis of a significant redesign of XNU's security model.
"In iOS 18, exclaves refer to specific resources that are separated from the main iOS kernel (XNU) and cannot be accessed by it, even if the kernel is compromised," the researcher explained in a document.
https://www.theregister.com/2025/03/08/kernel_sanders_apple_rearranges_xnu/
We call this kernel saunters: How Apple rearranged its XNU core with exclaves

: iPhone giant compartmentalizes OS for the sake of security

The Register
Asahi Linux Runs into Issues with M4 Support » Linux Magazine

Due to Apple Silicon changes, the Asahi Linux project is at odds with adding support for the M4 chips.

Linux Magazine
#Apple Darwin #OS and #XNU #Kernel Deep Dive - Tracing its evolution from Mach and #BSD roots to powering #macOS #iOS and Apple Silicon. This post explores the hybrid kernel’s design, its adaptation to new hardware and security paradigms, and why XNU remains a uniquely resilient and scalable foundation for Apple’s platforms https://tansanrao.com/blog/2025/04/xnu-kernel-and-darwin-evolution-and-architecture/