National Cyber Warfare Foundation (NCWF)login

lara for on-device iOS customization via the DarkSword kernel exploit


0 user ratings
2026-10-17 13:31:25
milo
Red Team (CNA)
"lara

lara is a Swift-based iOS customization toolbox that leverages the DarkSword kernel exploit to give researchers and owners of supported devices 17.0 through 18.7.1 read-write disk access and springboard modification features.








Toolrooootdev/lara — an iOS customization toolbox built on the DarkSword kexploit
CategoryiOS kernel exploit toolbox / on-device customization utility
Primary UseResearching post-exploitation capabilities like File Manager full disk r/w, MobileGestalt editing, and JIT enabling on your own supported iPhone
Safe UseEducational and documentary analysis for authorized security researchers, jailbreak developers, and owners experimenting with their own devices in lab environments
Telemetry Notelara requires a kernelcache download tied to your device build and performs kernel exploitation at runtime; on managed or monitored devices this activity is observable via kernel panic logs, crash reports, and MDM telemetry

lara is an open-source iOS toolbox written in Swift and published under AGPL-3.0, currently sitting at around 1,554 stars on GitHub with topics including jailbreak, darksword, ios, and customization. At its core it is a customization utility that abuses the DarkSword kernel exploit — described by the author simply as "a beautiful kexploit" — to gain elevated privileges on-device and then expose a suite of modifications that would normally require a full jailbreak toolchain. The supported surface is unusually specific: iOS 17.0 through iOS 18.7.1, plus iOS 26.0 and 26.0.1, with iOS 16.7.2 confirmed working on an A12 (iPhone XS Max) and other 16.x builds theoretically affected but untested.


What makes lara interesting from a defensive research perspective is precisely what it demonstrates about the state of iOS kernel exploitation: a single .ipa sideloaded app, distributed through an AltStore-style AltSource or direct release download, can reach kernel-level code execution on stock firmware without a tethered exploit or a full jailbreak. The README is upfront that this is offset-driven — the note that iOS 16.x is "technically affected by the exploit lara abuses" but lacks discovered offsets is a good illustration of how these toolboxes depend on per-build symbol resolution against the kernelcache, not a generic primitive.


Hardware exclusions are equally telling. The tool does not work on M5 or A19/A19 Pro silicon regardless of iOS version, which the README attributes to MTE (memory tagging extension) and, in another passage, to MIE. This is exactly the kind of hardware-enforced mitigation boundary that defenders and exploit developers alike track: the same tagging technology that neutralizes this class of use-after-free exploitation on newer SoCs is absent on the A12 through earlier A18-class devices lara targets. On M-series CPUs, results vary, and the author suggests adjusting t1sz_boot to 0x11 via the in-app Modify Offsets setting — a reference to the Translation Table Base Size register that hints at how the tool adapts to different page-table configurations.


The implemented feature list reads like a compact catalog of what kernel read-write plus springboard hooks actually enable. There is Font Overwrite, Custom Overwrite, and Card Overwrite for cosmetic changes; a File Manager advertising full disk read/write; a MobileGestalt Editor for manipulating the device identity and capability database that iOS consults for everything from device model strings to feature flags; and practical utilities like 3 App Bypass, DirtyZero 2, 5 App Dock, Status Bar Tweaks, Hide labels, Upside Down, Grid App Switcher, Performance HUD, and an OTA Update Disabler and Screen Time Disabler. An App Decrypt feature is also listed, which — in an authorized context — is a legitimate research aid for analyzing binaries you own or are licensed to assess.


Two features deserve closer analysis. The JIT Enabler is explicitly scoped to apps carrying the get-task-allow entitlement, meaning it targets development-signed or repackaged builds rather than arbitrary App Store binaries — a deliberate limitation. The OTA Update Disabler and Screen Time Disabler are both classic jailbreak-community utilities: the former keeps a device on an exploitable firmware version for ongoing research, the latter removes parental controls. From a defensive standpoint, a Screen Time Disabler on a shared or managed device is worth knowing about, since it modifies protections that administrators or guardians may assume are enforced.


The known-issues section is refreshingly honest and technically informative. The kernel may panic when lara is closed from the app switcher — expected behavior for a tool holding kernel write primitives that has no clean teardown path. DirtyZero is listed as non-functional, the JIT state is enabled but not detected by apps, and remotecall is described as "super bugged." These are not polished product features; they are research artifacts, and the README treats them accordingly. An FTP Server is listed as coming soon.


Installation and operation reflect the sideloading model: the project ships a stable lara_v0.2.ipa plus nightly builds, or you can add its AltSource manifest to an AltStore-compatible installer. One important operational wrinkle is the manual kernelcache fallback documented in the README: when the automatic download fails, users are directed to fetch blacktop/ipsw version 3.1.671, run ./ipsw extract --kernel against their device's IPSW, transfer the resulting file to On My iPhone/lara in the Files app, and rename it to kernelcache. This workflow is a clean demonstration of how offset-based exploit tools resolve symbols per firmware build.


The tips section reinforces the kernel-centric nature of the tool: deleting and redownloading the kernelcache resolves many issues, and a respring is required for springboard-level changes like fonts. Troubleshooting here is really about ensuring the exploit has a valid, matching kernel image to work from — a mismatch between the on-device firmware and the supplied cache will silently break offset resolution.


Credit attribution reveals the lineage of the project. The kernel exploit PoC comes from opa334 (known for Dopamine and associated rootless jailbreak research), with ChOma and XPF also credited — ChOma being a library for parsing Apple's CMS/Mach-O signature formats. AlfieCG is credited for libgrabkernel2, which explains the automatic kernelcache retrieval path, and AppInstaller iOS for offset assistance. This is a community toolchain, not a novel exploit; lara is best understood as a consumer-friendly packaging of published research.


From a defensive angle, the telemetry and detection story is straightforward: lara leaves kernel panic signatures on crashes, requires an unusual kernelcache file in its app container, and disables OTA updates when that feature is active. On supervised or MDM-enrolled devices, sideloaded .ipa installation itself is the primary control point — restricting sideloading and monitoring for disabled software update channels covers most of the exposure. The tool's exclusion of MTE-equipped hardware also offers a natural segmentation strategy: newer SoCs are structurally resistant to this exploit class.


For authorized professionals, lara is most valuable as a working reference implementation: a maintained, AGPL-3.0-licensed Swift codebase showing how DarkSword primitives translate into MobileGestalt manipulation, disk access, and entitlement-driven JIT enablement on current-generation firmware. Study it in a lab, on hardware you own, against the versions it explicitly supports — and treat the documented bugs as reminders that kernel-level tooling on iOS remains fragile, version-pinned, and increasingly constrained by hardware mitigations like MTE.



Official project repository for rooootdev/lara.

Download Tool

Educational analysis for authorized security professionals. Use only in controlled, authorized environments.






Source: OffensiveSec
Source Link: https://www.offsecblog.com/2026/10/lara-for-on-device-ios-customization.html


Comments
new comment
Nobody has commented yet. Will you be the first?
 
Forum
Red Team (CNA)



Copyright 2012 through 2026 - National Cyber Warfare Foundation - All rights reserved worldwide.