#asahi-re · 2023-01-01 20:05
amarioguybtw - hi all will be less flaky hopefully this year#asahi-re · 2023-01-01 20:04
amarioguyBaboon: yes - build the kernelcache with kmutil then set it as the custom boot object#asahi-re · 2022-12-03 01:54
amarioguyto match up the xnu "crc" with the GL CRC#asahi-re · 2022-12-03 01:53
amarioguythink i'll want to look at the gigalocker file i have very closely tomorrow#asahi-re · 2022-12-03 01:50
amarioguy(the upper two bytes i mean)#asahi-re · 2022-12-03 01:50
amarioguyon the tracer side though, the actual mailbox message has that two byte CRC at the start#asahi-re · 2022-12-03 01:50
amarioguythen it logs as "saving" the xart with a 2 byte crc#asahi-re · 2022-12-03 01:49
amarioguyhuh so during the unlock sequence after the first unlock, XNU logs the replies on the AP side with 0xffff in the upper two bytes#asahi-re · 2022-12-03 01:37
amarioguysure hopes i'm doing this mmio tracing thing right#asahi-re · 2022-12-03 01:36
amarioguy(yes i am just dumping what i find as i find it how did you know :) )#asahi-re · 2022-12-03 01:36
amarioguyokay so one of the absolute most verbose sep operations is pfk_data_unwrap and it's associated reply in the tracer#asahi-re · 2022-12-03 01:26
amarioguy(or rather right after SEP changes the lock state)#asahi-re · 2022-12-03 01:26
amarioguyLOL setting a breakpoint while the framebuffer comes on causes snow effects like old TVs#asahi-re · 2022-12-03 01:19
amarioguyalso apparently single user mode data accesses do not trigger SEP - likely because of how it's decrypted on the fly through the storage controller ephemeral key#asahi-re · 2022-12-03 00:28
amarioguyokay so the CRCs that XNU is saying the lockers have don't match up at all with the gigalocker CRCs...#asahi-re · 2022-12-03 00:03
amarioguyor maybe i have this all wrong and AP just queries the locker on demand whenever it needs to decrypt it#asahi-re · 2022-12-03 00:02
amarioguyperhaps those have smth to do with it#asahi-re · 2022-12-03 00:02
amarioguystrings on apple sep manager talk about "OOL buffers"#asahi-re · 2022-12-03 00:02
amarioguyrn i'm just trying to figure out how SEP knows where the gigalocker is because i'm not seeing any shared writes #asahi-re · 2022-12-03 00:02
amarioguyah i see#asahi-re · 2022-12-02 23:56
amarioguyis a bit nervous#asahi-re · 2022-12-02 23:56
amarioguyi'm not quite sure ngl seems like the read commands in m1n1 only apply to main system memory so unless there's a translation func or smth a bit lost#asahi-re · 2022-12-02 23:56
amarioguybut i mean more when you're broken into the target and need to read the region#asahi-re · 2022-12-02 23:56
amarioguylike i mean at your command, obviously the tracer will update the view of shmem if it changes#asahi-re · 2022-12-02 23:55
amarioguysven: kind of a dumb question but...how exactly do you read a DART shmem region in the m1n1 hv debugger?#asahi-re · 2022-12-02 23:52
amarioguyread that writeup loved it#asahi-re · 2022-12-02 23:52
amarioguyeiln: you're doing great tho#asahi-re · 2022-12-02 23:52
amarioguyyea geohot is not what i'd call a paragon of ethical work...#asahi-re · 2022-12-02 19:13
amarioguyalright time for decoding random endpoints episode 10#asahi-re · 2022-12-02 18:55
amarioguywhich ends very badly wrt any restore attempts#asahi-re · 2022-12-02 18:55
amarioguynuking this means iboot won't be able to load the devicetree with the right properties#asahi-re · 2022-12-02 18:55
amarioguydsharshakov: here's the short of it - the NOR region's name is called "SysCfg" it's what holds the serial number, device color, calibration data, etc (I haven't looked at it myself but that's part of it)#asahi-re · 2022-11-29 14:14
amarioguyeiln: nice#asahi-re · 2022-11-28 22:03
amarioguyeiln: wait you're working on the ANE support now?#asahi-re · 2022-11-12 21:06
amarioguygot the gl file#asahi-re · 2022-11-12 21:06
amarioguyyes!!#asahi-re · 2022-11-12 20:48
amarioguyah fair, probably should try from linux#asahi-re · 2022-11-12 20:47
amarioguyprobably should try to do it from recoveryos or smth#asahi-re · 2022-11-12 20:47
amarioguyi was actually trying to copy the gigalocker from the xart partition (so i can verify some of the init things) but macos kept denying the operation even with sudo permissions :/#asahi-re · 2022-11-12 20:47
amarioguyah right#asahi-re · 2022-11-12 20:45
amarioguythe messages definitely do not contain things like the CRC of the lockers - the fact that SEP can validate it without it in the message almost certainly implies there's a shmem write on AP side with the locker#asahi-re · 2022-11-12 20:44
amarioguydamn probably going to need to write a kext soon that intercepts *every* shared mem write from AP side#asahi-re · 2022-11-11 10:46
amarioguyyep, looked at the strings output for the AppleTrustedAccessory kext - it's the one that does the pairing on macos side#asahi-re · 2022-11-11 03:58
amarioguydefinitely going to want to trace what this EP does if we want external touchid to work under linux#asahi-re · 2022-11-11 03:57
amarioguyi can all but confirm that sep endpoint 0x18/'stac' is linked to AppleTrustedAccessory#asahi-re · 2022-11-11 03:56
amarioguymy guess is that this kext's the one that manages the Touch ID external keyboard#asahi-re · 2022-11-11 03:56
amarioguyduring sep tracing, xnu does make mention of a so called "AppleTrustedAccessory" kext (at least on my studio here)#asahi-re · 2022-11-09 10:59
amarioguymillenialhacker: at least you get a coproc fw to analyze, the one i'm working on is encrypted :D#asahi-re · 2022-11-04 22:03
amarioguy(probably being far too naive lol but i do enjoy doing this work for community benefit)#asahi-re · 2022-11-04 22:03
amarioguyalright another free weekend another week to do more sep work :D