News for hackers. Stuff that matters.
Re:Kaspersky: SSL interception differentiates certificates w... by astrodust on Tuesday January 03, 2017 @04:34PM (#13313334)
A briefcase full of cash could easily get a "bug" like this introduced into a security package.

I'm not saying this is the case, but given the current climate, it's hard to say it isn't.

Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @04:35PM (#13313345)
You can say that about any kind of product that everyone deploys. All software has bugs, most bugs are exploitable.

So, no, it's easy to say that it isn't.

Re:Kaspersky: SSL interception differentiates certificates w... by btilly on Tuesday January 03, 2017 @07:19PM (#13314565)
So, no, it's easy to say that it isn't.

It is easy to say whatever you want, but impossible to prove either way.

Kaspersky comes from Russia, and has high level connections within the Russian government. Past actions (eg their analysis of Stuxnet) have been in line with Russian foreign policy goals.

Everything that they do is easily explained by their being a normal company. But multiple things that they have done fit very well with their working for Russian policy goals in a smart way. Which theory you find more plausible depends on your level of paranoia about Russia, and how much pressure you think that Putin would bring to bear behind the scenes to force cooperation. And even if they are subject to state backdoors, any particular one might or might not be one.

I personally am inclined towards paranoia. Russia using Kaspersky would be perfectly in line with standard fare in lots of countries. For example here in the USA look at how the NSA created the FREAK attack. Or look at Lenovo's use of Superfish in their BIOS. Why would we expect Russia to be more restrained than other state actors with as tempting a channel as Kaspersky? I see no reason to expect that. No reason at all.

Re:Kaspersky: SSL interception differentiates certificates w... by idlewords on Tuesday January 03, 2017 @07:24PM (#13314585)
Because the simpler explanation (that this is a stupid bug) is borne out by the uniformly horrible state of AV software.
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @07:37PM (#13314674)
And also the relatively limited capability it offers to attackers, compared to other bugs in AV software.
Re:Kaspersky: SSL interception differentiates certificates w... by btilly on Tuesday January 03, 2017 @08:49PM (#13315033)
Now THAT is a good reason to think that this particular item is not intentional.

But I would still bet money that there is at least one intentional hole, somewhere.

Re:Kaspersky: SSL interception differentiates certificates w... by idlewords on Tuesday January 03, 2017 @09:25PM (#13315186)
You can probably identify it by looking at parts of the code that are unusually free of bugs.
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @09:09PM (#13315110)
I would not take the other side of that bet.
Re:Kaspersky: SSL interception differentiates certificates w... by astrodust on Tuesday January 03, 2017 @04:45PM (#13313408)
This bug is so shockingly stupid you have to wonder if it's malice or staggering incompetence, so either we must admit that Kapersky has no business staying in business, or they're willing to overlook little "mistakes" like this.
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @04:45PM (#13313417)
This is exactly what people said about the Apple "goto fail" bug. The conspiracy theories were silly then and they're silly now.
Re:Kaspersky: SSL interception differentiates certificates w... by astrodust on Tuesday January 03, 2017 @04:51PM (#13313469)
It used to be a "conspiracy theory" that the government was reading all your email, but it's turned out to be a fact.

It's worth noting the "goto fail" bug was likely exploited, so it had value to someone. As has been shown through various leaks, the NSA and other entities like it have a war-chest of these toys. Things that used to be "you're just being paranoid" type concerns are now "we may never know" ones.

Regardless of the origin or intent, it still paints Kapersky in a very, very bad light. There's no escaping that.

Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @04:57PM (#13313510)
It's still a conspiracy theory that the government is reading all your email!
Re:Kaspersky: SSL interception differentiates certificates w... by cryptarch on Tuesday January 03, 2017 @05:44PM (#13313917)
Wasn't it proven they tap most if not all internet backbones? If so, they can (like all ISP's together) read all unencrypted email, and most email is still sent unencrypted.

I don't really care about the difference between their "collecting" (= processed by a human) and regular human's collecting (getting it on gov't controlled storage media), fact is they have built the infrastructure to do just what that theory claims, have incentives to do it and no disincentives to not do it.

You call it a conspiracy theory, I call it a "very likely to be true" theory.

It is also a likely target of media manipulation. It's not quite the same as saying "evolution is just a theory", but maybe that's just because secularism is so popular now.

Re:Kaspersky: SSL interception differentiates certificates w... by throwaway91111 on Tuesday January 03, 2017 @05:15PM (#13313667)
I'm not sure you can call government itself a conspiracy.
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @05:17PM (#13313692)
There is in fact no evidence that the government (any government) is "reading all our emails", or has had the access to do that. There is, on the other hand, a virulent conspiracy theory that the PRISM disclosures from Snowden revealed NSA's ability to do that; that claim was so false that Greenwald now (somewhat deceptively) denies he even acknowledged it.
Re:Kaspersky: SSL interception differentiates certificates w... by throwaway91111 on Tuesday January 03, 2017 @08:45PM (#13315014)
Unless I'm missing something, the national security letters allow just that. My point stands.
Re:Kaspersky: SSL interception differentiates certificates w... by b2600 on Tuesday January 03, 2017 @10:25PM (#13315422)
That would be targeted to individual(s) not "all email from everyone" NSLs target a service or an individual or a corporation. Bad as that is, it's not intercepting, storing, scanning every email.
Re:Kaspersky: SSL interception differentiates certificates w... by throwaway91111 on Wednesday January 04, 2017 @02:17AM (#13316324)
I suppose it's how you choose to interpret other people. They may not read everyone's email, but they certainly can read anyone's. This was always the scary part to me.
Re:Kaspersky: SSL interception differentiates certificates w... by madgar on Tuesday January 03, 2017 @10:21PM (#13315409)
National security letters target individuals and aren't sent in enough volume to cover more than 0.01% of "everyone's emails".
Re:Kaspersky: SSL interception differentiates certificates w... by throwaway91111 on Wednesday January 04, 2017 @11:41PM (#13324801)
Who are you quoting?
Re:Kaspersky: SSL interception differentiates certificates w... by jamesrom on Tuesday January 03, 2017 @05:02PM (#13313553)
Apple's "goto fail" bug is completely different: it was not a design flaw, but a merge error. Hanlon's razor applies sufficiently.

But anyone with a basic understanding of information security would know that keying by truncated MD5 is certainly a bad idea. This is not just stupidity. This is not accidental. This design not only flies in the face of everything you want from a cert store, but is so blatantly bad that surely more than one person at Kaspersky was in on it.

Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @05:04PM (#13313562)
I don't know why you're operating from the presumption that most security people know anything at all about basic cryptography, because practically none of them do. Cryptography seems like it should be a general topic in information security, but it isn't; it's very much a specialist topic. This is far, far from the dumbest crypto bug I've seen in a security product. You're simply wrong about this.

If you'll take a second to look at the "goto fail" threads on HN, by the way, you'll see people every bit as committed to the idea that "goto fail was an inside job" as you are to this bug being enemy action.

Have you taken a second to even think about how this precise bug even makes sense as an implant? Hint: it does not make sense as an implant.

Re:Kaspersky: SSL interception differentiates certificates w... by jamesrom on Tuesday January 03, 2017 @05:34PM (#13313830)
> I don't know why you're operating from the presumption that most security people know anything at all about basic cryptography

I don't know why you're operating from the presumption I'm talking about security people in general. I'm talking about the people at Kaspersky who were tasked with writing a SSL certificate store. I will also quote the bug report: "You don't have to be a cryptographer to understand a 32bit key is not enough to prevent brute-forcing a collision in seconds. In fact, producing a collision with any other certificate is trivial."

> Have you taken a second to even think about how this precise bug even makes sense as an implant? Hint: it does not make sense as an implant.

Hint: Pair this with a DNS spoof and you can pretend to be whatever website you want.

Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @05:35PM (#13313841)
First: generalist software developers muck with TLS all the time. There's a whole huge class of enterprise automation and management software that also does custom TLS. How good do you think that stuff is? Do you think the companies that churn this stuff out hire TLS experts to build those components? Of course they don't.

Second: https://news.ycombinator.com/item?id=13313794

Re:Kaspersky: SSL interception differentiates certificates w... by sigmar on Tuesday January 03, 2017 @05:23PM (#13313734)
Concocting theories as to intended malice based on this bug alone would be ridiculous. But it isn't dificult to imagine malice if you frame this with the history Kaspersky has

Particularly when they have a history of remote access "bugs"[1], insecure broadcasting of user-agent info[2], and a cozy relationship with the Kremlin[3].

[1] http://www.zdnet.com/article/flaw-found-in-kaspersky-antivir...

[2] https://theintercept.com/2015/06/22/nsa-gchq-targeted-kasper...

[3]https://www.wired.com/2012/07/ff_kaspersky/

Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @05:30PM (#13313799)
Re:Kaspersky: SSL interception differentiates certificates w... by Sir_Cmpwn on Tuesday January 03, 2017 @05:24PM (#13313747)
If you are knowledgable enough to MITM SSL then you should definitely be knowledgable enough to know how stupid this is, and - frankly - knowledgable enough not to fucking MITM SSL. I would attribute it to malice, assume it's malice, fire the developer, and contact the authorities. Of course, that's moot if the authorities are the ones who asked for the bug.
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @05:29PM (#13313794)
Let's try a little exercise here. Stipulate that it's malice, and then generate the narrative in which malice makes sense.

Specifically:

You are whatever entity (I assume the FSB?) that can demand Kaspersky implant backdoors into its desktop antivirus software.

You decide to target that backdoor at the component of Kaspersky's software that gets, by design, unrestricted access to the plaintext of all TLS sessions on the machine, in addition to practically unrestricted access to every file on machine itself, and to the machine's memory in cpl0 and cpl3.

From that vantage point, you decide to...

... collide certificates?

Remember, your evil backdoor only impacts machines running your software already. From this thread, I'm wondering if that's maybe unclear to people.

Re:Kaspersky: SSL interception differentiates certificates w... by jamesrom on Tuesday January 03, 2017 @05:46PM (#13313932)
Let's continue your exercise. Your backdoor gets detected by any security researcher. You're busted, your business is near destroyed, you cause diplomatic stress between nations and, you face criminal charges. The stakes are way too high.

So instead you consider ways to introduce vulnerabilities that leave plausible deniability.

Indeed, from that vantage point, you decide to...

... collide certificates.

Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @05:47PM (#13313942)
So you propose that they created a backdoor that regularly and sporadically breaks TLS for normal users because they are evil geniuses who needed a plausibly stupid backdoor in case they got caught.

Not only are there better plausibly deniable backdoors they could use from this vantage point, but there are NOBUS backdoors they could use from this vantage point. You propose an attacker so clever that they've carefully calibrated the sophistication of their backdoors, but not clever enough to know how to backdoor a TLS MITM (a TLS MITM installed by design) without leaving the absurd tracks this one does.

No. It's not a conspiracy. As usual: it's just a bug.

Re:Kaspersky: SSL interception differentiates certificates w... by sigmar on Tuesday January 03, 2017 @05:54PM (#13314014)
>Let's try a little exercise here. Stipulate that it's malice, and then generate the narrative in which malice makes sense.

Sure. Kaspersky creates security software. The FSB benefits from vulnerabilities in antivirus software. Kaspersky knows this and puts company resources into particular areas. ie how to spot the next stuxnet, rather than fix bugs like this.

The FSB does not need to write the source code (for Kaspersky Anti-virus) to benefit from vulnerabilities. In fact NSA, GCHQ, and FSB all benefit from subversion of https.

Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @05:57PM (#13314046)
You can't stop at that point in my comment. You have to read the whole thing first. I'm not asking "does it ever make sense to backdoor Kaspersky AV". Clearly it does.
Re:Kaspersky: SSL interception differentiates certificates w... by sigmar on Tuesday January 03, 2017 @05:59PM (#13314063)
I did. You created a ridiculous narrative, that seems to amount to a strawman. No one ever said that FSB wrote the antivirus program.
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @06:02PM (#13314081)
My narrative has in fact nothing whatsoever to do with the FSB. That's why I said "whatever entity".
Re:Kaspersky: SSL interception differentiates certificates w... by sigmar on Tuesday January 03, 2017 @06:07PM (#13314127)
"your evil backdoor only impacts machines running your software already. " seems to assume that "whatever entity" can freely put in whatever code they want.

I agree that cert collisions is a strange way to backdoor, but to dismiss any questions as to possible malice as "conspiracy theories" seems to ignore many recent events (such as Juniper Networks)

Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @06:16PM (#13314207)
Once again, you're responding to an argument I did not make. I'm not saying this bug doesn't make sense because nobody would want to backdoor Kaspersky AV. Clearly they would. I'm saying it doesn't make sense because it doesn't make sense as a backdoor. It provides the attacker with far less access than they already have, and does so in a way that leaves tracks all over the Internet even when the "backdoor" isn't "in use".
Re:Kaspersky: SSL interception differentiates certificates w... by lawnchair_larry on Tuesday January 03, 2017 @09:10PM (#13315114)
Know what else you said doesn't make sense as a backdoor, times a million?

And this makes way more sense than that one did. Not that I'm convinced that it is one. But if it is, it's a pretty good one IMO.

Re:Kaspersky: SSL interception differentiates certificates w... by Sir_Cmpwn on Tuesday January 03, 2017 @05:36PM (#13313855)
Did you read the link? It describes an attack where you only need to have access to the same network as the target. Perhaps through that smart lightbulb they just installed?
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @05:45PM (#13313926)
Yes, I did read the link. Do you understand the thread? The proposal is that this bug in Kaspersky's kernel code is a backdoor in Kaspersky's kernel code --- that is: an attacker that already owns your OS kernel is backdooring it to come up with an extremely convoluted and noisy way to get access to your TLS sessions --- by backdooring the part of their kernel code that already has access to every TLS session on the machine.
Re:Kaspersky: SSL interception differentiates certificates w... by Sir_Cmpwn on Tuesday January 03, 2017 @05:54PM (#13314018)
The described attack doesn't sound convoluted at all, it seems very practical.
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @05:56PM (#13314037)
Once again: the attacker here already controls TLS on the machines that are affected. They don't need to collide certificates. By design, they not only have the plaintext of every TLS session on the machine, but they are also the client side of every TLS session originating from the machine (they terminate TLS locally and proxy it over a new connection they control).

I feel like the people claiming this is a smoking gun backdoor don't really understand what it means that Kaspersky's software is designed to proxy TLS. Yes: it is batshit that they proxy TLS. It's so batshit that this particular bug makes absolutely no sense as a backdoor. That idea is Xzibit-level crazy.

Re:Kaspersky: SSL interception differentiates certificates w... by Sir_Cmpwn on Tuesday January 03, 2017 @06:12PM (#13314166)
I see what you mean now. If you wanted to make a backdoor and have plausable deniability, you'd make it a bug.
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @06:15PM (#13314189)
Yes, but you would not make it this bug, which (a) doesn't get you any access you don't already have, and (b) leaves a trail of sporadically broken TLS connections so obvious that they show up in CT logs.
Re:Kaspersky: SSL interception differentiates certificates w... by Sir_Cmpwn on Tuesday January 03, 2017 @06:23PM (#13314244)
No, you don't understand. They already had that access, but in order to exploit it they (hypothetically) need a sneaky way to do so. Hence the bug.
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @06:29PM (#13314294)
From the vantage point they have now they have approximately 18 bazillion ways to generate a backdoor that yields control of the entire machine to an arbitrary person on the network. The fact that virtually every backdoor ever created works this way, and not by creating an elaborate set of circumstances through which you can get access to specific TLS sessions, is not an accident.

But even in the bizarro world --- which I do not concede that we live in but will briefly stipulate to --- where you would backdoor kernel AV software that looks at TLS plaintext solely to give people the ability to get access to TLS plaintext, this still doesn't make sense. They terminate TLS locally. They are the client to every TLS session originating from the machine. They don't need to create a noisy 32 bit certificate collision, so noticeable to the Internet it shows up in CT logs, to accomplish this task. They can backdoor TLS itself in a zillion plausibly deniable ways that would give network observers access to plaintext.

Re:Kaspersky: SSL interception differentiates certificates w... by Sir_Cmpwn on Tuesday January 03, 2017 @06:36PM (#13314348)
What if they don't need control of the entire machine? Such a backdoor could be much more conspicuous. What if the NSL they were handed only called for intercepting TLS traffic as a means of surveillance?
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @06:41PM (#13314379)
Ironically, the backdoor that provided access to the whole machine would be far less conspicuous than this one. That's the thing about the human cognitive bias towards narratives: RCE vulnerabilities in AV are found routinely, and don't land on the top of HN. This bug did because it was so cosmically stupid, it's surprising nobody noticed it before --- something Ormandy repeatedly states in his writeup.

Which is all the more reason not to believe that it's enemy action.

Re:Kaspersky: SSL interception differentiates certificates w... by Sir_Cmpwn on Tuesday January 03, 2017 @08:05PM (#13314815)
Well, I don't know much about Windows and I don't know much about the design of this software, but let's speculate some more. I imagine that on Windows, you have to have escalated permissions to modify the certificate store. I also imagine that if you were writing a piece of software that could do this (i.e. AV), you wouldn't always be running everything as root (so to speak). I would guess that most RCEs wouldn't lead to being able to modify the certifiate store.
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @09:10PM (#13315111)
It's kernel code.
Re:Kaspersky: SSL interception differentiates certificates w... by Sir_Cmpwn on Tuesday January 03, 2017 @09:16PM (#13315140)
Sure. Presumably not all of it is, though. I'm guessing most RCEs for this software don't happen in the kernel. Ring 0 RCE certainly does make the news, I would imagine.
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @09:29PM (#13315199)
I'm lost. I literally don't even know what you're arguing about anymore.
Re:Kaspersky: SSL interception differentiates certificates w... by Sir_Cmpwn on Tuesday January 03, 2017 @09:35PM (#13315221)
We're arguing? In any case, I'm lost too. Have a good one!
Re:Kaspersky: SSL interception differentiates certificates w... by b2600 on Tuesday January 03, 2017 @10:41PM (#13315486)
I don't know if comparing "bugs" from AV software and OSs is apples to apples. Also, goto followed by erroneous goto looks like an error (I know) but

"keys are generated, they're inserted using the first 32 bits of MD5(serialNumber||issuer) as the key. If a match is found for a key, they just pull the previously generated certificate and key out of the binary tree"

doesn't

Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @10:58PM (#13315570)
Why not? Caching certificate chains makes sense. Bad hash functions are the norm in systems code, not the exception.
Re:Kaspersky: SSL interception differentiates certificates w... by b2600 on Tuesday January 03, 2017 @11:08PM (#13315609)
I guess I'm reading these two examples as: 1. an extra goto and 2. a strategy dealing with creating an ssl store that uses a 32(!) bit key. I'm not implying malice but they seem fundamentally different type of errors.
Re:Kaspersky: SSL interception differentiates certificates w... by hughw on Tuesday January 03, 2017 @04:49PM (#13313456)
Wouldn't it be fair to say that a vulnerability in software you willingly bless to install a MITM, is worthy of more distrust (as to whether it's a deliberate vulnerability) than a similar error in an office productivity program?
Re:Kaspersky: SSL interception differentiates certificates w... by tptacek on Tuesday January 03, 2017 @04:51PM (#13313464)
I don't know. Aren't you asking whether I should be more worried about Microsoft Office or AV software? That's a tough choice to have to make. Productivity software file-based vulnerabilities compromise orders of magnitude more computers than MITM vulnerabilities do.
Re:Kaspersky: SSL interception differentiates certificates w... by throwaway91111 on Tuesday January 03, 2017 @05:14PM (#13313657)
This is true of virtually any exploit.