Skip to content

feat(jailbreak): add modern jailbreak detection and performance tweak - #158

Open
RohannnRX179 wants to merge 1 commit into
securing:masterfrom
RohannnRX179:jailbreak-updated
Open

feat(jailbreak): add modern jailbreak detection and performance tweak#158
RohannnRX179 wants to merge 1 commit into
securing:masterfrom
RohannnRX179:jailbreak-updated

Conversation

@RohannnRX179

Copy link
Copy Markdown

Summary of Changes

  1. Performance Optimizations
    Early exit for simple boolean check: amIJailbroken() now exits immediately on first detection instead of running all checks
    Optimized DYLD check: Pre-lowercase suspicious library names and use simple contains() instead of localizedCaseInsensitiveContains() per iteration
    Better string building: Use array joining instead of manual string concatenation
    Refactored nested function: Moved getResult() out of performChecks() for cleaner code

  2. Modern Jailbreak Detection (2024-2026)
    Added detection for:
    Dopamine - /Applications/Dopamine.app, dopamine:// URL scheme, systemhook.dylib
    palera1n - /Applications/palera1nLoader.app, palera1n:// URL scheme, /var/jb symlink
    RootHide - /var/.jbroot-* directories, roothideinit.dylib
    Ellekit - Modern tweak injection framework (libellekit.dylib)
    Modern bypass tools - Choicy, UnSub, VnodeBypass, Liberty

  3. Enhanced Detection Methods
    /var/jb symlink check - Key indicator of all modern rootless jailbreaks
    RootHide directory scanning - Detects randomized .jbroot- directories
    Extended ObjC class detection - Checks for 7+ known bypass tool classes

…izations

- Add early exit optimization for amIJailbroken() boolean check
- Add detection for Dopamine, palera1n, and RootHide jailbreaks
- Add /var/jb symlink detection for rootless jailbreaks
- Optimize DYLD check with pre-lowercased library names
- Add Ellekit, Choicy, UnSub, and other modern bypass tool detection
- Improve code structure by extracting nested function
- Use array joining for cleaner string building
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

Successfully merging this pull request may close these issues.

1 participant