Slashdot Mirror


Malware Found In the Ubuntu Snap Store (linuxuprising.com)

An anonymous reader quotes a report from Linux Uprising: Oh, snap! Just because some packages are available to install directly from the Ubuntu Software Center doesn't make them safe. This is proved by a recent discovery of malware in some snap packages from the Ubuntu Snaps Store.

At least two of the snap packages, 2048buntu and hextris, uploaded to the Ubuntu Snaps Store by user Nicolas Tomb, contained malware. All packages by Nicolas have since been removed from the Ubuntu Snaps Store, "pending further investigations." The report comes from a bug which mentions that the 2048buntu snap package (and other packages by Nicolas Tomb) contains a hidden cryptocurrency miner inside.

27 of 90 comments (clear)

  1. *Nix needs a Zone Alarm equivalent by Anonymous Coward · · Score: 4, Interesting

    This is why Linux needs the equivalent of the Zone Alarm firewall. Something that will alert a desktop user every time a program first attempts to connect to the internet and allow the user to say yes or no to the attempt. If your firewall allows all outbound traffic by default you do no have a hope in hell of catching a malware infection...

    If you've got such software then at least you know something nasty has managed to infect your machine as you'll spot it the first time it tries to "phone home"..

    1. Re: *Nix needs a Zone Alarm equivalent by Anonymous Coward · · Score: 3, Interesting

      Most people block incoming by default, but not outgoing. The reason is simply convenience; if the desktop environment showed you a GUI popup asking permission every time an outgoing connection was attempted, it would be much easier for the average user to adopt. Pretty sure that's what the grandparent was talking about; if you still think its trivial, I'd love a link to instructions :)

    2. Re: *Nix needs a Zone Alarm equivalent by Anonymous Coward · · Score: 1

      For users that are neither gamers nor developers there arent really that many programs that needs to connect to internet. Especially not when upgrades are managed by a packet manager.

      If the browser, mail program and updater are all installed and flagged as OK by the OS, any popup that asks about internet access should be fairly uncommon.

    3. Re:*Nix needs a Zone Alarm equivalent by Opportunist · · Score: 1

      You mean like ufw?

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    4. Re:*Nix needs a Zone Alarm equivalent by Anonymous Coward · · Score: 2, Informative

      I've never cared much for ufw. It's basically just a GUI for setting rules for iptables. When I'm working with iptables, I'd rather set them manually through a shell.

      I believe GP just meant something that would give a notification when a program tried to communicate out that's not on the "approved" list.

      I'd much prefer something along the lines of atguard, before Symantec raped it. The feature I liked from atguard was the "Rule Assistant" that would give a popup when something didn't match one of the rules. The popup would show you the port, ip address, application, and direction of communication attempt and allow you to setup firewall rules based on that communication attempt. This would help limit outbound connections to specific programs and get notifications when malware is trying to phone home.

      The main drawback to this is having to setup firewall rules for each program. Also, it could get fairly cumbersome if you limit the program by MD5, since you'd have to update the hash every time you update a program.

    5. Re:*Nix needs a Zone Alarm equivalent by ArchieBunker · · Score: 1

      Give that asshole Poettering five minutes and he'll shit out some systemd code.

      --
      Only the State obtains its revenue by coercion. - Murray Rothbard
    6. Re: *Nix needs a Zone Alarm equivalent by niftydude · · Score: 1

      It's called firestarter. Been around for ages.

      --
      You can never know everything, and part of what you do know will always be wrong. Perhaps even the most important part.
    7. Re:*Nix needs a Zone Alarm equivalent by cfalcon · · Score: 1

      > BTW Snaps are basically containers so some of the damage is contained.

      The malware in question doesn't eat your files or snoop your keyboard or any of the more traditional vectors that a bad actor asks "what would be good lulz and/or allow me to steal data from the owner that I can use elsewhere". It will probably still allow you to be part of a botnet for a DDOS or something like that, but in this case it wasn't network shenanigans either- it was cryptocurrency. It's very unusual to try to preserve your clock cycles and GPU usage, because a given download that is using a ton of computational resources very probably is doing so at the behest of the user- I think across all computing, the only commonly available thing that tries to shut this down is Chrome, and for a similar reason, a cryptocurrency miner.

    8. Re: *Nix needs a Zone Alarm equivalent by tepples · · Score: 1

      If the browser, mail program and updater are all installed and flagged as OK by the OS, any popup that asks about internet access should be fairly uncommon.

      Add to that list your chat client, your file backup client, your RSS reader, your weather widget, your NTP (time of day updating) client, your music streaming client, your video streaming clients...

    9. Re:*Nix needs a Zone Alarm equivalent by antdude · · Score: 1

      That is not user friendly to non-technical users. He is asking something like Zone Alarm, Conseal PC Firewall, Norton, Outpost, PC Tools Firewall Plus, etc. They have nice GUI and pop-ups to let users allow or deny.

      --
      Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
    10. Re:*Nix needs a Zone Alarm equivalent by johnsie · · Score: 1

      This isn't the 1980s. A more user friendly approach would be far more useful for a majority of desktop users.

  2. Snaps are impossible to verify by Anonymous Coward · · Score: 5, Insightful

    With all dependencies built in, there is a lot to comb through, not to mention that those dependencies may not even be completely patched and up to date.

    I'd rather install software the traditional way and be sure that each component I install is verified.

    1. Re:Snaps are impossible to verify by Anonymous Coward · · Score: 1

      I'd rather just not use Linux.

      Because Windows is malware done right?

    2. Re:Snaps are impossible to verify by hduff · · Score: 1

      I'd rather just not use Linux.

      Because Windows is malware done right?

      It's the *best* platform for malware.

      --
      "I believe in Karma. That means I can do bad things to people all day long and I assume they deserve it." : Dogbert
  3. O'rly! by Anonymous Coward · · Score: 5, Insightful

    How's this surprising. These containerized applications are full userland stacks, all the libs and dependencies the program needs, and then some, wrapped up. It's so easy to hide malware there, and so very difficult to audit them before inclusion, because their very raison d'etre is --- to avoid maintainership and allow "third party" vendors to distribute their mini-distros around.

    Is anyone REALLY surprised by this?

  4. Re: unsafe? by Z00L00K · · Score: 2

    It just highlights that something worse could have been attached.

    However it also highlights that there's a need to also be able to invalidate cryptocurrency obtained through illegal means.

    --
    If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
  5. Re: Source Code by Z00L00K · · Score: 1

    Resl trusted computing has never existed.

    --
    If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
  6. Re: unsafe? by phantomfive · · Score: 1

    If a central power has the ability to cancel a crytocurrency transaction, then that kind of ruins the point of cryptocurrencies. At that point it becomes way more efficient to just use a database, or several, like our banking system now.

    --
    "First they came for the slanderers and i said nothing."
  7. Re:unsafe? by squiggleslash · · Score: 1

    I'm uncomfortable with the term malware too, but let's be honest: unwanted cryptocurrency mining software is going to slow down your PC, drain your battery faster if you have a laptop, and, unpredictably, cause more heat which, depending on the state of your fan, might cause problems too.

    I'm still in two minds about the concept, but if we're going to see more software "funded" by mining, then we need to see some standards set otherwise "software funded by mining" will become synonymous with malware, even if the software really is funded this way (ie not prepackaged third party freeware), and controls are given to ensure the mining doesn't cause problems with the PC (ie low priority process, maxes at 5% of CPU, etc.)

    --
    You are not alone. This is not normal. None of this is normal.
  8. Re:False sense of security? by Ol+Olsoc · · Score: 2

    I have always felt Linux people have that same false sense of security that Apple Mac users have always had. Nothing can touch them because of some lame reason.

    I have always known that some people generalize the shit out of things.

    No OS is completely immune while on teh intertoobz. But it doesn't take too much research to find out which major OS is the least secure. It ain't Linux, and it aint MacOS.

    --
    The shepherds did so well protecting the flock that the sheep no longer believed that wolves existed.
  9. Who didn't see this coming? by Fly+Swatter · · Score: 2

    They wanted to replicate the android and fruit ecosystems. Looks like they did.

    1. Re:Who didn't see this coming? by ilsaloving · · Score: 1

      That depends. If all they did was make an app store available, then they did _not_ replicate said ecosystems.

      Apple and Google both have some form of curation process to help keep malicious applications out. (I'm not going to get into who does it better cause that's beside the point).

      If Ubuntu, or anyone else, wants to maintain snap repos, then they are going to have to maintain the same protection infrastructure. A perfect example is the Cydia ecosystem. It's a god forsaken mess, and at this point it's virtually abandoned. I gave up on it a long time ago because there were 10s of thousands of bullshit packages, but only about 5 that were genuinely useful. And of those 5, none of them were being maintained and updated for newer versions of iOS.

      Similarly, I'd sooner trust free pills from Bill Cosby than trust one of the myriad generic android repos. Especially the Chinese ones.

      The single greatest value add of an app store/repo is trust. Having people behind the scenes maintaining the thing so that people can feel safe using that repo is critical to that. If you can't provide that, then why even bother?

  10. Re: unsafe? by cfalcon · · Score: 2

    > However it also highlights that there's a need to also be able to invalidate cryptocurrency obtained through illegal means.

    Illegal according to whom? The Chinese government? If you shook your head no, then why wouldn't they be able to, if a government you approve of is able to do so?

  11. It's a general problem by Casandro · · Score: 4, Insightful

    Essentially you need to keep a separation between code and data. Data is something you can get from any source as dubious data will never be able to breach the security.

    Code on the other hand are commands for your computer. Every new code you get onto your computer is a risk you take as it can be malevolent. Therefore you shouldn't take executing foreign code lightly. Ideally you only have your fixed set of programs which you can combine to use with data you get from everywhere.

    Things like AppStores pervert that safety precaution. They act as if it was possible to have a secure system, yet download software written by dubious developers.
    Sadly, we as a society seem to fall into the same trap over and over again, from Javascript to Active X. From Visual Basic for Applications to Appstores.

  12. Use blockchain history to mark "radioactive" coins by OpenGLFan · · Score: 2

    Because the blockchain is public, we know all the blocks that passed through this bad actor -- they were at one point registered to myfirstferrari. We can declare these coins as "radioactive", instructing our systems to not buy coins or fractions that had ever been owned by him or any of the other malware-powered miners.

  13. Re:unsafe? by tlhIngan · · Score: 1

    I'm uncomfortable with the term malware too, but let's be honest: unwanted cryptocurrency mining software is going to slow down your PC, drain your battery faster if you have a laptop, and, unpredictably, cause more heat which, depending on the state of your fan, might cause problems too.

    I'm still in two minds about the concept, but if we're going to see more software "funded" by mining, then we need to see some standards set otherwise "software funded by mining" will become synonymous with malware, even if the software really is funded this way (ie not prepackaged third party freeware), and controls are given to ensure the mining doesn't cause problems with the PC (ie low priority process, maxes at 5% of CPU, etc.)

    The problem is legitimate activities done for the wrong reasons will classify something as malware.

    For example, gathering user data for advertising purposes - gathering user data is a legitimate activity as there are apps with legitimate need. And they can use it for advertising purposes, too, since that's what Google et. al. do as well. However, it can trend into the malicious part if it's all done surreptitiously.

    Likewise, designing a cryptocurrency miner is not necessarily a bad thing - there are legitimate uses. (It's also not a new thing - I believe Unity has had a plugin for Bitcoin for several years now - yes, Unity, the game engine). However, again, when done without the user's knowledge, it then becomes malware.

    It's one of those things where intent and knowledge is just as much a part of the classification. There was another app that did it openly - it had a "free" version and a "pro" version. You could pay $25 for the pro version permanently, or you can do "Pro for free" where it runs a cryptocurrency miner. It was very honest about it - if you wanted to upgrade, it explained what happened. If you didn't want the pro features anymore, you could revert it to "free" status and it'll stop mining as well. (Or was supposed to - the library the developer used was buggy, and thus it did not shut down properly and had the possibility of running all the time. This unwanted behavior got the developer in a lot of trouble and was forced to remove "Pro for free" as an option).

  14. That's kind of the point of a verified package rep by fluffynuts · · Score: 1

    Maintained by a team of accountable people. This was always one of the reasons a decent Linux distro was more secure than an equivalent Windows machine - because your packages came from a verified source. The concept of snaps makes things more convenient - for everyone, including malware authors. But, you know, so convenient.