Skip to content

Ble suite v4 - #2823

Open
Ninja-jr wants to merge 31 commits into
BruceDevices:devfrom
Ninja-jr:Ble_suite_v4
Open

Ble suite v4#2823
Ninja-jr wants to merge 31 commits into
BruceDevices:devfrom
Ninja-jr:Ble_suite_v4

Conversation

@Ninja-jr

Copy link
Copy Markdown
Contributor

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

@Huzzla101

Huzzla101 commented Aug 24, 2026 via email

Copy link
Copy Markdown

@Ninja-jr

Copy link
Copy Markdown
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
@Ninja-jr

Copy link
Copy Markdown
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.
Mysteriza added a commit to Mysteriza/firmware that referenced this pull request Sep 4, 2026
# Conflicts:
#	src/modules/ble/BLE_Suite.h
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

Ninja-jr commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Added gatt explorer and gatt server for compatibility with #2865 where it is originally and from

All credit on this goes to Martin @mknblch as he's the original author of this. I just added it here for compatibility reasons as made a unified version of the suite from both pr's to resolve the conflict

@Ninja-jr

Ninja-jr commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Ok good now...final version ready...won't touch this anymore 😜

Ninja-jr pushed a commit to Ninja-jr/Bruce_firmware that referenced this pull request Sep 8, 2026
@bmorcelli bmorcelli added enhancement New feature or request New Feature and removed enhancement New feature or request labels Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants