Closed pajp closed 1 month ago
Might be related to https://blogs.oracle.com/java/post/java-on-macos-14-4 (apple broke everything related to JIT) ; Can you try to update to 14.4.1?
Yeah I think it's at least tangentially related, but unfortunately it seems 14.4.1 doesn't seem to work either. It seems calling task_for_pid() for system daemons is still completely disallowed, even if SIP is disabled. I realise this is not an issue with Frida as such, but this issue may still be useful to track here.
Following two tweets by CodeColorist and patch1t, I set the following boot args:
nvram boot-args="-arm64e_preview_abi amfi_get_out_of_my_way=1 thid_should_crash=0 tss_should_crash=0"
Since I've been doing this in a SIP disabled macOS VM, I didn't care about disabling AMFI, but it seems one can also re-sign frida-helper
to get around this. Hope this helps some of you to get your research setup up and running again :)
Something weird is going on here... While this fixed it on macOS 14.4 and 14.4.1, the same crash occurs on the latest macOS 14.5. I also tried self-signing frida-helper
and trusting that certificate for code signing, but it didn't help.
Same issue here. Does anyone find a solution? Thanks!
frida-helper also crashing on macOS 14.5 Intel despite hid_should_crash=0 tss_should_crash=0 and SIP disabled, Frida 16.3.1
The XNU source for 14.5 is released. This is what thread_set_state_allowed function looks like: I have no idea how to bypass this check.
Even after disabling SIP (csrutil disable) and enabling arm64e ABI (sudo nvram boot-args=-arm64e_preview_abi), I can't seem to attach to macOS system processes (specifically trying to attach to launchd, i.e. pid 1).
frida fails with "Failed to attach: the connection is closed":
and in ~/Library/Logs/DiagnosticReports I have a crash report from frida-helper that looks like this: