Skip to content
KitploitKITPLOIT
OutilsExploitsBlog
Log in
Soumettre
OutilsExploitsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

FluxContactConfidentialité© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
Loading categories
Blackberry-Key2-Research — BlackBerry KEY2 (BBF100-6) bootloader unlock (CVE-2021-1931), unlock-tool RE, recon, and LineageOS research | Kitploit
Outils/GitHubGitHub/stanw47/blackberry-key2-research
Android SecurityExploitationMobile App PentestingReverse EngineeringMobile SecurityHardware SecurityBinary AnalysisPapers & ResearchFirmware AnalysisBinary Exploitation
GitHub
25 oct. 2026Pas encore vérifié
Partager
stanw47/blackberry-key2-research

Blackberry-Key2-Research

BlackBerry KEY2 (BBF100-6) bootloader unlock (CVE-2021-1931), unlock-tool RE, recon, and LineageOS research

Voir le dépôt
Contenu non disponible dans la langue demandée. Affichage de la version anglaise.

BlackBerry KEY2 (BBF100-6) — Research

Reverse-engineering, unlock, and LineageOS research for the BlackBerry KEY2 (BBF100-6, India/APAC dual-SIM) — the UEFI/ABL sibling of the KEYone, and the device where the unpatched CVE-2021-1931 fastboot overflow still yields a bootloader unlock.

Part of the Blackberry-Research collection · Williamson Security Solutions


Disclaimer

Research aid, not a flashing guide. Unlocking a bootloader and flashing firmware can permanently brick a device, and unlocks wipe userdata. Third-party tool binaries are not redistributed — hashes/provenance are recorded instead. For educational / defensive research on a device the author owns. At your own risk.


Device Details

FieldValue
ModelBlackBerry KEY2 BBF100-6
Codenamebbf100 / athena
SoCQualcomm SDM660 (Snapdragon 660)
OS / softwareAndroid 8.1 (stock) to LineageOS 22.2
Current buildLineageOS 22.2 (Android 15), kernel 4.4.302
Previous buildsstock ABN088 (Android 8.1.0, kernel 4.4.78), patch 2018-12-01, PRD-63828-031
Carrier / unlockIndia/APAC variant; dual-SIM; ro.oem_unlock_supported=true; UNLOCKED
SIMdual-SIM

A/B partition layout

Unlike the KEYone (A-only), the KEY2 is A/B and the bootloader is slotted:

abl_a -> p37   abl_b -> p49   xbl_a -> p27   xbl_b -> p39   tz_a -> p28   tz_b -> p40
boot -> p23 (not slotted)   recovery -> p57   recoverysig -> p58
vbmeta -> p19   system -> p73   vendor -> p74   oem -> p75
userdata -> p77   misc -> p54   frp -> p56   nvuser -> p67   perm -> p66

BlackBerry's A/B implementation is inconsistent enough that the unlock requires flashing the stock autoloader twice (both slots). Raw capture: recon/key2_byname.txt.


Current Status

The KEY2 is unlocked and running LineageOS 22.2 (Android 15) with dual-SIM working. Unlock was achieved via the unpatched Qualcomm CVE-2021-1931 in the UEFI ABL fastboot parser (the kibo payload), which flips the device from PRODUCT to FACTORY mode. The remaining work is ROM polish/stability.


Completed

  • Bootloader unlock via CVE-2021-1931 (kibo / BlackBerryBootUnlock.exe).
  • Full unlock-tool RE — .NET CLI tool over libusb; exact command sequence, patch table, and payload provenance.
  • Autoloader analysis — ACQ160 package, A/B slot flow, BBRYBlob signatures.
  • LineageOS port — community build (kernel 4.4), dual-SIM working.

Achieved

  • Boot mode PRODUCT FACTORY persisted to RPMB — a permanent, reboot-surviving unlock.
  • Running LineageOS 22.2 (Android 15) on retail hardware.
  • Payload provenance proven by SHA-256 — autoloader extraction == kibo acq160.exe == Windows tool 160.bin.

In Progress

  • ROM stability: SELinux + encryption completeness, keyboard-touchpad jitter (disable via Quick Settings), some Play-Integrity-sensitive apps.

Failed

  • Stock OS while unlocked — BlackBerry's stock build refuses to boot in FACTORY mode, so a modified boot image is required after unlock.
  • Official LineageOS — never happened (no clean GPL kernel source for the KEY2); only unofficial/community builds exist.

Future Plans

  1. Polish the LineageOS 22.2 port (stability/encryption).
  2. Track newer community Android builds.

Community Activity

The most successful device in this collection.

  • Christopher Wade (Pen Test Partners) found and exploited CVE-2021-1931.
  • BotchedRPR (Igor) authored kibo; the current LineageOS 22.2 build for KEY2 (athena) is maintained by zzach (zapaca) (previously BotchedRPR); krab-ubica led the bootloader-unlock research; npjohnson contributed Nokia SDM660 blobs.
  • FumoEnterprises hosts recovery/ROM images; tim-ecoder maintains lineageos_blackberry_athena; ronnz98 publishes /e/OS builds.
  • FakeShell/CVE-2021-1931-BBRY-KEY2 is a public proof-of-concept.
  • postmarketOS has a blackberry-key2-generic port (mainline/U-Boot).
  • Known issues on 22.2: SELinux and encryption disabled, keyboard-touchpad jitter, some camera/flash quirks.
  • Hubs: XDA, Reddit r/blackberry, the BlackBerry Android Hideout Discord, and the community wiki.

Unlock deep-dive (CVE-2021-1931)

The vulnerability

Qualcomm advisory (July 2021): "Possible buffer overflow due to improper validation of buffer length while processing fast boot commands" — CWE-120, fixed in SoCVersion 2021-07-05. Christopher Wade's "Breaking Mobile Bootloaders" (QPSS 2022) found and exploited it on an SDM660 BlackBerry (the KEY2):

  • The ABL (Android BootLoader, a UEFI application) receives fastboot data into a fixed buffer without validating the length. Sending ~1.4 MB (1 MB padding + a 429,108-byte payload) over the USB bulk endpoint overflows it; the minimum overflow size measured was 0x11bae0 (~1.16 MB).
  • BlackBerry had modified the flash: command to allow flashing certain partitions while locked — that custom path is where validation is missing.
  • The overflow target is the ABL's own code in RAM.

The payload

  1. Send ~1 MB of zeros as padding, then a byte-exact copy of the stock ACQ160 ABL PE (extracted from the official autoloader, LZMA-inside-abl.elf) with 9 instructions patched — execution continues seamlessly but now runs attacker-modified code.
  2. The patches: defuse BbryWipeLib, set the "Boots Remaining" expiry counter to 0xffff so factory mode never expires, and replace the bootmode getvar handler with a call to switch_bootmode(1, 0) + reboot.
  3. Sending getvar:all triggers the patched handler: boot mode 1 (FACTORY) is persisted to RPMB, then the device reboots — unlocked, across reboots.
  4. Result: MODE: PRODUCT FACTORY. Stock OS refuses to boot while unlocked -> flash the modded acq160-mfi-boot.img, then recovery + ROM.

Tool reverse engineering

The Windows tool is a .NET/C++-CLI assembly over libusb-1.0.dll; its fastboot surface is getvar:bb_bc_version, getvar:all, getvar:bootmode, reboot-bootloader. It selects a payload by bootloader version (ACQ160 -> 160.bin, ACT575 575.bin), patches a hardcoded table of byte offsets (the signature-check patch), then sends the 429,108-byte buffer — the overflow. Success = bootmode changes PRODUCT FACTORY. Progress sticks at 75% (normal).

Full analysis: notes/07-key2-unlock-tool-re.md; decompiled IL: exploit/key2-unlock/il.txt.

Tool binary provenance (not redistributed)

FileSHA-256
BlackBerryBootUnlock.exe (v1.1)374293c54518406b4145a2bc7a1a9c91b3e39109fdf629d059d1ed1b73c455f4
data/160.bin (ACQ160 ABL payload)2d270254389b00576d2430468fd79752020c45fc3f5dd0dd16eff9108fd37cce
data/575.bin (ACT575 ABL payload)ef9b30171df44710c5325cc7d5b5226a6f15cfe334fbde308b23e03616687a18

Procedure (summary)

  1. Remove all Google accounts (they block the fastboot endpoint).
  2. Flash stock ACQ160 autoloader twice (both A/B slots).
  3. Unlock: kibo unlock (Linux) or the Windows tool (progress sticks at 75%).
  4. MODE: on the bootloader screen changes PRODUCT FACTORY.
  5. Flash the modded acq160-mfi-boot.img, then recovery + ROM.
  6. Unlock + custom recovery wipes userdata — back up first.

LineageOS

Télécharger l’outil

Outils similaires

  • Mobile-Security-Framework-MobSF

    Framework de test de sécurité automatisé pour applications mobiles Android, iOS et Windows. Effectue une analyse statique et dynamique, une détection de malwares et des tests de sécurité des API avec intégration CI/CD.

  • jadx

    Outil en ligne de commande et avec interface graphique pour décompiler les fichiers Android Dex et APK en code source Java lisible, avec décodage des ressources, désambiguïsation, et capacités de débogage Smali.

  • Apktool

    Un outil de rétro-ingénierie pour les fichiers APK Android

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

  • 1

    Callisto

    jetp1ane/callisto

    Outil automatisé d'analyse de vulnérabilités binaires qui décompile des exécutables via Ghidra, analyse du pseudo-code C avec Semgrep, et valide les résultats en utilisant GPT-3.5-Turbo pour réduire les faux positifs.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # Application d'exécution en un clic GhostLock (CVE-2026-43499)

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    Plateforme IMSI Catcher qui déploie une cellule GSM frauduleuse pour intercepter les SMS, injecter des messages et suivre les appareils mobiles

    721
  • 4

    opencti

    opencti-platform/opencti

    Plateforme ouverte de renseignement sur les cybermenaces

    535
  • 5

    ARTEX

    baarai/artex

    Plateforme autonome de tests d'intrusion multi-agents basée sur des LLM, avec agents planificateur/ouvrier, graphes d'actifs et d'exploration, enregistrement du trafic MITM et retest des vulnérabilités.

    424
  • 6

    DFRoot

    a2333c/dfroot

    Outil de root Android pour Samsung Galaxy S25 Ultra (SM-S938B) qui enchaîne DirtyFrag CVE-2026-43284 et CVE-2026-43499 pour obtenir le root automatiquement au démarrage via KernelSU.

    419

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →