#
#asahi-re · 2022-10-18 13:43
sveni'd start with xarts anyway
#asahi-re · 2022-10-18 13:43
amarioguy2given that when macOS is booted fully, SKS is very spammy due to how data protection works
#asahi-re · 2022-10-18 13:42
amarioguy2probably also going to mess with using single user mode for tracing
#asahi-re · 2022-10-18 13:42
amarioguy2sven - this weekend i'll more thoroughly document those endpoints I'm a lot more free this weekend than i was last time
#asahi-re · 2022-10-16 15:14
amarioguyah that makes sense
#asahi-re · 2022-10-16 15:09
sventhe kernel driver is probably just going to expose a few ioctls to talk to the various endpoints
#asahi-re · 2022-10-16 15:08
svenmost of sep will be a userspace daemon fwiw
#asahi-re · 2022-10-16 15:06
amarioguy(though that is a bit lame :P, still w/e would be best for the project)
#asahi-re · 2022-10-16 15:01
amarioguy(though to be fair i can always just contribute to docs and have someone else write the driver for safety anyways)
#asahi-re · 2022-10-16 14:34
amarioguydon't want to taint myself or anything
#asahi-re · 2022-10-16 14:34
amarioguyi realize it may sound dumb but erring on the side of caution really
#asahi-re · 2022-10-16 14:33
amarioguyjust to clarify, does running strings count as "binary RE" in the context of this project
#asahi-re · 2022-10-16 14:33
amarioguyalright i'll verify that when i can
#asahi-re · 2022-10-16 14:32
svenit's been a while
#asahi-re · 2022-10-16 14:32
sveni through it was xart, but dunno
#asahi-re · 2022-10-16 14:31
amarioguy(that was an endpoint name that popped up in the tracer)
#asahi-re · 2022-10-16 14:30
amarioguyah gotcha, "xarm" isn't the endpoint for that?
#asahi-re · 2022-10-16 14:29
svenand it should be relatively simple
#asahi-re · 2022-10-16 14:29
sventhat's the one that uses the gigalocker file and if you don't reply to its requests the key store won't even appear
#asahi-re · 2022-10-16 14:29
svenat first you'll have to figure out the xart endpoint anyway
#asahi-re · 2022-10-16 14:28
sveni'd certainly start there
#asahi-re · 2022-10-16 14:28
amarioguybut probably will stick to release tracing ngl if it's not that different it's probably just better
#asahi-re · 2022-10-16 14:27
amarioguyso idk if you want to run it yourself or smth
#asahi-re · 2022-10-16 14:27
amarioguyrequirement*
#asahi-re · 2022-10-16 14:27
amarioguythough idk if strings runs afoul of the "binary RE" clean-room rq
#asahi-re · 2022-10-16 14:25
amarioguystill i can run strings on both dev/release applesepkeystore to see if there's a major difference?
#asahi-re · 2022-10-16 14:25
amarioguyoh i see - probably just gonna stick to release
#asahi-re · 2022-10-16 14:24
svenit's already pretty verbose
#asahi-re · 2022-10-16 14:24
amarioguyat minimum the sep key store driver might be more verbose?
#asahi-re · 2022-10-16 14:23
svennot sure how that would help really
#asahi-re · 2022-10-16 14:23
amarioguybtw i've had the idea of MMIO tracing using that dev kernelcache that apple accidentally sent out in the 12.3.1 IPSW
#asahi-re · 2022-10-16 14:22
amarioguyyea i should give that a look over again
#asahi-re · 2022-10-16 14:21
svenit's more or less explained in that apple security whitepaper iirc
#asahi-re · 2022-10-16 14:20
amarioguyah that makes sense
#asahi-re · 2022-10-16 14:20
svenand SEP will send requests like get(UUID), set(UUID, payload), delete(UUID)
#asahi-re · 2022-10-16 14:19
svengigalocker is literally a rather simple key-value store for SEP
#asahi-re · 2022-10-16 14:19
amarioguyor is that just a random UUID generated per req
#asahi-re · 2022-10-16 14:19
svenyeah. the UUID is just the key
#asahi-re · 2022-10-16 14:19
amarioguysven: thanks! for UUID is that the UUID of the request being sent over the ASC mailbox?
#asahi-re · 2022-10-16 14:11
svenah, lol, now I remember. I tried to start learning rust with that gigalocker thing :D https://f.svpe.de/b5f8e413e3ae6d2c5ea3d1b5635e6bd329a53ca1bc5c8d208248f396463726e1_gigalocker.rs.txt
#asahi-re · 2022-10-16 14:08
svenand the crc is CRC-32/ISO-HDLC
#asahi-re · 2022-10-16 14:08
svenamarioguy: ^--
#asahi-re · 2022-10-16 14:08
svenand it's essentially a key-value store that SEP updates
#asahi-re · 2022-10-16 14:07
sventhe file always contains 170 entries
#asahi-re · 2022-10-16 14:07
svenand the last 0x6000 bytes of the file are padding
#asahi-re · 2022-10-16 14:07
svenmax payload size is 0x8000 and each header+payload is padded to 0x9000
#asahi-re · 2022-10-16 14:07
svener. no
#asahi-re · 2022-10-16 14:06
svenmax payload size is 0x9000
#asahi-re · 2022-10-16 14:06
sven^-- that should be a single entry in the file
#asahi-re · 2022-10-16 14:06
sven0x22 - end: data

plus ›