TranslateProject/sources/tech/20160426 IS UBUNTU’S SNAP PACKAGING REALLY SECURE.md
Ezio 35ac596b5b 20160523-1 选题
ubuntu,snap
2016-05-23 09:23:28 +08:00

3.9 KiB
Raw Blame History

IS UBUNTUS SNAP PACKAGING REALLY SECURE

The recent release of Ubuntu 16.04 LTS has brought a number of new features, one of which we covered was the inclusion of ZFS. Another feature that many people have been talking about is the Snap package format. But according to one of the developers of CoreOS, the Snap packages are not as safe as the claim.

WHAT ARE SNAP PACKAGES?

Snap packages are inspired by containers. This new package format allows developers to issue updates for applications running on Ubuntu Long-Term-Support (LTS) releases. This gives users the option to run a stable operating system, but keep their applications updated. This is accomplished by including all of the applications dependencies in the same package. This prevents the program from breaking when a dependency updates.

Another advantage of Snap packages is that the applications are isolated from the rest of the system. This means that if you change something with a Snap package, it will not affect the rest of the system. It also prevents other applications from accessing your private information, which makes it harder for hackers to get your data.

BUT WAIT…

According to Matthew Garrett, Snap cant quite deliver on the last promise. Garret works as a Linux kernel developer and security developer at CoreOS, so he should know what hes talking about.

According to Garret, “Any Snap package you install is completely capable of copying all your private data to wherever it wants with very little difficulty.”

ZDnet reported:

“To prove his point, he built a proof-of-concept attack package in Snap, which first shows an “adorable” teddy bear and then logs keystrokes from Firefox and could be used to steal private SSH keys. The PoC actually injects a harmless command, but could be tweaked to include a cURL session to steal SSH keys.”

BUT WAIT A LITTLE MORE…

Is it really that Snap has security flaws? Apparently not so.

Garret himself said that this problem was caused by the X11 window system and did not affect mobile devices that use Mir. So, it is the flaw in X11 that does it. Its not Snap itself.

how X11 trusts applications is a well-known security risk. Snap doesnt change X11s trust model, so the fact that applications can see what other applications are doing isnt a weakness in the new package format, but rather X11s.

Garrett is just actually trying to show that when Canonical is all praises for Snap and its security; Snap applications are not fully sandboxed. They are as risky as any other binaries.

Keeping the fact in mind that Ubuntu 16.04 still uses X11 display, and not Mir, downloading and installing Snap packages from unknown sources might be harmful. But thats the case with any other packaging, isnt it?

In related articles, you should check out how to use Snap packages in Ubuntu 16.04. And do let us know of your views on Snap and its security.


via: http://itsfoss.com/snap-package-securrity-issue/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+ItsFoss+%28Its+FOSS%21+An+Open+Source+Blog%29

作者: John Paul 译者:译者ID 校对:校对者ID

本文由 LCTT 原创翻译,Linux中国 荣誉推出