Not

Hacker News!

Beta
Home
Jobs
Q&A
Startups
Trends
Users
Live
AI companion for Hacker News

Not

Hacker News!

Beta
Home
Jobs
Q&A
Startups
Trends
Users
Live
AI companion for Hacker News
  1. Home
  2. /Story
  3. /A Reverse Engineer's Anatomy of the macOS Boot Chain and Security Architecture
  1. Home
  2. /Story
  3. /A Reverse Engineer's Anatomy of the macOS Boot Chain and Security Architecture
Nov 22, 2025 at 3:54 PM EST

A Reverse Engineer's Anatomy of the macOS Boot Chain and Security Architecture

19h
25 points
1 comments

Mood

informative

Sentiment

neutral

Category

research

Key topics

MacOS

Boot Chain

Security Architecture

Reverse Engineering

Discussion Activity

Moderate engagement

First comment

3h

Peak period

7

Hour 9

Avg / period

2.9

Comment distribution43 data points
Loading chart...

Based on 43 loaded comments

Key moments

  1. 01Story posted

    Nov 22, 2025 at 3:54 PM EST

    1d ago

    Step 01
  2. 02First comment

    Nov 22, 2025 at 7:18 PM EST

    3h after posting

    Step 02
  3. 03Peak activity

    7 comments in Hour 9

    Hottest window of the conversation

    Step 03
  4. 04Latest activity

    Nov 23, 2025 at 11:20 PM EST

    3h ago

    Step 04

Generating AI Summary...

Analyzing up to 500 comments to identify key contributors and discussion patterns

Discussion (1 comments)
Showing 43 comments
ethin
1d ago
4 replies
This is a really interesting deep dive but why does the article hedge so much? For example, in the first few sections it says things like "... typically reveals the following sequence" or "The Boot ROM sets a specific control bit in the AES configuration register (e.g., AES_CMD_USE_GID)", which makes it sound like the author wasn't actually sure if any of this was accurate and was guessing.
kmeisthax
1d ago
4 replies
I smell AI writing assistance. Which is a shame because this is otherwise very good and well-collated information about Apple's security. But AI loves to use bullet point lists just for the hell of it and it makes the information here smell way less reliable than it actually is.

I'm also not sure if it's 100% accurate. My (possibly wrong) understanding of the guarded execution feature is that each GL is paired with a normal ARM EL. i.e. GL2 constrains EL2, GL1 constrains EL1, etc. XNU lives in EL2 so SPTM lives in GL2, and GENTER/GEXIT move you between ELx and GLx through a secure call vector. In contrast, this guide refers to GL0 being the "standard XNU kernel context" even though XNU lives in EL2 on macOS. Furthermore, on device OSes (iOS/iPadOS/etc) they put a second kernel in GL1 and various enforcement policy tools (i.e. code signing policy, camera indicator policy) in GL0[0]. So I'm not sure how macOS putting XNU in GL0 makes sense?

[0] XNU source refers to this concept as an Exclave, which itself can be grouped with other isolated resources as a Conclave.

VogonPoetry
1d ago
1 reply
Perhaps using AI assistance is good OPSEC. It could help to shield the author from stylometry or author profiling.
nicolas_17
1d ago
And then the author posts it himself to Hacker News. Nah, that's not opsec.
nicolas_17
1d ago
3 replies
There's many factual errors in this AI slop.

For example, it says quite unambiguously that the bootloader is encrypted directly with the GID key (loading the LLB ciphertext into the AES engine), but that's not how it works, the GID key is used to decrypt the LLB's KBAG into an AES key:IV pair and that is used to decrypt the LLB.

More:

> The behavior of the Boot ROM changes fundamentally based on the "Security Domain" fuse. > > Production (CPFM 01):

Security Domain (SDOM) is a different thing than CPFM. And production devices have CPFM 03.

> CHIP (Chip ID): Identifies the SoC model (e.g., 0x8101 for M1).

The M1 SoC is 0x8103.

Due to Brandolini's Law I will not continue to list everything else that is wrong here...

jjtech
1d ago
1 reply
All of these errors have now been stealth-corrected.

New strategy discovered: Ask LLM to write article, nerdsnipe HN into correcting it, feed corrections back into LLM until people stop complaining

ethin
1d ago
1 reply
Yeah, definitely not at all a fan of stealth editing.

I suspected LLM rewriting or generation but I don't possess enough knowledge into how the Apple pre-boot environment works to make an accurate judgement on the accuracy of the post. But I definitely had very strong suspicions of LLM influence with all the bullet lists and hem-hawing the post does; I would expect that someone who successfully reverse engineered the boot chain this thoroughly wouldn't need to hedge anything but Apple's rationale on why they did things. But maybe I'm too overly focused on details.

nicolas_17
1d ago
That's exactly how LLMs are so effective: the text looks impressive to people who don't possess enough knowledge to make an accurate judgement. Meanwhile actual researchers with Apple experience found clear errors on a quick skim.

The large amount of rewriting being done within 5 minutes is another sign of LLM...

matu3ba
20h ago
Can you recommend a more factual and complete overview on Apple security architecture and bootchain than this bug-ridden article? I'm interested in hardware security (models).
nicolas_17
1d ago
They just fixed the KBAG thing.

This quickly went from Brandolini's Law to Cunningham's Law. Learn how Apple's boot process works by explaining it wrong and waiting for people to correct you!

bri3d
1d ago
1 reply
I think the article is being stealth edited which is a bit annoying; its explanation of guarded execution is now closer to yours, which I think is accurate.
kmeisthax
1d ago
I genuinely hope I'm not being used as a reference for how Apple device security works as I have absolutely NO credentials for that beyond "read a lot of posts from people on the Asahi Linux project"
inkyoto
1d ago
1 reply
> I smell AI writing assistance. Which is a shame […]

I have met multiple brilliant, very bright, and talented people (mathematicians, physicists, doctors) who excel at what they know and do, yet immensely struggle to spell, write, or both. There are also people who do not like to write (whatever the reason is).

GenAI has been a great boon for such a type of person as it dissolves their struggle – they convey the idea to the machine (however awful the scribe is) and GenAI handles the grammar and style.

Granted, it is different from «hey, GenAI pet, write me a blog post on XYZ».

nicolas_17
1d ago
This article is definitely the latter, not just "fixing grammar".
QuantumNomad_
1d ago
2 replies
> e.g., AES_CMD_USE_GID

Sometimes people mix up “i.e.” (“id est”; “that is”) and “e.g.” (“exempli gratia”; “for example”).

Of course, only the author knows if this case was a mix up, or if they really wrote what they meant.

jshier
1d ago
1 reply
For anyone looking for a more memorable mnemonic, learned them as "I explain" and "example given".
DrammBA
1d ago
I like "in essence" and "examples given"
deaux
23h ago
Sometimes? Even on HN, where people are in the top 20% of "not making writing mistakes", compared to the general population, I see more people using i.e. wrong than I see people using it right. And sure descriptivism so now it just means that blahblah, it sucks because we already have e.g. for that and it makes i.e. pointless.
hu3
1d ago
2 replies
It's AI assitance. If you search for "e.g." the page lights up like a christmas tree. There's 90 appearances if "e.g."

I have never seen this frequency before.

potsandpans
1d ago
1 reply
Damn is that a new signal? I use "e.g." all the time. Now I can't use the em dash or that I suppose or risk being called out for ai gen content
hu3
1d ago
I use it too but 106 "e.g."s in a single page? That's how many there are now. Not to mention it's full of inconsistencies and being edited multiple times.

I think the author might have left an LLM agent in a loop fixing it whenever HN points out an error or finds something new to add on the internet.

nicolas_17
1d ago
Or maybe fully AI-generated. There's many factual errors in the article too.
EPWN3D
1d ago
1 reply
It's basically all AI-generated. There are significant omissions and errors for any flow that hasn't previously been reversed engineered. The launchd stuff has details that are just wrong.
ethin
15h ago
1 reply
Do you know of a much more accurate deep dive? I'd love to learn all this from a source that is actually trustworthy/authentic.
nicolas_17
11h ago
If you're new to the topic, this is a good place to start https://support.apple.com/en-lamr/guide/security/welcome/web
Brian_K_White
1d ago
1 reply
Can't seem to load it. FF on Android. SSL problem?
wpm
1d ago
Working ok for me
quantummagic
1d ago
2 replies
Will this enable someone who buys an apple laptop to boot directly into a third-party OS, from a thumb drive? Last I heard, they were still too locked down to allow it.
bigyabai
1d ago
1 reply
Apple Silicon doesn't support UEFI, so no.
quantummagic
1d ago
1 reply
Obviously, this article might not result in any concrete improvements for Apple owners, but why do you say that UEFI the only way to boot to a thumb drive?
pram
1d ago
Boot loaders like GRUB etc only work with UEFI/BIOS to state the obvious.
nicolas_17
1d ago
1 reply
The bootloader doesn't even have a USB stack capable of reading external storage.
astrange
8h ago
1 reply
If you have kernel access you can do an OS-to-OS takeover from the original OS. That's how MkLinux worked on old Macs.
nicolas_17
7h ago
1 reply
Or you can just sign your Linux kernel from macOS recovery mode, which is what the Asahi Linux installer does already. No need for weird hacks.

You also don't have "kernel access" in macOS. After boot, the memory region corresponding to the macOS kernel is marked as read-only at the memory controller level.

astrange
3h ago
> Or you can just sign your Linux kernel from macOS recovery mode, which is what the Asahi Linux installer does already. No need for weird hacks.

Does that work for USB boot?

> You also don't have "kernel access" in macOS. After boot, the memory region corresponding to the macOS kernel is marked as read-only at the memory controller level.

You can turn that off from recovery mode. (see `bputil`) It's needed to use dtrace.

Genbox
21h ago
1 reply
The security of the Apple ecosystem is miles ahead of others. Every time I reverse engineer some component of their OS, it is very different from what I've seen before. I always find myself surprised by their thoughtfulness and engineering craft.

Recently I've taken on their code signing component. The concepts they've created, such as identifying applications by their "designated requirements" is a stroke of genius. It makes the system completely stateless and capable of almost anything without auxiliary data structure or additional code.

I've seen other engineering teams try and fail at building something similar, and never with such powerful simplicity.

hulitu
19h ago
2 replies
> The security of the Apple ecosystem is miles ahead of others.

cough iMessage, hardware backdoors cough

Genbox
18h ago
1 reply
That's a bit disingenuous. Can you substantiate your claims?
bigyabai
10h ago

  "In this case, the federal government prohibited us from sharing any information," the company said in a statement. "Now that this method has become public we are updating our transparency reporting to detail these kinds of requests."
- Apple addressing Senator Wyden's accusation of Push Notification backdoors (https://www.macrumors.com/2023/12/06/apple-governments-surve...)

  “At Apple, we are always working to defend our users against even the most complex cyberattacks. The steps we’re taking today will send a clear message: in a free society, it is unacceptable to weaponise powerful state-sponsored spyware against those who seek to make the world a better place,”
- Quote from Apple's head of security engineering on the lawsuit Apple eventually dismissed against NSO Group (https://www.theguardian.com/technology/2021/nov/23/apple-sue...)

  "The app in question is called “LassPass Password Manager” and lists Parvati Patel as the developer.  The app attempts to copy our branding and user interface..."
- Lastpass telling users that a trojan horse broke through Apple's manual review process (https://blog.lastpass.com/posts/warning-fraudulent-app-imper...)
astrange
8h ago
There are not any hardware backdoors.
int3trap
1d ago
This is top tier. Well written and insanely detailed.
JSR_FDED
1d ago
Incredible article. int summarizes it well:

Final Thought: macOS is no longer just a Unix system. It is a distributed system running on a single die, governed by a hypervisor that doesn't exist in software. The kernel is dead; long live the Monitor.

wanderingbit
1d ago
This is top 10 for greatest HN deep dives. I learned something new almost every sentence, and could not complete it on my first attempt.
View full discussion on Hacker News
ID: 46018158Type: storyLast synced: 11/23/2025, 12:07:04 AM

Want the full context?

Jump to the original sources

Read the primary article or dive into the live Hacker News thread when you're ready.

Read ArticleView on HN

Not

Hacker News!

AI-observed conversations & context

Daily AI-observed summaries, trends, and audience signals pulled from Hacker News so you can see the conversation before it hits your feed.

LiveBeta

Explore

  • Home
  • Jobs radar
  • Tech pulse
  • Startups
  • Trends

Resources

  • Visit Hacker News
  • HN API
  • Modal cronjobs
  • Meta Llama

Briefings

Inbox recaps on the loudest debates & under-the-radar launches.

Connect

© 2025 Not Hacker News! — independent Hacker News companion.

Not affiliated with Hacker News or Y Combinator. We simply enrich the public API with analytics.