iOS 14 checkra1n-jailbreak-targeted passcode interposition

Last update: Jun 15, 2022

lockdown

I can't remember if this version (involving ksecured) is actually functioning, Started working on this right before I moved, haven't really worked on it much since.

But hey, if you want to work on your own version of this tweak (that's better and all that), please do!


This tweak barely requires any hooks, it just requires carefully chosen locations to do them.

ManagedConfiguration.x is injected into everything that links this framework.

by hooking a few methods in MCProfileConnection, we're able to intersect passcode setting before it ever gets anywhere even close to panicking the SEP.

We also hook the isPasscodeSet method, which fixes the "is passcode enabled" checks in multiple locations (including Preferences.app!)


Preferences.x is injected into the settings app.

All we need to hook in Preferences is DevicePINController. This is the popup that appears when setting/entering a passcode.

We just hook specific checks it makes on passcode constraints so the pin controller pops up with the proper constraints.


SpringBoard.x is injected into, you guessed it, SpringBoard.app

We only have 5 hooks here, just to ensure our own daemon knows the device is locked, catch the unlock attempts, and update passcode constraints.

GitHub

https://github.com/kritanta-ios-tweaks/lockdown
You might also like...

Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.

Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.

Helper functions for storing text in Keychain for iOS, macOS, tvOS and WatchOS This is a collection of helper functions for saving text and data in th

Jun 21, 2022

Simple Swift wrapper for Keychain that works on iOS, watchOS, tvOS and macOS.

Simple Swift wrapper for Keychain that works on iOS, watchOS, tvOS and macOS.

KeychainAccess KeychainAccess is a simple Swift wrapper for Keychain that works on iOS and OS X. Makes using Keychain APIs extremely easy and much mor

Jun 22, 2022

A simple Swift Keychain Wrapper for iOS, watchOS, and OS X.

Latch A simple Swift 2.0 Keychain Wrapper for iOS, watchOS 2, and OS X. Usage A proper example of how to use Latch can be seen in the tests. import La

Jan 29, 2022

A simple wrapper for the iOS Keychain to allow you to use it in a similar fashion to User Defaults. Written in Swift.

SwiftKeychainWrapper A simple wrapper for the iOS / tvOS Keychain to allow you to use it in a similar fashion to User Defaults. Written in Swift. Prov

Jun 25, 2022

RSA public/private key encryption, private key signing and public key verification in Swift using the Swift Package Manager. Works on iOS, macOS, and Linux (work in progress).

BlueRSA Swift cross-platform RSA wrapper library for RSA encryption and signing. Works on supported Apple platforms (using Security framework). Linux

May 31, 2022

Valet lets you securely store data in the iOS, tvOS, or macOS Keychain without knowing a thing about how the Keychain works.

Valet Valet lets you securely store data in the iOS, tvOS, watchOS, or macOS Keychain without knowing a thing about how the Keychain works. It’s easy.

Jun 19, 2022

πŸ”’ Swift Obfuscator that protects iOS apps against reverse engineering attacks.

πŸ”’ Swift Obfuscator that protects iOS apps against reverse engineering attacks.

struct fjiovh4894bvic: XbuinvcxoDHFh3fjid { let VNfhnfn3219d: Vnahfi5n34djga func cxncjnx8fh83FDJSDd() - Lghbna2gf0gmh3d { return vPAOSNdcbif

Jun 27, 2022

Simple Objective-C wrapper for the keychain that works on Mac and iOS

SAMKeychain SAMKeychain is a simple wrapper for accessing accounts, getting passwords, setting passwords, and deleting passwords using the system Keyc

Jun 15, 2022

πŸ¦‹ν›„λ¦μ˜ iOS 이것저것 κ³΅λΆ€ν•΄λ³΄λŠ” λ ˆν¬πŸ¦‹

πŸ¦‹ iOS Practice Repo πŸ¦‹ πŸ€” μ •μ‹ μ°¨λ € 후릐야.. "도약".. 해야지? ✨ ✨ ✨ iOS κ°œλ°œμ„ κ³΅λΆ€ν•œ κ±Έ κΈ°λ‘ν•©λ‹ˆλ‹€. λ‚ μ§œ κ³΅λΆ€ν•œ λ‚΄μš© ν”„λ‘œμ νŠΈ λ‚΄μš© 정리 6μ›” 16일 Expandable TableView πŸ‘©β€πŸš€ πŸ—³ 6μ›” 25일 FSCalend

May 1, 2022
Related tags
An iOS passcode lock with TouchID authentication written in Swift.
An iOS passcode lock with TouchID authentication written in Swift.

PasscodeLock A Swift implementation of passcode lock for iOS with TouchID authentication. Installation PasscodeLock requires Swift 2.0 and Xcode 7 Car

May 4, 2022
iOS 7 style Passcode Lock
iOS 7 style Passcode Lock

LTHPasscodeViewController Simple to use iOS 7 style Passcode - the one you get in Settings when changing your passcode. How to use Drag the contents o

May 28, 2022
A modal passcode input and validation view controller for iOS
A modal passcode input and validation view controller for iOS

TOPasscodeViewController A modal passcode input and validation view controller for iOS. TOPasscodeViewController is an open-source UIViewController su

Jun 12, 2022
An iOS passcode lock with TouchID authentication written in Swift.
An iOS passcode lock with TouchID authentication written in Swift.

PasscodeLock A Swift implementation of passcode lock for iOS with TouchID authentication. Originally created by @yankodimitrov, hope you're doing well

May 9, 2022
A library for make a beautiful Passcode Lock View
A library for make a beautiful Passcode Lock View

SmileLock A library for make a beautiful Passcode Lock View, also support Touch ID. Requirements iOS 9.0+ Swift 4 (pod version 3.x), Swift 3 (pod vers

Jun 15, 2022
Oversecured Vulnerable iOS App is an iOS app that aggregates all the platform's known and popular security vulnerabilities.

Description Oversecured Vulnerable iOS App is an iOS app that aggregates all the platform's known and popular security vulnerabilities. List of vulner

Jun 21, 2022
Pass for iOS - an iOS client compatible with Pass command line application.
Pass for iOS - an iOS client compatible with Pass command line application.

Pass is an iOS client compatible with ZX2C4's Pass command line application. It is a password manager using GPG for encryption and Git for version control.

Jun 20, 2022
RSA public/private key encryption, private key signing and public key verification in Swift using the Swift Package Manager. Works on iOS, macOS, and Linux (work in progress).

BlueRSA Swift cross-platform RSA wrapper library for RSA encryption and signing. Works on supported Apple platforms (using Security framework). Linux

May 31, 2022
CCCryptor (AES encryption) wrappers for iOS and Mac in Swift. -- For ObjC, see RNCryptor/RNCryptor-objc

RNCryptor Cross-language AES Encryptor/Decryptor data format. The primary targets are Swift and Objective-C, but implementations are available in C, C

Jun 25, 2022
Safe and easy to use crypto for iOS and macOS

Swift-Sodium Swift-Sodium provides a safe and easy to use interface to perform common cryptographic operations on macOS, iOS, tvOS and watchOS. It lev

Jun 15, 2022