Open
Conversation
Modified Files: ************************ mirage/libs/ble.py: * Added Logic for nRF 52840 Zephyr hci_usb Device and corresponding MITM Mode. * Added Secure Connection Packets (e.g. BLEPublicKey, BLEDHKeyCheck) * Added logic to backup and restore Callbacks of Receivers * Removed Packet Fragmentation Implementation (is now part of mirage/libs/bt.py) mirage/libs/ble_utils/constants.py: * Added LL Opcodes and Error Codes mirage/libs/ble_utils/dissector.py: * Fixed HIDMapping (was not working for my devices) mirage/libs/ble_utils/packets.py * Small Adjustments mirage/libs/ble_utils/scapy_link_layers.py * Added bindings for LL Encryption packets mirage/libs/bt.py * Added Packet Fragmentation Code * Added Logic for nRF 52840 Zephyr hci_usb Device and corresponding MITM Mode. mirage/libs/bt_utils/scapy_vendor_specific.py * Added Zephyr HCI Commands mirage/modules/ble_connect.py * Added Logic to set new BD Address at each Start mirage/modules/ble_discovery.py * Added Discovery of Security Property mirage/modules/ble_pair.py * Added Option to modify Address * Reduced Success Logging New Files: ************************ Cryptographic functions for secure connections pairing: - mirage/libs/ble_utils/sc_crypto.py Generic BLE Module, does nothing and is suitable for scenarios, which perform specific tasks: - mirage/modules/ble_generic.py BLE Relay Module (Requires the nRF 52840 Dongles with customized Zephyr `hci_usb` Firmware): - mirage/modules/ble_relay.py Secure Connections MITM Module, uses downgrade attack to pair with both devices using Just Works Pairing: - mirage/modules/ble_sc_mitm.py Secure Connections Pairing Module, for pairing Secure Connections devices: - mirage/modules: ble_sc_pair.py Scenario to fuzz a writable GATT characteristic: - mirage/scenarios/ble_att_fuzz.py Scenario for Blue Door Attack https://dl.acm.org/doi/10.1145/3386901.3389025 (Requires the nRF 52840 Dongles with customized Zephyr `hci_usb` Firmware): - mirage/scenarios/ble_blue_door.py Scenario for BlueMirror Attack https://ieeexplore.ieee.org/document/9474325: - mirage/scenarios/ble_blue_mirror.py Scenario for Fixed Coordinate Invalid Curve Attack https://dl.acm.org/doi/abs/10.1007/978-3-030-38471-5_11: - mirage/scenarios/ble_fixed_coord_invalid_curve.py Scenario for HID Injection Attack: - mirage/scenarios/ble_hid_mitm.py Scenario for KNOB Attack https://dl.acm.org/doi/10.1145/3394497: - mirage/scenarios/ble_knob.py Scenario for Replay Attacks: - mirage/scenarios/ble_replay.py Scenario to scan for security Properties of the Device: - mirage/scenarios/ble_scan_sec_req.py Scenario to test cryptographic implementation of Secure Connections Cryptography: - mirage/scenarios/ble_sc_crypto_test.py Scenario for Zero LTK Attack Matheus-Garbelini/sweyntooth_bluetooth_low_energy_attacks#13: - mirage/scenarios: ble_zero_ltk.py
Owner
|
Hi, |
|
@nsidesm where can your masters thesis be found? |
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.
This Pull Request contains the work done during my Master Thesis. Since this single commit contains a lot of changes, i tried to clarify the work, which was done.
Modified Files:
mirage/libs/ble.py:
mirage/libs/ble_utils/constants.py:
mirage/libs/ble_utils/dissector.py:
mirage/libs/ble_utils/packets.py
mirage/libs/ble_utils/scapy_link_layers.py
mirage/libs/bt.py
mirage/libs/bt_utils/scapy_vendor_specific.py
mirage/modules/ble_connect.py
mirage/modules/ble_discovery.py
mirage/modules/ble_pair.py
New Files:
Cryptographic functions for secure connections pairing:
Generic BLE Module, does nothing and is suitable for scenarios, which perform specific tasks:
BLE Relay Module (Requires the nRF 52840 Dongles with customized Zephyr
hci_usbFirmware*):Secure Connections MITM Module, uses downgrade attack to pair with both devices using Just Works Pairing:
Secure Connections Pairing Module, for pairing Secure Connections devices:
Scenario to fuzz a writable GATT characteristic:
Scenario for Blue Door Attack https://dl.acm.org/doi/10.1145/3386901.3389025 (Requires the nRF 52840 Dongles with customized Zephyr
hci_usbFirmware*):Scenario for BlueMirror Attack https://ieeexplore.ieee.org/document/9474325:
Scenario for Fixed Coordinate Invalid Curve Attack https://dl.acm.org/doi/abs/10.1007/978-3-030-38471-5_11:
Scenario for HID Injection Attack:
Scenario for KNOB Attack https://dl.acm.org/doi/10.1145/3394497:
Scenario for Replay Attacks (Without Pairing for Application Layer Security):
Scenario to scan for security Properties of the Device:
Scenario to test cryptographic implementation of Secure Connections Cryptography:
Scenario for Zero LTK Attack Matheus-Garbelini/sweyntooth_bluetooth_low_energy_attacks#13:
* https://github.com/nsidesm/zephyr/tree/zephyr_hci_extension