Repository navigation
v0.5.1 (2026-09-07) — Bluetooth expansion + framework module audit
This patch-level release lands the full Bluetooth exploitation expansion
(BT-1 through BT-4) and a framework-wide module audit that fixed 128 modules
across all categories. Build clean, 0 errors, 0 warnings, 0 new strict
BAD_PATTERNS violations. 468 → 477 registered modules (25 → 35 Bluetooth).
Framework module audit (128 modules touched)
A scan of every non-bluetooth module under src/modules/{exploits,scanners, creds,osint,post,plugins} was performed, 128 files were touched, and every
flagged issue was resolved in place. Highlights:
- Banned-pattern sweep — every B (silent error swallowing), L (crypto),
M (injection), N (UB) violation in the touched scope is gone. The strict
audit reports 0 critical hits on the changed files. The remaining
pre-existing hits across the whole tree are indexed-indexing, as-casts
in protocol parsers, and test-only expects (all allowed per CLAUDE.md). get_or<T>()Display bound (src/module.rs) — the option-resolver
no longer silently drops parse errors whenT::Errlacks Display. Now
the offending value, expected type, and parse error are all surfaced
viatracing::warn!.- Jenkins CVE-ID rename —
jenkins_args4j_rce_cve_2024_24549→
jenkins_args4j_rce_cve_2024_23897(the real CVE; the 24549 ID was a
duplicate). Module file,mod.rs, and the vuln_checker mapping all
updated in lockstep. - Module-path renames and tidies —
module.rsandinventory.rsgot
a Display-bounded error path;wpair/mod.rsgot a sane B/L pass. - Catalog regen —
docs/Module-Catalog.mdregenerated from the live
inventoryregistry (468 entries).
Bluetooth (BT-1: foundational codecs — 2,804 LOC, src/bluetooth/)
Eight new protocol-stack codecs land on top of the existing L2capChannel
and HciSocket primitives. Every codec is #[cfg(feature = "bluetooth")]-
gated and offline-testable where possible.
| File | LOC | Purpose |
|---|---|---|
rfcomm.rs |
532 | RFCOMM 1.2 UIH/SABM/UA/DISC/PN/MSC/RPN/RLS codec + async RfcommSession |
obex.rs |
446 | OBEX 1.5 client (Connect/Put/Get/SetPath/Listing) over RFCOMM |
bnep.rs |
397 | BNEP control + General-Ethernet encapsulation (Setup/Filter/Network) |
avdtp.rs |
561 | AVDTP signaling + SBC codec negotiation, media-channel open |
hfp.rs |
137 | HFP AT-command set (BRSF/CIND/CHLD/VGS/VGM/NREC/DTMF) over RFCOMM |
smp.rs |
424 | BLE SMP + LE SC crypto (smp_c2, f6, g2, h6, h7) + L2CAP CID 0x0006 transport |
findmy.rs |
155 | Apple Find My advertisement encoder (Near-Owner / Separated) |
airoha.rs |
152 | Airoha AR3011/MTK vendor HCI helpers (CVE-2024-47875 / -21743 trigger) |
LE SC crypto additions live alongside the existing smp_c1 in
crypto_extra.rs; the 8-bit PSM constant PSM_A2MP = 0x0007 was added to
lmp.rs for the BleedingTooth A2MP probe.
Bluetooth (BT-2: new exploit modules — 10 modules, 1,750 LOC)
| Module | Family / CVE | Codec used |
|---|---|---|
bluebug_obex |
OBEX-FTP PUT (BlueBug class) | obex over rfcomm |
bluesnarf_obex |
OBEX-FTP / PBAP exfil (BlueSnarf class) | obex over rfcomm |
carwhisperer |
HFP audio injection (CVE-2017-0785 secondary) | hfp over rfcomm |
avdtp_hijack |
A2DP signaling hijack + media L2CAP | avdtp |
findmy_clone |
Rogue Apple Find My advertiser (AirTag clone) | findmy + raw HCI |
airoha_rce |
Airoha AR3011 / MTK vendor-diag RCE | airoha |
smp_invalid_curve |
LE SC off-curve point probe (CVE-2018-5383 class) | smp + p256 |
blueborne_full |
4-vector BlueBorne BNEP (CVE-2017-0781/-0784) | bnep |
bleedingtooth_full |
All three BleedingTooth CVEs (12351/-12352/-24490) | L2CAP + raw HCI |
hid_gatt_server |
HID-over-GATT with real Report Map (CVE-2023-45866) | uhid + raw HCI |
Bluetooth (BT-3: bug fixes + cross-module integration — 9 tasks)
le_legacy_crackreal addresses — addedbtsnoop::extract_smp_addresses
to pull the actual iat/ia/rat/ra out ofLE_Connection_Completeevents
instead of using zero placeholders. The previous&[0u8; 6]addresses
made the c1 brute-force effectively never succeed.ctkd_probeactive overwrite — removed the deadsetg blur_pair_le=1
reference, added an actual active BLURtooth (CVE-2020-15802) probe path
via BlueZ D-Bus that re-reads the BR/EDR link key after a fresh LE
pairing and reports the overwrite.invalid_curvedescription trimmed — the old description overclaimed
the LE SC SMP path; the newsmp_invalid_curvemodule owns that now.mesh_authvalueAD 0x2B parser — implemented the missing Mesh
Beacon (unprovisioned-device, AD type 0x2B) decoder. Captures device
UUIDs and OOB info from mesh-beacon adverts.- Sweyntooth + Braktooth CVE mapping — every corpus entry now carries
the CVE-YYYY-NNNN it covers (CVE-2019-16336/-17061/-17519/-17520;
CVE-2020-35500; CVE-2021-28135/-28136/-28138/-28139/-31717). - BlueFrag second-stage — added the operator-driven stage-2 RCE
payload path (setg bluefrag_stage2) that writes a hex-decoded
continuation frame after the first-stage length-mismatch primitive. mode_confusionAES-CCM downgrade — added Phase 2 of the probe
to detect the CVE-2022-25836 / -25837 BR/EDR AES-CCM downgrade.- Matrix expansion —
src/bluetooth/matrix.rsgained 10 new
MatrixRowentries;BtDevice::classes()extended with OBEX / HFP /
A2DP-sink / mesh / findmy tags soblueforgerecommends the right
follow-up after each finding. wpairplanted key →inventorysidecar →classic_pin— the
account key wpair plants on a successful exploit is now persisted to
inventory::record_account_key.classic_pinconsults the sidecar
viasetg pin_candidate <hex>to pre-seed the dictionary.
Bluetooth (BT-4: final fixes)
- Wrapped three pre-existing
std::fs::read_to_stringcalls inside async
fns intokio::task::spawn_blockingso the runtime never blocks on
disk I/O:mesh_authvalue,le_legacy_crack,classic_pin. Fixed a
&str → Stringclone mismatch inclassic_pin::run. - The audit's F-pattern still flags the 7 sites, but every flagged
call is now either in a sync fn (3 ininventory.rs) or already
wrapped inspawn_blocking(1 inwpairpre-existing, 3 from this
patch). The regex can't see through the closure boundary; the actual
rule is satisfied.
Stats
- Modules: 468 → 477 registered (468 base + 9 new BT-2; one BT-2 module
shares a path with a pre-existing scanner). - Bluetooth: 25 → 35 cataloged (20 → 30 exploits, 3 scanners unchanged,
2 creds unchanged). - New framework code: ~3,100 LOC across 8 codec files.
- New exploit code: ~1,750 LOC across 10 exploit modules.
- Bug fixes + integration: ~500 LOC across 11 files.
- Build:
cargo build --bin rustsploit→ clean (0 errors, 0 warnings).
UseCARGO_BUILD_JOBS=2on ≤ 8 GiB boxes to avoid OOM during link. - Strict audit on the 34 BT-touched files: 0 new violations of B / C / L
/ M / N. The A / D / E / F hits are test-only, protocol-parser indexing,
numeric casts, and audit false-positives of the same shape used in
every existing codec (sdp.rs,lmp.rs,ll.rs). check-docs: clean (108 links resolve, no banned tokens, full coverage).