2025-02-22
00:06m5zs7k_ has joined #asahi-re
00:06m5zs7k has quit [Read error: Connection reset by peer]
00:14john-cabaj has quit [Ping timeout: 480 seconds]
00:23JayBeeFOSS has joined #asahi-re
00:38JayBeeFOSS has quit [Ping timeout: 480 seconds]
00:52chrisl has joined #asahi-re
01:00chrisl has quit [Ping timeout: 480 seconds]
01:19pb17 has quit [Ping timeout: 480 seconds]
01:27pb17 has joined #asahi-re
01:28JayBeeFOSS has joined #asahi-re
01:39JayBeeFOSS has quit [Ping timeout: 480 seconds]
01:46JayBeeFOSS has joined #asahi-re
01:56JayBeeFOSS has quit [Ping timeout: 480 seconds]
02:02chrisl has joined #asahi-re
02:09HitokiriKincho has quit [Remote host closed the connection]
02:09HitokiriKincho has joined #asahi-re
02:10chrisl has quit [Ping timeout: 480 seconds]
02:17HitokiriKincho has quit [Ping timeout: 480 seconds]
02:21lynndotpy has quit [Quit: bye bye]
02:22lynndotpy has joined #asahi-re
02:23JayBeeFOSS has joined #asahi-re
02:26HitokiriKincho has joined #asahi-re
02:36HitokiriKincho has quit [Ping timeout: 480 seconds]
02:43HitokiriKincho has joined #asahi-re
03:06chrisl has joined #asahi-re
03:06jtingiris has quit [Quit: ZNC 1.9.1 - https://znc.in]
03:06pb17 has quit [Ping timeout: 480 seconds]
03:07jtingiris has joined #asahi-re
03:14chrisl has quit [Ping timeout: 480 seconds]
03:24pb17 has joined #asahi-re
03:54JayBeeFOSS has quit [Ping timeout: 480 seconds]
04:06JayBeeFOSS has joined #asahi-re
04:30HitokiriKincho has quit [Remote host closed the connection]
04:31ddxtanx has joined #asahi-re
04:32ddxtanx has quit [Remote host closed the connection]
04:46HitokiriKincho has joined #asahi-re
04:48JayBeeFOSS has quit [Ping timeout: 480 seconds]
04:52JayBeeFOSS has joined #asahi-re
04:58HitokiriKincho has quit [Ping timeout: 480 seconds]
05:00JayBeeFOSS has quit [Ping timeout: 480 seconds]
05:02chrisl has joined #asahi-re
05:10chrisl has quit [Ping timeout: 480 seconds]
05:13pb17 has quit [Ping timeout: 480 seconds]
05:18JayBeeFOSS has joined #asahi-re
05:34JayBeeFOSS has quit [Ping timeout: 480 seconds]
05:37pb17 has joined #asahi-re
06:00JayBeeFOSS has joined #asahi-re
06:09chrisl has joined #asahi-re
06:17chrisl has quit [Ping timeout: 480 seconds]
06:24crabbedhaloablution has quit []
06:24crabbedhaloablution has joined #asahi-re
06:36ddxtanx has joined #asahi-re
07:09chrisl has joined #asahi-re
07:13pb17 has quit [Ping timeout: 480 seconds]
07:17chrisl has quit [Ping timeout: 480 seconds]
07:37pb17 has joined #asahi-re
08:58chrisl has joined #asahi-re
09:01JayBeeFOSS has quit [Ping timeout: 480 seconds]
09:06chrisl has quit [Ping timeout: 480 seconds]
09:37yuyichao_ has quit [Ping timeout: 480 seconds]
09:42JayBeeFOSS has joined #asahi-re
09:48midou has quit [Remote host closed the connection]
09:50midou has joined #asahi-re
09:50JayBeeFOSS has quit [Ping timeout: 480 seconds]
09:53midou has quit [Remote host closed the connection]
09:54midou has joined #asahi-re
09:59midou has quit [Remote host closed the connection]
10:03midou has joined #asahi-re
10:30pb17 has quit [Ping timeout: 480 seconds]
10:36pb17 has joined #asahi-re
10:43chrisl has joined #asahi-re
10:48JayBeeFOSS has joined #asahi-re
10:51chrisl has quit [Ping timeout: 480 seconds]
11:08JayBeeFOSS has quit [Ping timeout: 480 seconds]
11:11JayBeeFOSS has joined #asahi-re
11:24yuyichao_ has joined #asahi-re
11:27JayBeeFOSS has quit [Ping timeout: 480 seconds]
11:29JayBeeFOSS has joined #asahi-re
11:45midou has quit [Ping timeout: 480 seconds]
11:52chrisl has joined #asahi-re
12:00pb17 has quit [Ping timeout: 480 seconds]
12:00chrisl has quit [Ping timeout: 480 seconds]
12:07midou has joined #asahi-re
12:25pb17 has joined #asahi-re
12:58chrisl has joined #asahi-re
13:06chrisl has quit [Ping timeout: 480 seconds]
13:15jtingiris has quit [Quit: ZNC 1.9.1 - https://znc.in]
13:17jtingiris has joined #asahi-re
13:45JayBeeFOSS has quit [Ping timeout: 480 seconds]
13:46JayBeeFOSS has joined #asahi-re
15:46pb17 has quit [Ping timeout: 480 seconds]
15:59chrisl has joined #asahi-re
16:07chrisl has quit [Ping timeout: 480 seconds]
16:21pb17 has joined #asahi-re
16:51chrisl has joined #asahi-re
16:59chrisl has quit [Ping timeout: 480 seconds]
17:17JayBeeFOSS has quit [Ping timeout: 480 seconds]
17:52chrisl has joined #asahi-re
17:57JayBeeFOSS has joined #asahi-re
17:57pb17 has quit [Ping timeout: 480 seconds]
18:00chrisl has quit [Ping timeout: 480 seconds]
18:07pb17 has joined #asahi-re
18:25chrisl has joined #asahi-re
18:33chrisl has quit [Ping timeout: 480 seconds]
18:39chrisl has joined #asahi-re
18:40yuyichao_ has quit [Ping timeout: 480 seconds]
18:41yuyichao_ has joined #asahi-re
18:43akulij has joined #asahi-re
18:47chrisl has quit [Ping timeout: 480 seconds]
18:51john-cabaj has joined #asahi-re
18:53HitokiriKincho has joined #asahi-re
19:13john-cabaj has quit [Ping timeout: 480 seconds]
19:30chrisl has joined #asahi-re
19:38chrisl has quit [Ping timeout: 480 seconds]
19:38chrisl has joined #asahi-re
19:46chrisl has quit [Ping timeout: 480 seconds]
19:50akulij has quit [Remote host closed the connection]
19:54pb17 has quit [Ping timeout: 480 seconds]
19:59pb17 has joined #asahi-re
20:10yuyichao_ has quit [Ping timeout: 480 seconds]
20:39chrisl has joined #asahi-re
20:41john-cabaj has joined #asahi-re
20:47chrisl has quit [Ping timeout: 480 seconds]
20:54Zavec has joined #asahi-re
21:00Zavec has quit [Quit: Page closed]
21:04john-cabaj has quit [Ping timeout: 480 seconds]
21:19JayBeeFOSS has quit [Ping timeout: 480 seconds]
21:19xal has quit [Quit: bye]
21:20xal has joined #asahi-re
21:31JayBeeFOSS has joined #asahi-re
21:40chrisl has joined #asahi-re
21:48chrisl has quit [Ping timeout: 480 seconds]
21:50HitokiriKincho has quit [Remote host closed the connection]
21:50HitokiriKincho has joined #asahi-re
21:58HitokiriKincho has quit [Remote host closed the connection]
21:58HitokiriKincho has joined #asahi-re
21:58pb17 has quit [Ping timeout: 480 seconds]
22:05jtingiris has quit [Quit: ZNC 1.9.1 - https://znc.in]
22:05jtingiris has joined #asahi-re
22:12pb17 has joined #asahi-re
22:14kubed has joined #asahi-re
22:14jtingiris has quit [Ping timeout: 480 seconds]
22:14kubed is now known as jtingiris
22:24Zavec has joined #asahi-re
23:09ZavecWith the caveat that I may be biting off way more than I can chew: if I were interested in trying to add touch ID support, has anybody looked at that before and can tell me if I'm way off track with what it would take?
23:09ZavecI see there's a "secure biometrics" endpoint in the HW-SEP reversing doc, and from apple's support docs it sounds like most of the fingerprint processing actually happens inside the secure enclave, and the driver for the fingerprint reader more or less just triggers the finger scan and sends that data to the enclave:
23:09Zavec`When the fingerprint sensor detects the touch of a finger, it triggers the advanced imaging array to scan the finger and sends the scan to the Secure Enclave.`
23:10ZavecWould it then be "just" a case of reversing how the driver for the sensor "triggers the imaging array" and forwards the data to the enclave enough to clean-room style implement it in a new driver, and then figuring out how to hook that up to `fprintd`?
23:12chaos_princessso, the touch id driver per se will be pretty simple, you just need some init, and then forward encrypted buffers between the sensor (on the spi bus), and sep
23:13chaos_princessnow, the sep itself is a ton of work, since there is a lot of endpoints, and various annoying bits to make it all work
23:17ZavecI see there's a commit message from amarioguy a week ago on the SEP doc saying that they're stepping back a bit but are still open to questions, and thanking WhatAmISupposedToPutHere for having done some stuff in the meantime, maybe I should ask them before I go diving into the SEP tracer
23:17chaos_princessWhatAmISupposedToPutHere is my github username :P
23:19ZavecWell in that case maybe I'll start by looking at some of the TODOs in the SEP tracer and see if I can solve one of those, just as a way of getting myself familiar with the whole thing
23:19chaos_princessgimme a sec
23:19nicolas17Zavec: iirc the fingerprint sensor and the secure enclave are not physically connected
23:19ZavecOh yeah no worries, I probably won't do much more tonight anyway because it's past midnight
23:20nicolas17instead, the macOS kernel driver reads some encrypted data from the sensor and passes it untouched to the secure enclave
23:20nicolas17the secure enclave replies with another encrypted blob which the driver passes to the sensor
23:21nicolas17that's how they communicate, code in the main CPU has to transport the data between the two while being unable to decrypt it
23:22JayBeeFOSS has quit [Ping timeout: 480 seconds]
23:22nicolas17so yeah you absolutely cannot avoid the SEP, it's impossible to eg. get a fingerprint image from the sensor, the secure enclave does all the matching
23:23chaos_princessquick guide to reversing sep:
23:24chaos_princess1. write an apfs driver, or at least enough of an apfs driver to get the gigalocker file
23:24chaos_princess2. find out how xart read/write works
23:24chaos_princess3. make sure you have backups, if you get the write wrong, you will shred all filevault-ed oses
23:25chaos_princess4. after you get xart init working, other endpoints will come up, most of them are uninteresting, but sbio is the touchid one
23:25chaos_princessdraw the rest of the owl i guess
23:25chaos_princessnicolas17: pmuch
23:26chaos_princessalso, if you don't like SKS spam, either ignore it, or boot to single user mode
23:27ZavecDang, I guess the actual first step for me is to read up on apfs/gigalocker/xart then to see how much of a pain that all will be
23:27nicolas17chaos_princess: I wonder if installing to an external volume would reduce the SKS spam... afaik you don't get SEP-tied data protection then
23:27chaos_princessmy trick to not getting sks spam is to not log in :P
23:28chaos_princesseven on log in screen you get a very large number of sep endpoints doing stuff
23:28ZavecI think putting some filters on that stuff was one of the things in the sep tracer todo anyway
23:29chaos_princessi've sent you my mess of a sep tracer, there is a SEPIgn that can be put on endpoints you don't care about
23:29chaos_princesssimple, dont put iomon on everything
23:34nicolas17chaos_princess: we should actually write down somewhere the errata for Apple-File-System-Reference.pdf :D
23:34chaos_princessZavec: warning, that doc contains errors, and some parts of it contradict each other :P
23:38ZavecWell that at least gives me something I can get started on reading (and see just what I might be getting myself into) while I wait for my new laptop to come. Won't be doing much of any tracing until that happens regardless.
23:40ZavecI'm on a M1 mbp right now, but it sounds like I need a second device for the tracing stuff with m1n1 unless I've misunderstood something
23:41chaos_princessJust needs usb
23:42chaos_princessi started re with a 2010 (iirc) intel mbp
23:42Zavecwe'll see which happens first then, between the new laptop coming (in which case I can do all this from my coffee table) or me finally cleaning off the desk where my desktop has sat unused for a year or so :P
23:43pb17 has quit [Ping timeout: 480 seconds]
23:44chaos_princessSince you have a mac, you can also generate a bunch of apfs images yourself, just with hdiutil
23:44nicolas17scenario: new Mac model comes out, it comes preinstalled with a special macOS build that is not available for download, researchers / data hoarders want a copy of it so they take a raw disk dump
23:45nicolas17but the disk image takes a lot of space because the data volume is encrypted and can't be compressed
23:46nicolas17so I wrote a script to erase the data volume from the disk image, going through the APFS object map to figure out what blocks belong to that volume
23:46JayBeeFOSS has joined #asahi-re
23:47ZavecI've never really dug into the apple ecosystem before, so there's probably lots of things like that I'll miss
23:48ddxtanx has quit [Quit: Konversation terminated!]
23:49ZavecAnyway I'm going to get some sleep, thanks both of you for all the help! And apologies in advance if this takes me a long time, still trying to find an ADHD med that actually works for me :P
23:49ddxtanx has joined #asahi-re
23:50ddxtanx has quit []
23:50ddxtanx has joined #asahi-re