News for hackers. Stuff that matters.
Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by ChuckNorris89 on Tuesday April 11, 2023 @05:00AM (#35522577)
>building devices in a way that, of all things, charging them cannot hack them

Affordability, convenience, security. Choose two. It's not patronizing, it's how the consumer electronics market works and how consumer vote with their wallet.

Consumer device are sold with USB cables that pass data and power lines for cost and convenience, so they can also transfer data while also charging their device with the same cable that came in the box and not have them go out and buy another cable.

Can you imagine being sold a phone who's cable only passed power lines and not data, "for your security"? The consumer confusion and outrage would be massive.

The solution is using a USB condom which only passe through the power lines, not the data ones.

Just like the internet and TCP-IP, USB was designed from the start to be as cheap and convenient as possible, before anything else, to get market traction, which it did. Security concerns came much later.

Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by antihipocrat on Tuesday April 11, 2023 @05:06AM (#35522603)
Why can't the device being charged provide an option, such as charge only by default - and the user can turn on data transfer the same way we turn flight mode on and off?
Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by ChuckNorris89 on Tuesday April 11, 2023 @05:08AM (#35522613)
Android allows that in settings. But AFAIK it's just a software setting, the data lines are still physically connected.

The reason why there's no physical hard disconnect available in settings comes back to what I said earlier, cost and convenience from the manufactures' perspective.

They don't want to spend 2 cents on some mosfets for HW disconnects, and they don't want to nag the user every time they plug in the phone to charge as that would hurt the UX. They want the device to sync up automagically to whatever device you're pugging it into. That's what USB was designed for, convenience.

Plus, if you nag the user every single time they plug in the USB with a security prompt, they will just get desensitized and instinctively click 'YES' all the time.

Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by olabyne on Tuesday April 11, 2023 @05:22AM (#35522707)
You also need to have the USB connected on boot, for update/flash purpose.
Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by rjh29 on Tuesday April 11, 2023 @05:43AM (#35522826)
That is what my android phone does, I have to toggle it to allow data every time.
Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by NavinF on Tuesday April 11, 2023 @09:13AM (#35524647)
Funny you mention that when literally all flagship phones (both iOS and Android) have a "Do you trust this computer?" popup that does exactly what you described. By default, phones don't do any data transfer over USB.
Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by iavael on Wednesday April 12, 2023 @05:16AM (#35536902)
That only works if other endpoint tries to act as usb host. While if it mimics usb device (classic BadUSB), then AFAIK any phone would accept without any questions.
Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by NavinF on Thursday April 13, 2023 @06:25AM (#35553367)
Classic BadUSB acts as a keyboard and opens a terminal on your PC. What exactly can a bad usb device do to a phone?

This whole thread is bizarre. A whole lot of fretting over an attack that nobody bothered to describe.

Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by iavael on Sunday April 16, 2023 @07:03PM (#35595011)
It can act like keyboard an mouse that are valid input devices on phones too. With control of user input badusb device can download and install malware on the phone.
Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by NavinF on Wednesday April 19, 2023 @02:10AM (#35624801)
Now we're just taking in circles. What exactly can a malicious USB device do to a phone? On Windows it can press Win+R, but there's no equivalent on mobile.

Which keystrokes are you talking about and on which OS does that attack work? I can't think of anything that would work on my iPhone.

Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by iavael on Sunday April 23, 2023 @06:08PM (#35681166)
Open chrome (swipe up with virtual mouse, type chrome, click first entry), focus on address bar, input url of malicious apk, download it, open, confirm installation from unknown source.
Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by moring on Tuesday April 11, 2023 @05:16AM (#35522662)
I'd like to extend my thought experiment with professionals from all disciplines explaining why this is not patronizing at all and why it is exactly what consumers want.
Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by pengaru on Tuesday April 11, 2023 @05:10AM (#35522623)
> Can you imagine being sold a phone who's cable only passed power lines and not data, "for your security"? The consumer confusion and outrage would be massive.

I can imagine a phone sold with a readily accessible and highly visible physical toggle switch for power-only mode, giving consumers a discoverable built-in USB condom.

Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by ChuckNorris89 on Tuesday April 11, 2023 @05:12AM (#35522633)
You can imagine it. But can you imagine Apple, the "everything works automagically that we don't even give you basic setting in the SW" company, actually selling something like that to consumers? It would be a heresy to everything they stand for in terms of UX and physical device design.
Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by carlitossway on Wednesday April 12, 2023 @11:09AM (#35541044)
The toggle on and off switch would be very unApplely, yes. That does not mean you have to stop thinking, it means you need industrial designers on board.

USB-condoms are a thing you know; average (and below) users know exactly what those do and can figure out how to use them in a few seconds. I bet if Apple's genius marketeers would come up with a catchy name (like the i-Safe, but cooler) those would easily sell at 3,000% the production cost. But they never will because they tarnish the brand, and make the users think their devices are not safe by default.

But then, if the device are indeed not safe by default... are we talking about criminal charges here? Would it be fraud, or what is the name of the crime where you knowingly sell hazardous stuff to the public?

Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by mjevans on Tuesday April 11, 2023 @05:11AM (#35522631)
I suspect some faster-charging specifications rely on data frames over the non-power lines, and if none currently do new ones might.
Re:FBI Warns Against Using Public USB Ports Due to Malware Risk by falcolas on Tuesday April 11, 2023 @09:33AM (#35524906)
It does. Pretty much all charging modes above 5 watts requires some form of signal on a data line, if not outright negotiation.

But that fallback to 5 watts is still valuable in a hostile environment (which is, sadly, everywhere these days).