3 ms·
Well, yes, technically any amount of obscurity you add to your service increases your overall security. So let's go. You make a 256 bit level key. That's 256 b
by marcosdumay 10y ago
Well, yes, technically any amount of obscurity you add to your service increases your overall security.
So let's go. You make a 256 bit level key. That's 256 bits of security there. For each binary thing that must be guessed together with the key (let's call those multiplicative), you gain an extra bit there. So, if you could somehow (what you can't) not disclose your encryption algorithm, you'd gain some easy 3 extra bits of security there.
Now, if you have a secret that can be verified independently from your other secrets (let's call those additive), you'll gain one extra bit of security for every secret that has your overall security level. That is, if you add a 256 bit secure port knocking step (16 knocks on completely random pots) to your 256 bit secure key, you'll get 257 bits of security overall. If you add a 16 bit non-standard port, you'll get some fraction of a bit, starting with some dozens of zeros after the comma.
Thus, since security is all about trade-off, think very hard about the costs of any additive measure you want to create.
- stestagg 10y agoI think this reasoning is missing something. The maths assumes that the security of your system is entirely defined by the complexity of your key. Obscurity gives you the option of hiding the /lock/, which is different.
- deleted 10y ago[deleted]
- marcosdumay 10y agoI think you should read my comment again. Anyway, hiding your lock is additive (spreading fake locks would be multiplicative). How many bits of entropy does your lock obscurity have again? What does it cost?
- contravariant 10y agoI think you're on to something, it makes sense to define the 'key' to represents everything that is secret, making "security through obscurity" contradictory. That said, the way you treated the additional information is somewhat disingenuous. It disregards that even though there might be 2^16 options they're not equally likely, assigning the same amount of information to each doesn't really represent the situation well. An alternative method would be to measure the information using the Kullback-Leibler divergence, which represents the information disadvantage a distribution has to the actual distribution. In this case the attacker would believe the key to have a probability distribution, whereas the target knows the key exactly. In which case the expression for the KL-divergence is simply -log(p), where p is the probability the attacker assigns to the actual key. When there are N options, all equally likely this agrees with the usual notion of entropy. However if the attacker assigns a very low probability to some option (i.e. using a different port) then the effective key complexity could become quite high. If the attacker considers the key impossible (i.e. p=0) the the effective key complexity would even be infinite. In the article they gave an example of 18,000 connections vs 5, which would effectively give you 12 extra bits of security (with very little effort). I'm not sure entirely sure what the optimal tactic would be for searching a non-uniformly distributed key space, but from it's definition the KL-divergence does measure the amount of information to determine the 'actual' distribution. I strongly suspect that there is no way to get around this (on average).
- marcosdumay 10y agoYou do have a point. The distribution is not uniform and my model needs this correction. Yet, randomly assigning a port in my (wrong) model is already 16 bit strong. Looks like the reality penalizes it even more than the math. And yes, you'll still get a number with a few dozen zeroes after the comma of extra entropy.