Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to attach (macOS 15.0.1 & iOS 18.0.1) #1123

Open
antoniozekic opened this issue Nov 4, 2024 · 0 comments
Open

Failed to attach (macOS 15.0.1 & iOS 18.0.1) #1123

antoniozekic opened this issue Nov 4, 2024 · 0 comments

Comments

@antoniozekic
Copy link

antoniozekic commented Nov 4, 2024

Frida is unable to attach to certain daemons on macOS 15.0.1 & iOS 18.0.1.

For example:

user@Mac142 ~ % frida -n MessagesBlastDoorService 
     ____
    / _  |   Frida 16.5.6 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
   . . . .
   . . . .   Connected to Local System (id=local)
Failed to spawn: ambiguous name; it matches: MessagesBlastDoorService (pid: 10345), MessagesBlastDoorService (pid: 10337), MessagesBlastDoorService (pid: 5505)

user@Mac142 ~ % sudo frida -p 10337
Password:
     ____
    / _  |   Frida 16.5.6 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
   . . . .
   . . . .   Connected to Local System (id=local)
Failed to attach: unexpected error while starting thread (thread_create returned '(os/kern) protection failure')
user@Mac142 ~ % 

iOS 18.0.1

user@Mac142 ~ % frida -U -n MessagesBlastDoorService
     ____
    / _  |   Frida 16.5.6 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
   . . . .
   . . . .   Connected to iPad (id=c0d1ec1675485a0f3f5eeddaf665610db88f9699)
Failed to attach: unexpected early end-of-stream                        
user@Mac142 ~ % 


user@Mac142 ~ % frida -U -n MessagesBlastDoorService
     ____
    / _  |   Frida 16.5.6 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
   . . . .
   . . . .   Connected to iPad (id=c0d1ec1675485a0f3f5eeddaf665610db88f9699)
Attaching...   

On macOS SIP is disabled.

On macOS I have also tried with sudo nvram boot-args="-arm64e_preview_abi and sudo nvram boot-args="-arm64e_preview_abi thid_should_crash=0 tss_should_crash=0", however, without success, the results are same as above.

LLDB is able to successfully attach on this daemon on both macOS 15.0.1 and iOS 18.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant