back to article USB-C adds authentication protocol

The USB 3.0 Promoter Group has announced it has devised and will adopt a new “USB Type-C Authentication specification.” The specification means makers of USB devices will be able to encode them with information about their source and function. When connecting to those devices, machines like computers or phones will be able to …

  1. Timo

    I can't wait

    I can see this working both ways - how long will it take an OS vendor to blacklist every cable except for the ones that carry their brand?

    1. Dan 55 Silver badge

      Re: I can't wait

      I don't know about cables, but certainly only official chargers will be allowed as a charger loaded with malware will look like the real thing. As a side effect official chargers could come with USB-C cable that can't be detached.

      What was wrong with those chargers with just a pin connector...

      1. Dave 126 Silver badge

        Re: I can't wait

        >What was wrong with those chargers with just a pin connector...

        Not a lot - they were very ergonomic, much easier for people with limited dexterity or eyesight to use than microUSB. However, such people would benefit even more from charging docks or wireless charging solutions.

        Ultimately, phones have got smaller, so designers have looked at ways to save space. Phones needed a data connection anyway, and then the EU mandated microUSB.

        Most of the pin connectors were hard-cabled to the older, inefficient sort of power adaptor - the kind that was heavy and got warm during use.

        Ha, I even remember a mate's Nokia that had a pin connector for charging and a mini USB socket for data - but it wouldn't charge over miniUSB, which was just frustrating.

        1. Dan 55 Silver badge

          Re: I can't wait

          The EU mandating USB went wrong because manufacturers came up with their own ways of negotiating current draw over USB instead of following the standard just to save a few pence.

          I don't think having a pin plug implies that the charger must be inefficient, it was just that chargers then were less efficient than now.

          The Symbian 3 ones did charge over USB, but only at 500mA.

          1. Lennart Sorensen

            Re: I can't wait

            Oh good, so it was standards compliant. USB 1 and 2 explicitly allow up to 500mA and no more. USB 3 allows 900mA. Of course you can support more, but that's all the spec requires a port to support.

    2. Captain Queeg

      Re: I can't wait

      It's already there - an cheap unlicensed lightning cable might work today but is unlikely to work with the next generation of whatever you're charging with it. This brings the same lock in potential to USB.

      You're dead right - but the OEM cables will be marketed as assured quality or some such nonsense and the after market can either trial and error reverse engineer things or pay for the licence and pass the cost on.

  2. P. Lee

    This sounds like a good thing

    But I can't help thinking... vendor protection... HDMI/HDCP

    Cables should be dumb.

    1. DropBear

      Re: This sounds like a good thing

      Actually, on first read, this says nothing whatsoever about cables. It does say _chargers_ could be identified, but USB is point-to-point - there is a host and a device, no third parties on the wire, so a cable has no place to get in on the action. Tying pins here and there could just about be crammed into the spec later, but full fledged communication cannot occur with a cable unless it IS the host itself - in which case you cannot talk to any potential hosts in the charger itself (well technically you could try to make the cable some sort of one-port hub, but I don't see any evidence of that here). This seems to be all about authenticating _chargers_...

  3. Anonymous Coward
    Anonymous Coward

    Security?

    I wonder how they prevent copying the key off a whitelisted device onto either a cheap Chinese clone or an evil device that will try to compromise the USB host.

    What USB need is a way to limit devices to certain functionality - if I plug in a charger cable it should only be capable of providing power, it should be unable to do anything else. I don't know if the USB standard even allows for the host to do this - like for instance, only if I hold down the home button while plugging in my phone would I enable bidirectional data access on the USB port. Otherwise it would only be able to receive power, nothing else. That's a much better way of preventing rogue USB chargers, and something it would be impossible to overcome by simply copying a public key.

    1. Dave 126 Silver badge

      Re: Security?

      Another possible method:

      - Carry a short length of USB male > female cable that only has power pins connected. For the next few years, this would be a handy cable anyway, because it could be microUSB.female > USB.C.Male, thus allowing owners of new phones to use a common microUSB charger.

      A method to Doug S method has been implemented before - I've had gadgets that connect for power only (at a higher rate of mA) when turned off, and connect with data when turned on. It used to be (in USB 2) that many devices would charge more quickly on cables with the data pins shorted (AFAIK the thinking was to limit the draw gadgets would make on a host PC's USB bus).

      I am slightly wary of not being able to access a device's storage by USB if a hardware button is broken, but TBH that is the situation at the moment (to access the internal storage of an Android phone with a damaged digitiser you need to use USB OTG to unlock it - if you haven't previously turned on USB debugging).

      1. Halcin

        Re: Security?

        Dave 126

        >Carry a short length of USB male > female cable that only has power pins connected

        Nice idea but from the article:

        "Once USB-C becomes ubiquitous and makes a single wire responsible for carrying power and data, even the dimmest hackers will likely cotton on to the opportunities to craft crooked chargers or other evil devices"

        1. Anonymous Coward
          Anonymous Coward

          Re: Security?

          I personally would much prefer to keep a separation of power and data, for no other reason that I can then choose if I really want to permit a data exchange. I've never really trusted those airport mobile phone charges in that respect.

        2. Dave 126 Silver badge

          Re: Security?

          > Nice idea but from the article: "Once USB-C becomes ubiquitous and makes a single wire responsible for carrying power and data..."

          The article means *cable", not *wire". USB C still has dedicated power pins, discrete from its data pins. The 'short length of cable' I referred to would be one modified so that only its power pins were still connected. Such a solution will give the cautious / paranoid user more peace of mind than any software approach.

          A USB C pin-out diagram is here:

          http://bi9he1w7hz8qbnm2zl0hd171.wpengine.netdna-cdn.com/wp-content/uploads/2014/09/USBTypeCPinOutDiagram.jpg

        3. Cynic_999

          Re: Security?

          "

          Nice idea but from the article:

          Once USB-C becomes ubiquitous and makes a single wire responsible for carrying power and data,

          "

          It's still entirely possible. Just carry a cable or adaptor that has a low-pass filter (i.e. choke & capacitor) to allow power through but prevent data.

        4. Lennart Sorensen

          Re: Security?

          That would be wrong. USB type C will allow a single cable to carry both power and data. It does NOT make a single wire within that cable do both. The author of the article is wrong. Of course all USB did that but power was expected to only go out a USB host port, not in, while type-C allows both directions (as the new Macintosh devices take advantage/abuse of).

          1. Boothy

            Re: Security?

            Doesn't usb still need the data connections to negotiate any current above the minimum?

  4. Slx

    Phones all need the ability to completely disable everything other than the charging function on their ports.

    Some has a Do you trust this computer message when you plug in.

    We really need something like:

    A prompt for:

    Charge only?

    Data connection?

    Audio accessory?

    With the phone requiring a pin unlock etc before doing anything other than charging.

    For extreme security phones, an extra dumb charging port without any data services at all might be useful.

    You could easily have a USB C data port on the top with a cover and a changing port on the bottom.

    Bottom port only capable of charging the battery.

    1. Dave 126 Silver badge

      Some Sony Xperia phones had a similar feature - two external nubbins mounted on the side of the phone, for charging from docks. Of course the required a non-standard cable or dock to use, so isn't directly applicable to the scenario sketched out here (i.e. you want to use an untrusted but common power plug. )

      1. Tom Chiverton 1

        Th adapters for the Xperia side charging connector are cheap enough to scatter them around your life:

        https://www.amazon.co.uk/gp/product/B01700P9BM/ref=oh_aui_detailpage_o03_s00?ie=UTF8&psc=1

    2. phuzz Silver badge
      Thumb Up

      I've noticed that in the Cyanogenmod 13.1 nightlies that it defaults to Charge Only when you first plug in a USB cable, and you have to choose to select either Media Device or Camera as options if you want to transfer files.

      Slightly annoying when I forget and can't work out why my computer hasn't detected my phone, but otherwise it makes sense.

  5. John Sturdy

    Yes, my first thought was "Apple are going to love this." For better or for worse.

  6. theOtherJT Silver badge

    To be fair to the car park people...

    ...I'm actually expected to do this by work in the hope we might find out who it belongs to and return it to them. I managed to get the responsibility passed to me from the Receptionists who usually manage lost property because I at least have a bunch of disposable linux VM's to try it on.

  7. wolfetone Silver badge
    Thumb Down

    End Of Free Charging

    That'll be it now for going to the airport or pub and charging your phone up for free. And what's to say the owner can't relay adverts through the phone while you use their electricity?

    It's just another step on the road back to using a Nokia 3310.

  8. Elmer Phud

    Certifiable?

    "only allowing charge from certified USB chargers."

    Hmm, certification is one of those things that naughty people like to play with (and flog off at reasonable rates).

  9. DrXym

    Great but

    There is a big risk that this could encourage the likes of Samsung et al to gimp their phones so they're "optimised" for their own brand chargers and discriminate against other makes.

    It's bad enough that Apple do this but potentially everyone could now. In fact Apple could even switch from own connector for USB and still have the means to screw over the user by controlling what peripherals and devices they are allowed to plug into it.

  10. allthecoolshortnamesweretaken

    "Anyone want to bet when The Register will write up a story about the first such crack?"

    Depends on how alert you guys are.

    The first crack itself? Less than 24 hours after the first cables can be purchased.

  11. Horridbloke

    Is it possible to build a USB-C charge "condom" with some filtering to stop any signalling?

    1. Anonymous Coward
      Anonymous Coward

      Probably not without cutting the charge down to 900mA. It's like that with MicroUSB, too (a cable that has ONLY power, the phone only draws 500mA max as per the spec, to get fast charging you need the data pins).

    2. Marcel

      It already exists for a while and it was indeed originally called the USB Condom: http://syncstop.com/

  12. Timo

    Cue expensive overpriced cables

    Also - if these cables need to do sophisticated encryption and handshaking so that the device will accept them, does it also mean that the cable itself needs to have expensive active components? One more excuse to crank up the price, argh.

    @horridbloke - there is a device that is available that "neuters" a USB connection so that only power gets through. It was reported on El Reg some time ago, in fact a little googling finds the USB Condom http://int3.cc/products/usbcondoms, or there are many instructions online on how to create your own. Granted that is for traditional USB but aren't the cables interchangeable on the host end?

    1. Horridbloke

      @Timeo

      Yes, there are power-line-only dongles for traditional usb connectors. The issue with USB-C is power and signalling on the same pin, so that traditional approach doesn't work. I'm wondering whether the introduction of a cunning capacitor or something (I don't do hardware) would enable current flow but wreck the signalling needed for any communication. The big question there is whether some signalling is needed to negotiate / request current - something USB devices are supposed to do but don't always.

      1. Dave 126 Silver badge

        Re: @Timeo

        >The issue with USB-C is power and signalling on the same pin

        Can you expand upon that, Horridbloke? On every Type C pin-out diagram I can find, power and data are on separate pins.

        There are some further pins called 'USB power delivery communication' but they are just data pins dedicated to communicating power draw and the like.

  13. NotWorkAdmin

    Then the name needs to change...

    USB will just become SB. We could use the space we've saved by making it SOB as that's what I'll be crying out when I can't charge my phone as a result of this.

  14. Swarthy

    Will this allow the host to disable power?

    As described, this looks like it could be a preventative for the "bank of capacitors in a thumbdrive" attack. If said thumbdrive does not authenticate itself, it gets no power, and cannot fry the USB host. Or would said sabotage-minded thumbdrive be able to send the current across in lieu of authentication and do the damage before the host can lock it out?

    1. Charles 9

      Re: Will this allow the host to disable power?

      Or worse, the overloader can just include a bit of logic to impersonate a proper device, get authenticated, THEN fry the host. How will this standard prevent impersonation attacks?

    2. Cynic_999

      Re: Will this allow the host to disable power?

      "

      As described, this looks like it could be a preventative for the "bank of capacitors in a thumbdrive" attack. If said thumbdrive does not authenticate itself, it gets no power, and cannot fry the USB host."

      How could a device authenticate itself if the host does not supply it with power first?

      1. Charles 9

        Re: Will this allow the host to disable power?

        Handshake phase. Host has to know what device to which it identifies in order to be able to perform blacklist/whitelist checking. It's standard for USB.

      2. EveryTime

        Re: Will this allow the host to disable power?

        How with this stop the "voltage multiplier in a thumb drive case" scenario?

        Just mix a certified device with the malicious hardware, and piggyback on the power. Sure, it will cost a bit more. But you probably are especially cost-sensitive when building a destructive device.

        Nor will this stop mis-wired cables destroying devices.

  15. Kelenling

    ESEEKGO Type C Cable You Can Try

    I am using ESEEKGO type c cable for my phone. It really high quality and charge quickly. You can get it on amazon by search "ESEEKGO type c cable". Hope this helps!

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Other stories you might like