News for hackers. Stuff that matters.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by ea016 on Monday June 11, 2018 @12:10PM (#17285487)
Great opportunity to remind people: never ever plug an unknown USB device in your computer. Even USB-C chargers can infect your machine as outlined here: https://twitter.com/_MG_/status/949684949614907395
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.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by swebs on Monday June 11, 2018 @12:12PM (#17285510)
>Even USB-C chargers can infect your machine

Why would anyone assume otherwise?

Re:“All accredited journalists at the #KimTrumpSummit get a ... by ramy_d on Monday June 11, 2018 @12:34PM (#17285790)
People assume cables are dumb metal connections, nothing more. It doesn't help anyone to be condescending about op-sec.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by gascan on Monday June 11, 2018 @01:24PM (#17286408)
Power/charging cables in particular.

After all, when was the last time your power drill caught a virus from your extension cord?

Re:“All accredited journalists at the #KimTrumpSummit get a ... by mdip on Monday June 11, 2018 @12:29PM (#17285716)
Outside of this audience, it's rather common[0]. It's not something that people, outside of these communities, harp on all that much. But even take things we do harp on, like not reusing passwords, are still things that the majority of people do[1].

I worked in various security positions at one of the US's biggest ISPs and routinely brought these sorts of things up to family members. I am embarrassed by the kinds of practices my family employs. The excuses vary but most of them fall along the lines of the same excuses smokers give when asked about lung cancer risks: "It Won't Happen to Me(tm)".

Even within our industry, bad practices exist all over the place. An example I often point to is Code Signing certificates[2] -- I went through the trouble of generating a CSR offline using a Linux live CD, backed up the private key to an encrypted thumb drive and placed the result on a Yubikey to protect it when I need to sign something. The best part was sorting out how to actually give the CSR to the CA I used to purchase the key from. They offer all kinds of convenient, (IE and Firefox-only) in-browser mechanisms which result in generating the key online in a potentially already-compromised machine, but I ended up having to go through several steps using phone support to get my CSR to the CA. The way they did things encourages people to not think about protecting the private key; simply leaving it on an unencrypted volume with (likely) no other encryption used to protect the key.

[0] https://thenextweb.com/insider/2011/06/28/us-govt-plant-usb-... And these are specifically the kinds of people that should expect to be targets of an attack like this.

[1] https://digitalguardian.com/blog/uncovering-password-habits-...

[2] I mention this kind of certificate because its credentials are such that an individual or company is named -- it's meant to identify a person or a legal entity, not a domain name -- and things signed with it result in that legal entity or person's legal name being displayed on launch in operating systems like Windows. It's something that you really wouldn't want to have fall into the wrong hands lest your name end up being prominently displayed prior to the installation of malware.

Re:“All accredited journalists at the #KimTrumpSummit get a ... by eugeniub on Monday June 11, 2018 @12:20PM (#17285590)
Not everyone is an opsec expert
Re:“All accredited journalists at the #KimTrumpSummit get a ... by mannykannot on Monday June 11, 2018 @12:24PM (#17285654)
Indeed - and an opsec expert needs to have a clue about human nature, anyway.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by swebs on Monday June 11, 2018 @12:41PM (#17285888)
Ok, but why would you assume that USB-C is somehow more secure than USB-B?
Re:“All accredited journalists at the #KimTrumpSummit get a ... by okmokmz on Monday June 11, 2018 @12:51PM (#17286013)
My guess would be that many USB-C products are charging cables, dongles, and other items that the average user would not associate with having the capability to store data making them inherently "safe" in their eyes. USB-A, on the other hand, is commonly associated with storing data, and the majority of user awareness and education about the danger of unknown devices is focused on flash drives. For these reasons I can see how someone without technical experience may believe that flash drives specifically are potentially dangerous, while believing that other USB-A/USB-C cables/adapters/chargers are safe. In my experience most users don't even know what USB-B is
Re:“All accredited journalists at the #KimTrumpSummit get a ... by untog on Monday June 11, 2018 @01:31PM (#17286470)
Because they are chargers. My 2015 Macbook charger is not vulnerable, my 2016 Macbook charger could be. It's not reasonable to assume that end users intuitively get that.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by dabernathy89 on Monday June 11, 2018 @12:22PM (#17285619)
I'm a web developer and I had no idea ¯\_(ツ)_/¯
Re:“All accredited journalists at the #KimTrumpSummit get a ... by bluesnowmonkey on Monday June 11, 2018 @12:54PM (#17286070)
We assume that bridges won't collapse, planes won't fall out of the sky. Engineers are supposed to build things that are safe to use. That's a reasonable expectation.
Re:“All accredited journalists at the #KimTrumpSummit get a ... by overcast on Monday June 11, 2018 @12:57PM (#17286116)
You're more naive than the people you're referring to.