News for hackers. Stuff that matters.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by maxxxxx on Monday June 11, 2018 @12:41PM (#17285887)
How is the regular guy supposed to figure out if a USB device is OK or not? I guess the easy answer is to say "Don't use an unknown device" but I don't think this is practical especially in the case of a charger.

It's like the constant battle with our IT department to get and keep admin privileges on our machines. Yes, this can cause a problem but we need admin rights to do our job.

Re:“All accredited journalists at the #KimTrumpSummit get a ... by rbanffy on Monday June 11, 2018 @12:57PM (#17286118)
> How is the regular guy supposed to figure out if a USB device is OK or not?

If you are not absolutely sure it's OK, then it's not. Pack your own chargers, use a "USB condom" or a power-only cable. If the charger has a cable that can't be removed, use it to charge a trusted battery, then charge your phone from it. Don't trust any smart battery, BTW.

Journalist covering summits like this are not regular guys and should receive opsec training before any such assignment.

When working on the Brazilian electronic ballot, I had two computers: one that was connected to the corporate network where I could read and write e-mails, and another I could manage (so I could run Visual Studio's debugger), that was on a completely different network, in front and behind some of the most aggressive firewalls I've ever seen.

Re:“All accredited journalists at the #KimTrumpSummit get a ... by tomp on Monday June 11, 2018 @01:33PM (#17286480)
Why can't it infect (the microcontroller on) the battery, and then infect your device later?
Re:“All accredited journalists at the #KimTrumpSummit get a ... by rbanffy on Monday June 11, 2018 @05:07PM (#17288606)
There are dumb batteries that only use the power connections. Those can't be infected.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by troncjb on Monday June 11, 2018 @01:37PM (#17286519)
Ostensibly you're using that aforementioned power-only cable from battery -> device.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by tomp on Monday June 11, 2018 @03:04PM (#17287404)
But then you can just skip the battery anyways...
Re:“All accredited journalists at the #KimTrumpSummit get a ... by rbanffy on Monday June 11, 2018 @05:13PM (#17288649)
If the untrusted charger has a USB socket, then yes. If you have an untrusted charger with non-detachable cable, then no.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by DaiPlusPlus on Monday June 11, 2018 @12:44PM (#17285922)
Make “USB Condoms” that only have the power pins, no data. Educate users to see if these no-data devices have data pins.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by seanp2k2 on Monday June 11, 2018 @02:09PM (#17286786)
Within the context of USB Power Delivery , it needs more than simple power and ground to actually work. While it’s theoretically possible to make such a device that would determine which device is the source and sink, determine voltages and charge rates, then smartly select one and begin charging without the devices directly communicating, no such off-the-shelf device currently exists as far as I’m aware. You basically want a USB PD firewall that would only allow commands relevant to changing through, or have it generate synthetic responses that would e.g. never allow it to expose things like a mass storage interface. You might also need drivers depending on how you implement it. It would be a cool project / crowdsupply / Kickstarter though.

More info: http://www.usb.org/developers/powerdelivery/

Right now, USB-C is only just starting to get past the “which cables will physically harm my device with a given charger even though they plug in correctly” phase.

Re:“All accredited journalists at the #KimTrumpSummit get a ... by floatingatoll on Monday June 11, 2018 @12:45PM (#17285937)
In the case of a charger, you must always use a charge-stop adapter if you’re charging from a public charger. They’re cheap and a couple offer bulk discounts to companies.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by mimimihaha on Monday June 11, 2018 @12:58PM (#17286125)
Now thinking about it, if you made a malicious USB charging block that looks like the iPhone‘s and offered it to me, id probably fall for it.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by rbanffy on Monday June 11, 2018 @12:58PM (#17286130)
You can always learn how to make a UBB power-only cable out of a regular one.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by Steltek on Monday June 11, 2018 @01:06PM (#17286220)
Recommendations for a USB-C compatible one? USB-C significantly complicates a simple idea, unfortunately.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by floatingatoll on Monday June 11, 2018 @11:27PM (#17290499)
Which aspect of USB-C do you require to remain unaffected in transit?
Re:“All accredited journalists at the #KimTrumpSummit get a ... by rsync on Monday June 11, 2018 @01:10PM (#17286256)
"How is the regular guy supposed to figure out if a USB device is OK or not? I guess the easy answer is to say "Don't use an unknown device" but I don't think this is practical especially in the case of a charger."

I use a "USB Condom". My current USB Condom is this one:

https://www.amazon.com/PortaPow-Data-Blocker-Adaptor-SmartCh...

In fact, I sometimes even use it with my own, trusted, devices. For instance, I don't want my macbook itunes to know about my iphone so when I charge from my own laptop, I use the "condom".

I'm sure these exist for USB-C...

Re:“All accredited journalists at the #KimTrumpSummit get a ... by maxxxxx on Monday June 11, 2018 @01:18PM (#17286355)
Makes me wonder why manufacturers don't have a USB permission scheme like they have for apps. It would be nice to give a USB device only certain permissions like charging.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by ksk on Monday June 11, 2018 @01:27PM (#17286433)
The USB device itself tells the machine what its "unique" identifier is. If you use it for permissions, then it could just lie.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by untog on Monday June 11, 2018 @01:30PM (#17286464)
Anything software based would still be vulnerable. The only surefire way is to disconnect the pins, as these USB condoms do.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by astrodust on Monday June 11, 2018 @01:39PM (#17286529)
It must be hardware based. Like the USB bus can negotiate with your system and then upgrade the connection if the device passes.

Of course this would require cryptography to do properly so it'll never, ever happen.

Re:“All accredited journalists at the #KimTrumpSummit get a ... by manicdee on Monday June 11, 2018 @08:16PM (#17289731)
USB still involves software, and the code that runs the USB interface is invisible to the host computer. You have no way to verify that the cable or USB condom is not hosting malicious code.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by astrodust on Tuesday June 12, 2018 @12:47PM (#17295090)
I mean if the USB host device itself has specialized USB hardware that can lock the ports in power only until they're fully enabled by the OS, then you'd be in a better position.

Either that or a tiny switch beside each port to enable/disable the neutering feature.

Re:“All accredited journalists at the #KimTrumpSummit get a ... by bigato on Monday June 11, 2018 @01:29PM (#17286451)
Because anything software is hackable by definition
Re:“All accredited journalists at the #KimTrumpSummit get a ... by robbiet480 on Monday June 11, 2018 @01:32PM (#17286473)
iOS does as of iOS 12. You have to verify every USB data connection before data is shared.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by darklajid on Monday June 11, 2018 @11:31PM (#17290514)
Hey, I'm sorry to hijack this. Is there a way to contact you about rsync.net? Support hasn't replied for a week, Twitter seems unmonitored - don't know any other way but this right here.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by seanp2k2 on Monday June 11, 2018 @02:14PM (#17286835)
AFAIK they don’t exist for USB-C PD since it’s quite a bit more complicated than previous protocols (switchable source / sink, variable voltage
Re:“All accredited journalists at the #KimTrumpSummit get a ... by magnetic on Monday June 11, 2018 @04:20PM (#17288168)
How do you know you can trust the "USB Condom"?
Re:“All accredited journalists at the #KimTrumpSummit get a ... by lostlogin on Monday June 11, 2018 @01:13PM (#17286285)
And another dongle.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by ksk on Monday June 11, 2018 @01:39PM (#17286536)
One easy answer is to give people an "appliance"/task-specific computer instead of a general purpose computer. So the computer is essentially just a hypervisor that loads the appropriate appliance which only allows them to do specific tasks - one for banking, one for email, one for writing documents, one for browsing, one for gaming, etc.