Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How reliable is encryption used to encrypt Azure service packages?

This question is obsolete. Starting with SDK 1.5 packages are no longer encrypted.

Turns out Azure role service packages are encrypted so that once a package is produced only Azure runtime can decrypt it.

Good, but as Bruce Schneier says,

There are two kinds of cryptography in this world: cryptography that will stop your kid sister from reading your files, and cryptography that will stop major governments from reading your files.

and I couldn't find any description on what cryptography is used in the scenario above - only brief statements that "it is there" which isn't very convincing.

How good and reliable is the cryptography used for encrypting the service packages?

like image 647
sharptooth Avatar asked Nov 20 '25 14:11

sharptooth


2 Answers

If you find this question interesting, be sure to consider who this encryption is supposed to defend against.

Consider the following attackers:

A1) An internal Microsoft hacker
A2) Rogue internet hacker
A3) A developer in your organization who creates the cspkg files
A4) A person in your organization who does deployments

Microsoft doesn't publish enough details to evaluate A1, but you can suspect this encryption is required as defense, or defense in depth in this complex scenario.

This offers no defense against A2, as your package is stored in a storage account for which an attacker must have your storage key.

No defense is added for A3, since A3 already had access to the unencrypted cspkg bits.

You get defense from A4, although in lots of organizations there is no difference in trust levels between A3 and A4.

To get defense against A3 or A4, read my answer to How paranoid should I be about my Azure application binary files being stolen? .

like image 139
Igor Dvorkin Avatar answered Nov 23 '25 02:11

Igor Dvorkin


Look in your %Program Files%\Windows Azure SDK\v1.4 directory and you will find the EncryptKey.cer. The package is encrypted using this public key (assymetric). Only the fabric controller has the private key and can decrypt. It's just standard RSA.

like image 37
dunnry Avatar answered Nov 23 '25 04:11

dunnry



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!