Smart grid security WORSE than we thought

OSGP's DIY MAC is a JOKE

Parking meter FAIL from Ryan Stele's Flickr account  https://www.flickr.com/photos/tweek/139509551/in/photolist-dk2k6-8VcmSf-5w27pU-7RdimR-7RdiiK-7RdifK-7Rgz8f-7Rdiai-czUVBh-9Ls61i-5cY5jG-9bGK2Y-6VH3Xz-5YVGNT-abaRJ9-6PjTC5-6opqMB-jitAoe-5Yvee7-65tNZD-5xf3hB-a9Zegh-845DZg-ocfXQT-bfZB5z-aWWvax-bVe3vu-6yra6f-6yra4A-8nudtt-6WhDiL-6qNQyT-7YYReC-6yra5N-6yra3w-6yra2Y-6yn2HX-a6MPYs-6yn2Qx-6yn2Pv-6yra49-6yra2q-6yn2Hx-6yra57-6qT1yb-55rYVK-6yra75-6yr9ZQ-6odx71-68EVsF

Don't try crypto at home, kids: the Open Smart Grid Protocol project rolled its own crypto and ended up with something horribly insecure.

This paper at the International Association for Cryptologic Research explains big issues with the OSGP crypto protocol deployed in as many as four million smart meters and devices.

The authors, Philipp Jovanovic of Germany's University of Passau and Samuel Neves of Portugal's University of Coimbra, described the OSGP's encryption as “a non-standard composition of RC4 and a home-brewed MAC, the 'OMA digest'.”

It's the MAC that's the problem, with the crypto-boffins finding that only a handful of queries to an “OMA digest oracle” are needed to recover the keys the system generates.

The digest has a bunch of flaws, they write:

  • Zero-byte message padding “results in messages with any number of trailing zeroes sharing the same tag”; and
  • The relationship between the OMA digest's state and the message is fully reversible.

The upshot is that the OMA digest is “extremely weak, and cannot be assumed to provide any authenticity guarantee whatsoever”.

One attack needed just 13 queries to an OMA oracle to recover the 96-bit secret key; “a more sophisticated version breaks the OMA digest with only 4 queries and a time complexity of about 225 simple operations”; while with one valid plaintext-tag pair, the key can be recovered with 144 message verification queries, or “one ciphertext-tag pair and 168 ciphertext verification queries”.

Perhaps coincidentally, the OSGP has announced it's working on an update to its security standards. ®




Biting the hand that feeds IT © 1998–2018