Is it Secure?September 26, 2015 · 6 minute read · Comments
Q: Is it secure?
A: No it is not. Security is never binary.
Q: OK, how secure is it?
A: It seems like you just asked that question.
Q: No, the first question was if it’s secure, the second question was how secure is it.
A: Well now that wasn’t even a question at all.
There is no such thing as perfect security
Most information security practitioners do a poor job explaining the relative nature of security. Secure relative to what? A bot that looks for un-patched systems? A determined hacker? A nation-state?
Security is a “scale of difficulty” – like mountain climbing. Everest was thought to be unclimbable until Sir Edmund Hillary did it. Everest was finally tackled by a massive expedition with enormous resources. The 1953 expedition totaled over 400 people, including 362 porters, 20 Sherpa guides and 10,000 lbs of baggage. It was analogous to a military assault.
Given enough time and resources any security can be defeated. The main goal of security is to raise the time and resources required to an unreasonable level. But how do you really know how secure something is?
Like mountain climbing, security can and should be rated/evaluated based on actual experience. Also like mountain climbing there are initial conditions that indicate a “tough climb” or an easy one.
Conditions for high security levels
- The technology is widely deployed/adopted. Note that being widely deployed does NOT mean the technology is secure (Windows XP was widely deployed). It simply means that we are more likely to have lots of data about its security performance. The more opportunities and incentives for attack will give us more data, which increases our confidence of it’s “rating”.
- The technology or system is attacked frequently with great intensity. Ideally because of being widely deployed, it would be used is places that expose it to attack. Ideally those attacks are unrelenting. This also increases our data about its security performance.
- The technology is simple to install and configure. Many supposedly “secure” systems are dependent on how they are installed, or post-install “hardening”. Systems and technologies must be “secure by default” when installed and easily installed properly by non-specialists.
- Open code base. An open code base allows for infinitely many sets of eyes to review the code, and infinitely many developers to fix any vulnerabilities found. Open code bases do NOT mean the code is secure. However, there are generally fewer issues, and when issues are found they are addressed faster. They also tend to be widely deployed and tend to be less complex to install and maintain.
- Bug Bounty Program. Public, open Bug Bounty Programs encourage vulnerability research in a responsible manner. As an economist by training I believe when the rewards for good behavior are there you tend to get good behavior. If not, only bad behavior is rewarded.
Conditions for low security levels
- Not widely deployed The less widely the technology is deployed and used the fewer opportunities we have to gather good data about it’s security profile.
- Not frequently attacked, or successful attacks are generally not disclosed. This goes hand in glove with the above point. One issue with vendor sofware used in specialized applications within companies is that successful attacks may not be recognized/known, and/or they may not be disclosed. This gives us low information quality about the actual security performance.
- Difficult to install and configure properly. ERP applications such as SAP are notoriously complex and difficult to install. The database has over 70,000 tables excluding Y and Z tables, the overall system takes days to setup by highly trained specialists. The attack surface is quite large. SAP may not be a good example because security is good by default and we rarely hear about successful breaches - but the risk in the complexity is real.
- Closed code base If you have to ask your vendor “is it secure?” then it’s not. Security isn’t something you can provide an answer to unless you’re selling snake oil. If the vendor says: “It’s secure. We did not put in any back doors. We audited the code ourselves. There are not any kernel level hacks, root kits, or otherwise. This has been tested against a variety of anti-virus scanners and none of them flagged anything. We’re very good. Please, please trust us.” then you should know that they are telling you what you want, or need to hear. You could read the WinXP pamphlet on security back when it was released and it had endless bullet points about how secure it was. It was probably the least secure software in the history of computing based on actual attacks after the fact.
It’s secure… until it’s not
In the 1770s Joseph Bramah created a lock that was vastly superior to any the world ever seen. Bramah believed it was 100% theft-proof. Bramah was so confident in his design that he published a pamphlet detailing exactly how it worked and he put it in the window of his London storefront, and painted on it a challenge:
“The artist who can make an instrument that will pick or open this lock shall receive 200 Guineas the moment it is produced.”
Then Jeremiah Chubb created the Chubb detector lock. The way Chubb’s lock worked was that if a lock picker tried to lift one of the tumblers up too high, a latching mechanism would trigger, causing the lock to seize up. When that happened, even the key wouldn’t open the lock. To reset the lock, the owner would have to put in a different key and rotate it in the opposite direction to reset the tumblers.
Thus, if lock owners went to unlock a chest, or a vault, or a front door, and found that their key didn’t work, they would know that someone had tried to get in—and that they had failed.
For 70 years, the names Chubb and Bramah meant “perfect security”.
In 1851, London was hosting The Great Exhibition—the first international exhibition of manufactured products. One of the attendees was A. C. Hobbs, an American locksmith. Back in the states, Hobbs had made a name for himself by showing bank managers that their locks could be easily picked, and convincing them to buy one of his. Hobbs was selling lots of locks.
On day one of the exhibition, Hobbs publicly announced that he would pick the Chubb detector lock — the one that stops working if you pick it incorrectly. It took Hobbs about 25 minutes. And the way Hobbs did it was to use the lock against itself. He would pick it until he tripped the detector mechanism, causing the lock to seize up. That would give Hobbs information about how it worked, and then he would pick the lock in the opposite direction to reset the detector. He’d go back and forth firing and resetting the detector until the lock told him everything he needed to know about how to get it open.
But the Chubb detector lock was really just a warm up. The main event was the Bramah safety lock—the one with the challenge painted on it in gold lettering, which had been sitting Bramah’s storefront window for 70 years, unbeaten.
After working on the lock for about 52 hours over the course of fourteen days, Hobbs opened it.
Overnight, the feeling of perfect security had evaporated. And we have never gotten it back.