TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Security is Mathematics

71 点作者 s-phi-nl将近 14 年前

12 条评论

marshray将近 14 年前
<i>If you want someone to understand security, just send him to a university mathematics department for four years.</i><p>This is a testable assertion.<p>I've met a bunch of people in data security in the last few years. In fact, I do know one with a math degree and he's very sharp.<p>But I still think the premise is ridiculous. Math proofs are tall towers of lemmas and theorems existing in an insulated universe.<p>Logical and rational thought are critical, yes, but in real world security you must be very careful not to build your towers that high. Instead you need a defense-in-depth strategy, one which assumes at least some of your assumptions are going to be violated on a regular basis.<p>Seen in a crypto paper:<p>* An attack on [cryptographic primitive] A implies an attack on [cryptographic primitive] B.<p>* B is not the subject of this paper.<p>* Therefore, A is proven secure.
评论 #2628047 未加载
评论 #2628151 未加载
评论 #2628746 未加载
FilterJoe将近 14 年前
I would argue the opposite: The "security is mathematics" mindset leads to overall system designs that are often less secure. How? The mathematically inclined security experts fail to incorporate (mathematically fuzzy) human factors such as usability and carelessness.<p>Typical example: Require users to change a password once/month and there's a maximum of one month's time when a password thief has access to an account. True enough. So what do users do (and let's thrown in a requirement for at least one capital letter, at least 1 digit, at least one symbol, 9 character minimum)?<p>Month 1: Charlie1!<p>Month 2: Charlie2!<p>Month 3: Charlie3!<p>Month x: Charliex!<p>Meanwhile, formulations for password security that strike a reasonable balance between security and usability (and thus actually get used) are rejected immediately because of mathematical edge cases.<p>Here's my formulation for a balanced security approach for home users:<p>"Use a password manager to assign unique, random 15 character passwords for all accounts, protecting them with a strong master password."<p>I can think of quite a few edge cases where this system will fail. Keystroke logging is the most obvious. In actual practice, there has not yet been a case of a password database being breached due to keystroke logging the master password (at least not among the market-leading password managers).<p>In actual practice, taking into account human factors, this system is more secure than that practiced by the vast majority of end users. And far more secure than rotating Charliex! passwords.
评论 #2628485 未加载
评论 #2628354 未加载
bdhe将近 14 年前
Since the article references Bruce Schneier, he gave an interesting TED talk where he once again describes the usability/security tradeoff and how humans are very poor (because of hardwiring) perceivers of risk. This might also be why one needs to be "trained" to get a security mindset.<p><a href="http://www.ted.com/talks/bruce_schneier.html" rel="nofollow">http://www.ted.com/talks/bruce_schneier.html</a>
udoprog将近 14 年前
There are so many instances where non-mathematical variables play an important role in authoring security conscious code. Yes, most security issues arise from not checking edge cases, but you have to know what they are. Mathematics will surely adapt you into thinking about this practically, but it will never teach this.
basugasubaku将近 14 年前
Dupe: <a href="http://news.ycombinator.com/item?id=2222191" rel="nofollow">http://news.ycombinator.com/item?id=2222191</a>
jdp23将近 14 年前
Nope. Security is primarily social science and engineering. Mathematical training can help [and of course is crucial for areas like cryptography] but it's far from the only way to get a security mindset.
评论 #2628146 未加载
kragen将近 14 年前
Well, he's basically correct — unwarranted assumptions create security holes. But the people commenting here that usability problems create security holes are also correct. If you have a system with no usability problems and no unwarranted assumptions, is it therefore secure? Or are there other ways that security holes arise?
评论 #2629089 未加载
评论 #2628590 未加载
评论 #2628419 未加载
dmarquis将近 14 年前
Its a weak counterargument to Scheiner's. The ability to think logically (one example of which is writing proofs though I think writing good code requires it as much) is no protection against attacks you don't know exist. If we knew exactly how security systems could be broken then building an unbreakable protocol would just require thinking about how to satisfy a bunch of constraints (which mathematicians and computer scientists are trained to do). But, in addition to being resistant to known attacks, a new security protocol should be stress tested by trying to think of new attacks that could break it. Most university courses on security don't emphasize this way of thinking. That's all Scheiner is saying. This guy doesn't mention anywhere how a math degree trains you to do that.
评论 #2629128 未加载
mncaudill将近 14 年前
And this is why I trust my files with this guy.
评论 #2628206 未加载
评论 #2628209 未加载
boyter将近 14 年前
Interesting read. Falls into what I feel is a mindset mastery. Some individuals are just good at some things for whatever reason. As an example the best software testers I know have an almost instinctive ability to find obscure bugs.<p>No idea what can get you to land in this zone (training or otherwise) but if you do fall in one you tend to be very good at whatever it is your brain is wired for.
dfc将近 14 年前
Is this a joke? Navel gazing and patting one's self on the back in one post. This makes it to the front of HN?<p>I guess he might be on to something. Every philosopher I have ever read has always treated assumptions in a willy-nilly matter. Not to mention any decent legal opinion.<p>Good security requires critical analysis. The same thing can be said for jurists, inventors, supply-chain logistics...etc.<p>What a surprise the math guy thought math people have such insight. What's that saying about carpenters and their hammers? At least carpenters don't go around telling everyone that everything is a nail...
评论 #2628766 未加载
评论 #2628276 未加载
ihodes将近 14 年前
Security <i>is</i> mathematics.<p>People just occasionally don't use the system correctly: that isn't the fault of the system (in terms of security).