Repository navigation
Ble suite v4 - #2823
Open
Ninja-jr wants to merge 46 commits into
Open
Ble suite v4#2823Ninja-jr wants to merge 46 commits into
Ninja-jr wants to merge 46 commits into
Conversation
|
Wooow, This is some next level shiznit bro..!! Its not even about Religion
anymore this one.. I hear rumours about, that you actually are one of the
Kernel Creators of BLE... If that was the truth or not, doesn't even matter
... This is magical... PURe awesomeness..! I mean not even the highest of
Auth.-.-?$ORities have this kind of structure .. Level99
…On Mon, Aug 24, 2026 at 5:28 AM Armando Ribeiro ***@***.***> wrote:
Complete overhaul of BLE Suite with 10+ new features, improved
reliability, and NimBLE compatibility awareness.
------------------------------
Key Changes
New Features
· Device Scoring System - RSSI + stability-based attack potential (0-100)
· Connection Caching - 60-80% faster reconnections with stored params
· Graduated Connection Strategy - 5-phase: Probe → Fast → Aggressive →
Exploit → Reconnect
· Robust GATT Client - Retry logic with exponential backoff
· Attack Orchestrator - Chain attacks with rollback capability
· BLE Mirage - Device cloning/spoofing (single instance - NimBLE
limitation)
· Attack Scheduler - Optimal timing analysis based on device patterns
· Device Fingerprinting - Personality profiles (response times, MTU,
capabilities)
· Attack Logging - JSON export to SD/LittleFS
Enhanced Modules
· HFPExploitEngine - Full AT command support, NimBLE-optimized (SCO
disabled)
· FastPairCrypto - Proper HKDF, AES-CCM, key derivation
· UI - Clean theme integration with bleListLoop and proper text wrapping
NimBLE Compatibility
· Clear flags for unsupported features (SCO, audio routing, LE Audio)
· Graceful fallbacks where possible
· Polling-based event monitoring (no async notifications)
------------------------------
Breaking Changes
· None - fully backward compatible
· HFP audio/SCO functions now return false with warning (NimBLE limitation)
------------------------------
Testing
☐ Device scoring works with multiple targets
☐ Connection caching speeds up reconnects
☐ Graduated connection handles edge cases
☐ HFP AT commands work over GATT
☐ FastPair handshake completes
☐ Attack orchestration executes chain
☐ Attack logs export to JSON
☐ UI renders properly on small screens
------------------------------
You can view, comment on, or merge this pull request online at:
#2823
Commit Summary
- 40c3ebe
<40c3ebe>
Update HFP_Exploit.h
- a0ea746
<a0ea746>
Update HFP_Exploit.cpp
- f707fb2
<f707fb2>
Update README.md
- 78cae1d
<78cae1d>
Update fastpair_crypto.cpp
- 5ff1dd5
<5ff1dd5>
Update fastpair_crypto.h
- 7b88ded
<7b88ded>
Update BLE_Suite.cpp
- 22bb0d1
<22bb0d1>
Update BLE_Suite.h
- 17c8731
<17c8731>
Update BLE_Suite.h
- 0fb79cd
<0fb79cd>
Update BLE_Suite.h
- c1c2959
<c1c2959>
Update BLE_Suite.cpp
- 168817a
<168817a>
Update HFP_Exploit.cpp
- 34a5af2
<34a5af2>
Update HFP_Exploit.h
- 66bc62d
<66bc62d>
Update HFP_Exploit.cpp
- ffa4077
<ffa4077>
Update BLE_Suite.cpp
- 7e8e753
<7e8e753>
Update README.md
- ce3c378
<ce3c378>
Update HFP_Exploit.cpp
File Changes
(7 files <https://github.com/BruceDevices/firmware/pull/2823/files>)
- *M* src/modules/ble/BLE_Suite.cpp
<https://github.com/BruceDevices/firmware/pull/2823/files#diff-ab9375ce9648be910cb8745e24541f59b8287ec03e99315196362e4fe2d835cd>
(2592)
- *M* src/modules/ble/BLE_Suite.h
<https://github.com/BruceDevices/firmware/pull/2823/files#diff-cfe3cbfdcf3c4064341380bd926ca93546f0bdf06ac9bc043f054da7292b3f34>
(200)
- *M* src/modules/ble/HFP_Exploit.cpp
<https://github.com/BruceDevices/firmware/pull/2823/files#diff-5a1f75b70955e400d0639e5c5bcb2a7d57031af471096af5dca8c0e4fd925f75>
(751)
- *M* src/modules/ble/HFP_Exploit.h
<https://github.com/BruceDevices/firmware/pull/2823/files#diff-92072be719b35c5bc8869b0664c150097f7e35c2c1427f21a6ab18bc7898e45e>
(143)
- *M* src/modules/ble/README.md
<https://github.com/BruceDevices/firmware/pull/2823/files#diff-ee888f1f5bfce80581e9b2e3b18d3081685abdde15c8c81da6260d183231e071>
(368)
- *M* src/modules/ble/fastpair_crypto.cpp
<https://github.com/BruceDevices/firmware/pull/2823/files#diff-fea922bfb297de0692034117e449f94498f747abb36b5044d6085b22c53aac23>
(675)
- *M* src/modules/ble/fastpair_crypto.h
<https://github.com/BruceDevices/firmware/pull/2823/files#diff-75ae5d5c21be79982600e5d4a85fcd23b33dd841b419c95ced1861f261db35dc>
(139)
Patch Links:
- https://github.com/BruceDevices/firmware/pull/2823.patch
- https://github.com/BruceDevices/firmware/pull/2823.diff
—
Reply to this email directly, view it on GitHub
<#2823?email_source=notifications&email_token=BLDL6BWMC5TGCOLLBYOOHOL5LOY5XA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF42DGNBVGEZDGNJXGWTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVRTG633UMVZF6Y3MNFRWW>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BLDL6BRWDK7N6AOGJ5ITDLL5LOY5XAVCNFSNUABFKJSXA33TNF2G64TZHM3TSNJRGY3DSNRRHNEXG43VMU5TKMRTGA3TQMZSGAYKC5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/BLDL6BWJNVPP4N2VXSZN7TD5LOY5XA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF42DGNBVGEZDGNJXGWTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVJTG633UMVZF62LPOM>
and Android
<https://github.com/notifications/mobile/android/BLDL6BVF56DYYVY5GPRMV4T5LOY5XA5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF42DGNBVGEZDGNJXGWTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVZTG633UMVZF6YLOMRZG62LE>.
Download it today!
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Kind Regards
C.R
May Prosperity allways be with us!!
|
Contributor
Author
|
Thanks...well I just try to do my best to enhance what I know |
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Aug 25, 2026
Contributor
Author
|
Well tested now and ready to mzrge |
Removed legacy UI helper functions and comments from BLE_Suite.cpp to streamline the codebase. Updated the file selection and menu handling logic for improved clarity and performance.
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Aug 30, 2026
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Aug 30, 2026
Updated BLE Suite with new mirage functionality and improved device name resolution.
Updated BLE_Suite.h to include new parameters and default values for address types in various structures and functions.
Updated connection parameters and added fallback connection logic for HFP service. Enhanced error handling and improved attribute discovery process.
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Nov 13, 2026
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Nov 13, 2026
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Nov 15, 2026
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Nov 17, 2026
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Nov 17, 2026
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Nov 17, 2026
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Nov 17, 2026
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Nov 17, 2026
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Nov 17, 2026
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Nov 17, 2026
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Nov 17, 2026
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Nov 17, 2026
Ninja-jr
pushed a commit
to Ninja-jr/Bruce_firmware
that referenced
this pull request
Nov 17, 2026
Added functions to suspend and resume the WiFi driver, along with a check for its suspended state.
Added functions to suspend and resume WiFi operations, managing the WiFi state more effectively.
Ninja-jr
marked this pull request as draft
November 18, 2026 18:44
Updated README for BLE Security Suite Module to version 4.1, detailing enhancements in memory management and BLE lifecycle. Added GATT Explorer and GATT Server integration, and clarified session-scoped initialization.
Updated version to 4.1 and modified last updated date. Added changes for memory management and WiFi suspension.
Updated version from 4.0 to 4.1 and modified BLE initialization to prevent memory leaks and improve connection stability.
Ble suite v4 fixes
Ninja-jr
marked this pull request as ready for review
November 19, 2026 19:31
Enhanced memory management for BLE by attempting to free WiFi resources when DMA memory is insufficient.
Removed WiFi suspend/resume functionality and related state variables.
Removed functions related to WiFi suspension and resumption.
Updated BLE Suite version from 4.1 to 4.0 and modified various BLE connection handling strategies to improve memory management and connection stability.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Complete overhaul of BLE Suite with 10+ new features, improved reliability, NimBLE compatibility awareness, and memory & radio lifecycle fixes.
───
New Features
· Device Scoring System - RSSI + stability-based attack potential (0-100)
· Connection Caching - 60-80% faster reconnections with stored params
· Graduated Connection Strategy - 5-phase: Probe → Fast → Aggressive → Exploit → Reconnect
· Robust GATT Client - Retry logic with exponential backoff
· GATT Explorer & GATT Server - Integrated from #2865 and adapted to the v4 architecture (all credit to original author Martin @mknblch)
· Attack Orchestrator - Chain attacks with rollback capability
· BLE Mirage - Device cloning/spoofing (single instance - NimBLE limitation)
· Attack Scheduler - Optimal timing analysis based on device patterns
· Device Fingerprinting - Personality profiles (response times, MTU, capabilities)
· Attack Logging - JSON export to SD/LittleFS
Enhanced Modules
· BLEStateManager - Initialized once per suite session instead of per-attempt init/deinit cycles (prevents DMA leaks and false low-RAM checks);
initBLE()now callswifiSuspend()to release Wi-Fi DMA buffers rather thanwifiDisconnect()alone, resuming cleanly on exit· HFPExploitEngine - Full AT command support, NimBLE-optimized (SCO disabled)
· FastPairCrypto - Proper HKDF, AES-CCM, key derivation
· UI - Clean theme integration with bleListLoop and proper text wrapping
NimBLE Compatibility
· Clear flags for unsupported features (SCO, audio routing, LE Audio)
· Graceful fallbacks where possible
· Polling-based event monitoring (no async notifications)
· Session-scoped BLE lifecycle where attacks create/delete clients rather than tearing down the stack
───
Breaking Changes
· None - fully backward compatible
· HFP audio/SCO functions now return false with warning (NimBLE limitation)
───
Testing
☐ Device scoring works with multiple targets
☐ Connection caching speeds up reconnects
☐ Graduated connection handles edge cases
☐ GATT Explorer and GATT Server operate properly under v4 lifecycle
☐ HFP AT commands work over GATT
☐ FastPair handshake completes
☐ Attack orchestration executes chain
☐ Attack logs export to JSON
☐ UI renders properly on small screens
☐ Session-scoped BLE init/deinit and
wifiSuspend()/wifiResume()release DMA without false low-RAM toasts