All three of the ChoiceJacking methods defeat Android juice-jacking mitigations. One in every of them additionally works in opposition to these defenses in Apple gadgets. In all three, the charger acts as a USB host to set off the affirmation immediate on the focused telephone.
The assaults then exploit numerous weaknesses within the OS that enable the charger to autonomously inject “enter occasions” that may enter textual content or click on buttons introduced in display prompts as if the consumer had completed so straight into the telephone. In all three, the charger finally good points two conceptual channels to the telephone: (1) an enter one permitting it to spoof consumer consent and (2) a file entry connection that may steal information.
An illustration of ChoiceJacking assaults. (1) The sufferer system is hooked up to the malicious charger. (2) The charger establishes an additional enter channel. (3) The charger initiates an information connection. Consumer consent is required to verify it. (4) The charger makes use of the enter channel to spoof consumer consent.
Credit score:
Draschbacher et al.
It’s a keyboard, it’s a bunch, it’s each
Within the ChoiceJacking variant that defeats each Apple- and Google-devised juice-jacking mitigations, the charger begins as a USB keyboard or the same peripheral system. It sends keyboard enter over USB that invokes easy key presses, comparable to arrow up or down, but in addition extra complicated key combos that set off settings or open a standing bar.
The enter establishes a Bluetooth connection to a second miniaturized keyboard hidden contained in the malicious charger. The charger then makes use of the USB Energy Supply, a normal out there in USB-C connectors that permits gadgets to both present or obtain energy to or from the opposite system, relying on messages they alternate, a course of referred to as the USB PD Knowledge Function Swap.
A simulated ChoiceJacking charger. Bidirectional USB traces enable for information function swaps.
Credit score:
Draschbacher et al.
With the charger now appearing as a bunch, it triggers the file entry consent dialog. On the similar time, the charger nonetheless maintains its function as a peripheral system that acts as a Bluetooth keyboard that approves the file entry consent dialog.
The total steps for the assault, supplied within the Usenix paper, are:
1. The sufferer system is linked to the malicious charger. The system has its display unlocked.
2. At an acceptable second, the charger performs a USB PD Knowledge Function (DR) Swap. The cellular system now acts as a USB host, the charger acts as a USB enter system.
3. The charger generates enter to make sure that BT is enabled.
4. The charger navigates to the BT pairing display within the system settings to make the cellular system discoverable.
5. The charger begins promoting as a BT enter system.
6. By continually scanning for newly discoverable Bluetooth gadgets, the charger identifies the BT system deal with of the cellular system and initiates pairing.
7. By means of the USB enter system, the charger accepts the Sure/No pairing dialog showing on the cellular system. The Bluetooth enter system is now linked.
8. The charger sends one other USB PD DR Swap. It’s now the USB host, and the cellular system is the USB system.
9. Because the USB host, the charger initiates an information connection.
10. By means of the Bluetooth enter system, the charger confirms its personal information connection on the cellular system.
This method works in opposition to all however one of many 11 telephone fashions examined, with the holdout being an Android system working the Vivo Funtouch OS, which doesn’t absolutely help the USB PD protocol. The assaults in opposition to the ten remaining fashions take about 25 to 30 seconds to ascertain the Bluetooth pairing, relying on the telephone mannequin being hacked. The attacker then has learn and write entry to information saved on the system for so long as it stays linked to the charger.