Description
Is your feature request related to a problem?
I thought that the mechanism of DarkSword is fully capable of achieving RemoteCall for any App, but the pipeline is not yet mature and there are many detailed issues.
Through vibe coding, I performed extensive testing and explored a basically stable pipeline for executing RemoteCall on any App under Arm64e, using a physical iPhone SE (3rd Gen) running iOS 17.7.2. During this process, I also discovered some issues with the current pipeline.
I am opening this issue because I do not have a deep understanding of the hardware mechanisms, cannot properly explain my findings and make sure they are right; additionally, the highly experimental pipeline and messy code produced from vibe coding are not suitable for submitting a PR.
Keychain Read is what I consider a relatively interesting application of this approach, and it is universally applicable to most Apps. I've tested that this is fully possible.
![]()
Here shows the Keychain Read Experiment Results. Target: BOOK WALKER (Japan Store)
This experiment only fetch the
descriptionof the returned dictionary
You can see the whole experiment route in this branch, although the branch name is wrong and the code is really messy, also included some unneeded functions such as dynamic offset resolve and multi-thread inject:
https://github.com/DYY-Studio/lara/tree/leaf-vm-scan
Key points are listed in Addtional context.
Hope this helpful.
Describe the solution you'd like:
New Tweak Keychain Read
- Provide an App List for users to choose from
- Execute RemoteCall on the target App to read Keychain
- Remotely check if
Security.frameworkis available (viadlsym,dlopen, ordyld_imagescanning) - (remote dlsym
SecItemCopyMatchingand then use it to query) - For available Apps, execute
SecItemCopyMatchingto list all entries under the five classes - Allow selecting specific entries to read, or directly fetch the values together with
kSecReturnDatawhen executingSecItemCopyMatching
- Remotely check if
Describe alternatives you've considered:
NONE
Scope:
- UI / UX change
- New exploit capability or device support
- Tweak / package management
- Persistence or boot behavior
- Logging, diagnostics, or error handling
- Build system / CI
- Documentation
- Other
Additional context:
In my experimental vibe-coded pipeline, I found that for any arbitrary App, the following points generally need attention:
- PAC Signing Strategy for PC / LR
- The current pipeline signs PC and LR on Arm64e.
- The current pipeline do not check / clear
__DARWIN_ARM_THREAD_STATE64_FLAGS_NO_PTRAUTHflag. - In my testing, I found that both PC and LR are bare pointers without PAC during takeover.
- The apps I have tested all has
__DARWIN_ARM_THREAD_STATE64_FLAGS_NO_PTRAUTHflag. - If the contents placed into PC and LR are signed with PAC at this moment, it instead triggers a
CODESIGNING 2error, resulting in aSIGKILL. - Signed PC also make
pthread_create_suspended_npfailed with non-zero return code.
- The apps I have tested all has
- Trap Exception Triggerin
- The FAKE_LR
0x401/0x201in the current strategy triggersCODESIGNING 2(SIGKILL) on typical Apps. - Through experimentation, I found that the following two approaches are feasible:
- Misalign
- Offset a pointer of a function from the
dyld_shared_cache(such asgetpid) by0x2or0x6. - This operation triggers
EXC_BAD_ACCESS (SIGBUS), which can be reliably triggered regardless of whether PAC is valid. - This aligns with the current
EXC_BAD_ACCESShandling strategy and does not kill the process.
- Offset a pointer of a function from the
- ObjCTrapBRK
- For apps with an ObjC runtime, use
objc_exception_throwto raise aBRK. - However, this direction does not align with the current strategy and is only mentioned in passing.
- For apps with an ObjC runtime, use
- Misalign
- The FAKE_LR
Maybe more but I cannot remember.
Are you willing to help implement this?
- Yes, I can submit a PR
- I can help test
- I'm just suggesting the idea
Pre-submission checklist:
- I have searched existing issues (open and closed) and confirmed this feature has not already been requested
- This request is relevant to the latest version / commit of Lara
- I have provided sufficient detail (problem, proposed solution, scope) for a maintainer to evaluate
- I agree to communicate respectfully with the developers and understand that harassment may result in restricted support

Activity