News for hackers. Stuff that matters.
Re:Kaspersky OS by pabloski on Friday November 18, 2016 @04:44AM (#12985553)
"Anticipating your questions: not even the slightest smell of Linux. All the popular operating systems aren’t designed with security in mind, so it’s simpler and safer to start from the ground up and do everything correctly."

It looks like a realistic assessment. General purpose operating systems ( at least the 3 most famous ones ) are built with ease of use in mind, not security. Even Torvalds admits it, saying that he sees performance as a top priority, and not security.

If Kaspersky OS is more secure or not, we will see in the future.

Re:Kaspersky OS by hobarrera on Friday November 18, 2016 @05:17AM (#12985696)
OpenBSD is pretty popular in the security community, and is as FLOSS as it gets.
Re:Kaspersky OS by vbezhenar on Friday November 18, 2016 @05:36AM (#12985778)
Yet it's not widely used as embedded OS. I never saw any router with OpenBSD or web camera.

The underlying problem, IMO, is people. They just don't care about security, they want to deliver working device.

Also it's not clear how many vulnerabilities, used in real life attacks (like DDOS from IoT devices) are in latest Linux kernel? May be problem not with Linux, but with custom software or lack of updates.

Re:Kaspersky OS by shubb on Friday November 18, 2016 @08:20AM (#12986504)
The thing with a BSD project is that it is a kernel, a distribution of slightly modified and configured 3rd party applications, and a bunch of 1st party applications.

OpenBSD project includes stuff like OpenSSH, time sync tools, an SSL implementation, and these are very widely used. Are those devices OpenBSD based though?

Similarly with BSD code, you can just use it and you only need to credit it with the code, so lots of OpenBSD kernel code will be in other systems with no user visible attribution. If MacOS kernel contains OpenBSD code, even big chunks, is it OpenBSD based?

With Linux, GPL means its kind of visible when someone is using it, and GPL encourages you not to integrate your software with it too tightly, so you get an obviously Linux based device with proprietary code on the top. With BSD, you can integrate much more tightly, only ever need to give out a binary blob, and no one would know you were using it.

That said, OpenBSD is kind of server oriented, and FreeBSD would be a more popular starting point for a device, but you might well crib OpenBSD for best practices.

Re:Kaspersky OS by nickpsecurity on Friday November 18, 2016 @12:58PM (#12988634)
This defense contractor builds their stuff on OpenBSD:

https://www.genua.de/en/solutions.html

One can always strip out what's not necessary. One can also put it in user-mode on top of a secure microkernel with some services running directly on microkernel and some running in OpenBSD. That Kaspersky thought the choices were Linux-based or purely clean-slate shows limited knowledge of what's out there or a personal preference.

Re:Kaspersky OS by wongarsu on Friday November 18, 2016 @05:26PM (#12990599)
I it's more likely that Kaspersky lumped OpenBSD and Linux together as Unix-likes (very valid since they are talking about basic OS architecture choices in that section), and chose to say Linux instead of Unix-like because Linux is much more widely known.
Re:Kaspersky OS by nickpsecurity on Friday November 18, 2016 @05:31PM (#12990624)
It's possible but I'm not saying likely. OpenBSD's handling of UNIX architecture, low-level primitives, security features, and code quality stand out a lot. It's still UNIX-like enough to have UNIX weaknesses but they mitigate quite a bit.

Kaspersky has a big-enough ego that I suspect his main goal is just having one of his company's and country's own to brag about. Especially if it ends up better in track record than something like Linux that's very visible albeit not made for security. That will actually be straight-forward if it's a Layer 2 or 3 operating system given how little they need to get right with one.

Re:Kaspersky OS by MichaelBurge on Friday November 18, 2016 @05:42AM (#12985800)
These two statements contradict each other:

> The underlying problem, IMO, is people. They just don't care about security, they want to deliver working device.

> This unassuming black box is [...] designed for networks with extreme requirements for data security.

You can claim that nobody will buy Kaspersky's device, or that they did poor market research. But you can't claim that they don't care about security.

Re:Kaspersky OS by vbezhenar on Friday November 18, 2016 @06:30AM (#12986003)
Kaspersky certainly care about security, it's their business. I'm talking about people who build routers or web cameras. I doubt that Kaspersky built OS for internal use, they want to license it to other manufacturers. But I'm not sure that other manufacturers will want to pay for this extra security (if they would want, they already have better options).
Re:Kaspersky OS by nickpsecurity on Friday November 18, 2016 @01:32PM (#12988954)
"Kaspersky certainly care about security, it's their business."

Their business is selling antivirus & other software, not security. They have no history whatsoever of building a piece of software immune to code injection by determined attackers. There are companies and academics that build stuff like that. Some were evaluated by pentesters of third parties. Kaspersky has neither that background nor evaluations by expert breakers. We should by default think they don't know what they're doing and the product is insecure until proven otherwise. Like always.

People often mistake "company in security industry selling security products" with "knows how to secure software or systems." They're two very different things.

Re:Kaspersky OS by MichaelBurge on Friday November 18, 2016 @03:04PM (#12989659)
Can't you sue a company selling security products if it ends up being insecure? This is different from ordinary software, because most ordinary software isn't marketed with security as its primary selling feature. And if they're not getting it tested by independent experts, that could be negligence.

If they're not liable in any way, then I agree it's nothing more than marketing to call it secure.

Re:Kaspersky OS by nickpsecurity on Friday November 18, 2016 @03:21PM (#12989779)
There's little to no liability in most situations. Security experts have been pushing for liability for a long time as a solution to this. Basically, we want a minimum level of responsibility like what exists in safety-critical industries. Schneier has a brief essay that explains it well:

https://www.schneier.com/blog/archives/2004/11/computer_secu...

Re:Kaspersky OS by MichaelBurge on Friday November 18, 2016 @03:38PM (#12989882)
I suppose the other economic option is insurance. That works best in general with a lawsuit, but certain companies that would suffer great damages with a breach should be motivated to buy insurance.

One example would be companies handling credit card information. If you leak a bunch of credit cards, Visa has to invalidate and reissue the cards, and the issuing banks have to spend a lot of money handling customer support. So they're motivated to punish companies when there are security breaches, and to write these punishments into the contracts.

Thanks for the article.

Re:Kaspersky OS by nickpsecurity on Friday November 18, 2016 @04:19PM (#12990169)
"I suppose the other economic option is insurance"

If they hack you, you can loose all your secrets, loose availability of your service in a way that customers leave, loose an election, or be implicated in crimes when your system is a proxy. I've never believed insurance would really compensate for such losses like it would a stolen TV or fire damage to a building.

"If you leak a bunch of credit cards, Visa has"

That's actually a good example. Both the regulatory and lawsuit-related penalties over mishandling PII have led to a boom of vendors offering solutions to make it easier. Still plenty of BS in the market but solutions are there due to incentives.

Re:Kaspersky OS by mfukar on Friday November 18, 2016 @07:02AM (#12986138)
You can care about security and still make totally wrong decisions.
Re:Kaspersky OS by rthomas6 on Friday November 18, 2016 @10:20AM (#12987306)
But OSX, Windows, and full-blown Linux aren't used as embedded OSes either. Linux is a bit, but there are a lot of other choices.
Re:Kaspersky OS by notalaser on Friday November 18, 2016 @02:58PM (#12989619)
"A bit" is an understatement. The vast majority of non-server deployments of Linux are embedded systems, and embedded systems requirements are one of the most important driving factors in its development nowadays.
Re:Kaspersky OS by linkregister on Friday November 18, 2016 @12:21PM (#12988314)
I'm not sure if it shares APIs with Win32, but Windows CE runs almost half of every ATM I've ever used.
Re:Kaspersky OS by wongarsu on Friday November 18, 2016 @05:22PM (#12990576)
The other half seems to be powered by Windows XP.
Re:Kaspersky OS by diegoperini on Friday November 18, 2016 @03:52PM (#12989983)
Also cash machines.
Re:Kaspersky OS by pbhjpbhj on Saturday November 19, 2016 @10:43AM (#12993926)
ATM (Automatic Telling Machine) is American English for a cash machine. A teller is a bank worker who handles cash.
Re:Kaspersky OS by fdgdasfadsf on Sunday November 20, 2016 @04:00AM (#12997985)
It's UK English too. But not as common as cash machine/cash point/hole in the wall.
Re:Kaspersky OS by this-dang-guy on Friday November 18, 2016 @10:13AM (#12987254)
Yes, my first thought (after VMS) when he said no popular OS is designed for security.

Then of course, I realized that by "Popular" he meant Mac OSX, Windows, and Linux.

Linux of course, we all know is a security mess because Torvalds refuses to deal with security issues.

Re:Kaspersky OS by busterarm on Friday November 18, 2016 @12:49PM (#12988550)
I don't think it's a fair statement to blame Linux's security problems on Linus.

Linux provides support for lots of security options, but the project's guiding philosophy is "don't break userland". This is 99% of the time what you see Linus cursing out other kernel contributors for. All of the possible options that Linus could _enforce_ would do just that. Heck, a lot of the security problems and blame have nothing to do with the kernel at all and lie squarely with systemd and how it's implemented. If these are dealbreaker features that you must have, Linux is not the tool for you. Your efforts are better spent working to improve OpenBSD.

Re:Kaspersky OS by this-dang-guy on Friday November 18, 2016 @01:11PM (#12988748)
Sure, but comments like: "Security people are often the black-and-white kind of people that I can't stand. I think the OpenBSD crowd is a bunch of masturbating monkeys, in that they make such a big deal about concentrating on security to the point where they pretty much admit that nothing else matters to them."

"So LSM stays in. No ifs, buts, maybes or anything else. When I see the security people making sane arguments and agreeing on something, that will change. Quite frankly, I expect hell to freeze over before that happens, and pigs will be nesting in trees. But hey, I can hope."

He's typically very critical of security-related changes unless they are a massive improvement. I think characterizing him as "functionality over security" is entirely fair. He's not even wrong necessarily.

Re:Kaspersky OS by busterarm on Friday November 18, 2016 @01:20PM (#12988849)
The market has sort of proved him right.

Companies that use Linux and need security will either get caught with their pants down or they won't. It's up to their level of preparedness and luck. I wouldn't underwrite that if I were an insurer though.

Those of us that care are already using something else.

Re:Kaspersky OS by this-dang-guy on Friday November 18, 2016 @01:24PM (#12988894)
Absolutely.

I would actually argue that security doesn't depend on any one product, but instead a mindset, methodology, and toolbox. Defense in depth, etc.

Re:Kaspersky OS by nickpsecurity on Friday November 18, 2016 @01:12PM (#12988760)
Of course it's fair. He built it to just have a person UNIX that he enjoys working on. Lots of other people did the same. Security was never a priority for them. Whereas, by that time, there were already multiple OS's with strong levels of built-in security. He could've copied stuff from them. There's even more now. They're still keeping broken model for (a) their priorities that put security low and (b) avoiding rewriting anything depending on broken security architecture. All the container developments are the classic solution to (b) but their security is often similarly shoddy vs what it could've been.

So, yeah, blame Linus and others in that ecosystem who do everything but make a solid foundation. Contrast that to OpenBSD for monolithic or GenodeOS for microkernel approaches where they bake security in at various levels. MINIX 3 for reliability levels they achieved 10x faster than monolithic UNIX's did. You get what you focus on. :)

Re:Kaspersky OS by busterarm on Friday November 18, 2016 @01:18PM (#12988823)
Right. I'm saying give up on expecting the project to change. The project isn't for what you want it to be for and never will be.

You should be shouting at companies who use it for applications where security is a must. That's where the madness lies.

I use OpenBSD and so should you :)

Re:Kaspersky OS by this-dang-guy on Friday November 18, 2016 @01:26PM (#12988903)
I also use OpenBSD (and donate to it, since I have more money than time right now)... but damn, they do need a VM that I can use, so that it can be my regular desktop.
Re:Kaspersky OS by nickpsecurity on Friday November 18, 2016 @01:35PM (#12988978)
Are you saying a VMM to virtualize other software or a pre-configured VM containing OpenBSD you can run on top of other OS's with better hardware support? Or something else entirely?
Re:Kaspersky OS by this-dang-guy on Friday November 18, 2016 @01:43PM (#12989043)
A VM to virtualize other software. In this case, my desktop has to support some clients who have very specific VM images of Win7 to access them. VirtualBox and VMware are fine, but for QEMU it's just way too slow (for me, at the moment)
Re:Kaspersky OS by busterarm on Friday November 18, 2016 @01:29PM (#12988931)
QEMU too slow?
Re:Kaspersky OS by this-dang-guy on Friday November 18, 2016 @01:38PM (#12989006)
Sadly yes. For several specific clients I have to run their Win7 VM in an emulator, and it can't quite manage on my (rather old) hardware right now.

Due for a hardware refresh soon, and I will obviously be trying it again :)

Re:Kaspersky OS by nickpsecurity on Friday November 18, 2016 @01:34PM (#12988966)
Well that's mostly true. I guess we have to shout at the cloud companies then. ;)
Re:Kaspersky OS by hobarrera on Saturday November 19, 2016 @01:50AM (#12992396)
http://arpnetworks.com/ offers OpenBSD VPS, and has a great service record! I strongly recommend them.
Re:Kaspersky OS by this-dang-guy on Friday November 18, 2016 @01:40PM (#12989023)
Digital Ocean supports FreeBSD, but not OpenBSD. Which is close, but not quite the same. Perhaps with a little persuasion, they could be talked into it
Re:Kaspersky OS by qilo on Friday November 18, 2016 @05:36PM (#12990651)
You can install and run OpenBSD on DO. Here's the guide by Derek Sivers: http://50pop.com/d.html
Re:Kaspersky OS by this-dang-guy on Friday November 18, 2016 @06:07PM (#12990818)
Thanks! I think I'll give that a try. That's a great idea.
Re:Kaspersky OS by busterarm on Friday November 18, 2016 @03:33PM (#12989855)
Please do!

It's even possible to do modern web stuff on OpenBSD. Erlang and Elixir run on it, as does Postgres. Phoenix framework pretty much works out of the box.

Re:Kaspersky OS by bonzini on Friday November 18, 2016 @03:21PM (#12989777)
What the hell does systemd have to do with kernel security issues?

Is this Hacker News or slashdot?

Re:Kaspersky OS by busterarm on Friday November 18, 2016 @03:30PM (#12989838)
For the most part, they are not kernel security issues.

Those get fixed. There are places where the kernel could be further hardened, but would break software.

Most of the security issues that we talk about have to do with process permissions and runlevel. The runlevel of systemd and it's various components is actually my #1 security concern. Has nothing to do with the kernel.

Re:Kaspersky OS by aseipp on Friday November 18, 2016 @06:21PM (#12990878)
> Those get fixed.

This has been done, but poorly and only for an extremely select few things. KASLR is just one example of a poorly implemented feature that pales in comparison to alternatives (completely subsumed by features in the grsec implementation, for example, since it only randomizes things like .text addresses. Maybe some of that got fixed.) Features like kptr_restrict can easily be subverted by a number of trivial infoleaks unless you back it up with a lot of other protections, etc.

Other things like __ro_after_init for read-only post-init memory have only recently been incorporated into arch/x86 (in the past few months AFAICS, so likely kernel 4.8+ only) since being available for nearly a year on x86 at least. I'm not sure if they fixed the fact __ro_after_init apparently didn't work on loadable modules. grsecurity's implementation is better anyway (allowing remarking variables as writeable for short windows), but I'll concede that extra power relies on KERNEXEC, which breaks some userspace things.

I don't think they botched the LATENT_ENTROPY plugin, at least...

If you actually look at the details, Linux has a pretty bad track record as far as "meaningfully implementing defenses" goes, considering how long this stuff has been around. It's better than literally nothing, I guess.

> There are places where the kernel could be further hardened, but would break software.

Uhhhh, sorry, but you need to do your research. There are plenty of places that could be improved without breaking userland at all, while still mitigating many classes of exploits. PAX_REFCOUNT is one example (a variant of which will probably soon go upstream in some weird way, of course). RANDSTRUCT, PAX_MEMORY_STACKLEAK, KSTACKOVERFLOW, JIT_HARDEN, RAND_THREADSTACK... If you're determined to fix the FPs, the SIZE_OVERFLOW plugin qualifies, too (it occasionally hits false positives, murdering an otherwise legitimate task, but this is a different scenario to a feature outright breaking userspace, and it's caught many bugs and can stop many actual exploits on its own).

There are probably at least a dozen major features in grsecurity that don't have to compromise userspace, and still aren't implemented in Linux, with no equivalent, and no timeline on the horizon. I'm not sure what to take away from this assessment of yours that the only remaining improvements will break things, other than you aren't really aware at all of what the current defense landscape looks like...

Re:Kaspersky OS by busterarm on Friday November 18, 2016 @07:49PM (#12991277)
Re:Kaspersky OS by aseipp on Sunday November 20, 2016 @01:58PM (#13000448)
That's a nice link. It also has absolutely zero to do with any of the specific defenses that I mentioned, and the fact that upstream Linux doesn't have them -- again, my point is there are tons of things upstream can still do to harden the kernel, before getting to breaking userspace, despite your initial claim to the contrary. The point isn't "you must adopt the grsecurity patches" or the politics around why grsec won't help upstream. The point is that these meaningful improvements actually exist, and they are not available. It's simply factual Linux is way behind what's possible.

Furthermore, I really don't see how that link is relevant, given most of the more recent security features that went upstream, as well as many of the ones that will come in the future -- all originate in part from grsecurity anyway. Apparently, your position is that the kernel developers have already done all they can, and any further improvements else will break userspace, so systemd is definitely totes the #1 biggest problem now, everybody (non sequitur, but whatever). But when I bring up the defenses they could implement, but haven't yet, from the same source of the previous ones -- apparently I'm just doing some irrelevant posturing, or something? I find that funny. Maybe in 5 years when they've poorly ripped off more features and are still behind, you'll be moving the goalpost and saying "Any further improvements would break userspace", and it still won't be true in the slightest. :)

PAX_REFCOUNT is a non-breaking addition that would have stopped CVE-2016-0728 completely, for example, had it actually existed upstream -- it will soon enough, at least, as someone is working on it by porting the grsecurity patches.

The reality is very simple, even if you don't like it: upstream Linux is just bad at meaningful exploit mitigation, in many ways, and they have trailed behind what's possible for literally years. I'd also argue that some kernel developers seem to just have a complete, fundamental misunderstanding of what the point of the mitigations are, which is damning. One guy on the dev list argued with Kees Cook that people shouldn't bother with this shit, because we don't need to help "those bastards with proprietary modules be more secure" (Kees works on Android, so proprietary modules are just a fact of life, grsec improving their security simply being tangential), or help the people with out of tree kernels like the grsecurity team. It had apparently never dawned on him that mitigation tech could stop exploits that appear in the future. Like PAX_REFCOUNT stopping an exploit that would only appear in the future as time went on. This is mind-blowing as a position, for a developer of what is ostensibly one of the most complex projects in the world.

Anyone who has followed the grsecurity project for a while is pretty well aware of why they don't bother with upstream, and aware that upstream mostly reinvents their work, poorly. In any case, the given link is still irrelevant.

I'm going to go out on a limb and say you don't actually know much about modern memory corruption defense, or the landscape of modern kernel security and how it has moved forward over time, if this non-reply is your only answer to the examples I listed...

Re:Kaspersky OS by hawski on Friday November 18, 2016 @05:27AM (#12985740)
Which is funny, because they say that popular operating systems are not designed with security in mind. They give this as a reason to start from the ground up. I am from the camp saying that currently sole kernel does not an OS make. With this in mind network equipment OSes are certainly not popular ones. Nevertheless there are probably lots of less popular OSes with less popular kernels that are designed with security in mind. Some of them are probably good tries at such a goal. They could be used and extended and it would be probably better securitywise, because of years of bug fixes, that no new OS can have.
Re:Kaspersky OS by nickpsecurity on Friday November 18, 2016 @01:16PM (#12988808)
To support your point, the company below did a clean-slate OS tightly integrated with hardware protection features of Itanium CPU's to give people hell trying to compromise their DNS servers. Also re-did the networking stack to assume a hostile instead of benign network. Way over due there. The OS is available for licensing IIRC but OEM's don't give a shit about security if dollars are on the line. ;)

http://www.secure64.com/secure-operating-system

An older one that was pentested by the NSA with positive results reduced attack surface by using PPC embedded board, INTEGRITY microkernel, and carefully-coded state machines. That a small team made this shows both the big companies and startups could be doing way better if they cared.

http://www.sentinelsecurity.us/HYDRA/hydra.html