409
submitted 7 months ago by mr_MADAFAKA@lemmy.ml to c/linux@lemmy.ml
top 50 comments
sorted by: hot top controversial new old
[-] tanja 150 points 7 months ago

Nice

Good to see one of the two big packaging hubs do something against malware

[-] Pantherina@feddit.de 14 points 7 months ago

Verification doesnt help at all if the source is not trusted. All this says is "upstream developers maintain this package". Unofficial packages can be safe too, like VLC.

[-] dsemy@lemm.ee 62 points 7 months ago

It does help prevent actual malware from being downloaded, though, since upstream developers probably won't publish malware on Flathub.

But this is still a half-measure. I don't understand why Red Hat and Canonical don't treat this issue seriously; people on Linux are used to assuming software installed from the repos are safe, and yet Snap and Flatpak are being pushed more and more despite their main repositories being potentially unsafe.

[-] Pantherina@feddit.de 12 points 7 months ago

Flathub is doing more and more, but stuff like hiding --subset=verified is very bad.

They simply need to gain critical mass until they can force changes like portals etc.

[-] Pantherina@feddit.de 12 points 7 months ago

If you create malware and publish it on flathub, you are the upstream dev. But for sure it helps against duplicate scams.

[-] dsemy@lemm.ee 23 points 7 months ago* (last edited 7 months ago)

I can't find it now, but I read that the verification process also includes human review (for the initial verification, not every update), so it should actually prevent "verified" malware (though it does nothing against unverified malware).

Edit: Here's an article with this and more info: https://lwn.net/SubscriberLink/966187/3ef48792e5e8c71d/

[-] Pantherina@feddit.de 5 points 7 months ago

Nice!

Add flathub with --subset=verified and get apps you really need from their .flatpakref files

[-] bhamlin@lemmy.world 6 points 7 months ago

Because both Red Hat and Canonical are of the "pay us to care" mindset. If you aren't paying for support, you're a freeloader and need to do your own research.

[-] pmk@lemmy.sdf.org 5 points 7 months ago

Fedora has their own flatpak repo built from their own rpms and their own runtime. Flathub has more flatpaks though.

[-] thingsiplay@beehaw.org 1 points 7 months ago

This unverified badge does not prevent from malware being downloaded. This is a false statement! An upstream developer can have malicious intention and be verified as the upstream developer. This unverified badge only helps identifying its not a modified version by someone else and is guaranteed to be from the original developer. It does not prevent anyone from downloading and installing unverified apps. If that was the goal, then why having unverified apps in the first place on the store? Yes, because its useful. Therefore people will download unverified apps or just blindly trust verified apps.

At the moment his is enough. But if the Flathub store grows, this can be an issue. Look at the Android and ios app stores; there are plenty of apps from original developers with malicious intentions.

[-] dsemy@lemm.ee 2 points 7 months ago

I said it helps prevent malware from being downloaded, not that it stops it completely.

[-] thingsiplay@beehaw.org 1 points 7 months ago

That's my point, it does not "help" preventing from malware from being downloaded.

[-] dsemy@lemm.ee 8 points 7 months ago

It is reasonable to assume that a verified Flatpak will have a lower chance of containing malware, since initial verification includes manual review (by a Flathub maintainer), and certain changes (like default permissions) also require manual review.

So the way I see it, it does help, but not in a meaningful way.

[-] thingsiplay@beehaw.org 14 points 7 months ago

Next step, display the "potential unsafe"-badge next to verified or unverified, that can be found on the same page. In example https://flathub.org/apps/io.github.shiiion.primehack is marked as verified, but if you scroll down you can see the application has full system and data access and is marked as potential unsafe.

[-] Cwilliams@beehaw.org 10 points 7 months ago
[-] Montagge@lemmy.zip 5 points 7 months ago

Snap already marks unverified apps

[-] JakobDev@feddit.de 6 points 7 months ago

How does that Help against Malware?

[-] unionagainstdhmo@aussie.zone 10 points 7 months ago

It makes it obvious to people whether they are downloading Google Chrome as packaged by Google or as by someone else. That being said, Google Chrome is malware. That being said there is a lot more that needs to be done to truly prevent malware, which will be costly but will hopefully take effect when they've got the budget for it

[-] delirious_owl@discuss.online 3 points 7 months ago

Apt has done this forever

[-] million@lemmy.world 62 points 7 months ago* (last edited 7 months ago)

This is a good step but I still feel like it's pretty obscure where a package is actually coming from. "by Google" or for the Steam package "by Valve" is really confusing and makes it sounds like it's coming directly from the company. Unverified tells the user to pay attention but there is no hover over to say what it actually means.

[-] conorab@lemmy.conorab.com 63 points 7 months ago

Wait… so the author displayed in “by ” is the supposed author of the software, not the one that put it on the store? That’s insane! Also sounds like you’d be open to massive liability since the reputation of the software author will be damaged if somebody publishes malware under their name.

It should be:

  • Developed by:
  • Uploaded by:
[-] Pantherina@feddit.de 7 points 7 months ago

Also maaany packages direct to issuetrackers of projects not supporting that flatpak.

If someone knows where that flathub metadata is stored I would love to know, as the manifest is not it. I would like to fix those to link to their own bugtrackers

[-] beyond@linkage.ds8.zone 18 points 7 months ago

Traditional GNU/Linux distributions (as well as F-Droid) are not "app stores" even though they are superficially similar. Traditional distributions are maintained and curated by the community, and serve the interests of users first and software developers second, whereas an "app store" has minimal curation and serves the needs of software developers first and users second.

I point this out because there's an annoying meme that traditional distributions are obsoleted by the "app store" model. I don't think that's the case. "Verification" is essential for an app store but pointless for a distribution.

[-] delirious_owl@discuss.online 12 points 7 months ago

So all of them?

Would be nice if FlatHub actually supported cryptographic verification of apps..

[-] AProfessional@lemmy.world 2 points 7 months ago

Flathubs repository’s is GPG signed.

[-] delirious_owl@discuss.online 1 points 7 months ago

Nope. Link me to the docs that say this.

[-] AProfessional@lemmy.world 1 points 7 months ago

The GPG key is literally in the repo file https://dl.flathub.org/repo/flathub.flatpakrepo

[-] delirious_owl@discuss.online 1 points 7 months ago

Lol that's not for signing the packages

[-] AProfessional@lemmy.world 1 points 7 months ago

There is no such thing as a “package”. It is a repository of binary data with references to data in it (ala git). The whole repo and all data is gpg signed.

load more comments (5 replies)
[-] pewgar_kbin@fedia.io 11 points 7 months ago

great, when appimage hub begin doing this

[-] thingsiplay@beehaw.org 10 points 7 months ago

I still don't understand why a central repository for AppImages exist. The moment you are using a repository (and possibly version management), the format looses its reason to exist.

[-] GnomeComedy@beehaw.org 10 points 7 months ago

I don't see how that's true. The main point of AppImage is it 'just works' on any distro. If you have one primary place to distribute them to any distro - it's still meeting AppImage's vision.

[-] thingsiplay@beehaw.org 9 points 7 months ago

To be fair, after some thinking I think you are right and I was a bit in a tunnel vision logic. My previous statement looks a bit foolish now.

[-] Pantherina@feddit.de 6 points 7 months ago* (last edited 7 months ago)

No. Appimages are selfcontained and thus useful for archiving software or carrying it around in random ways. Flatpak could do this too but not as easy.

Still, don't use Appimages

[-] thingsiplay@beehaw.org 1 points 7 months ago

I personally use a few AppImages, but want replace them with Flatpaks. Flatpaks have their own issues, and because I did not want to troubleshoot in case I encounter another issue, just carry on using AppImages for these selected applications. Also I was not able to archive Flatpak easily, its very complicated with keys and not. Compared to it, I just have the AppImages included in my regular backup process with regular files.

My point was not if AppImages are useful (they clearly are and I use them), but was talking bout repositories. However after some other replies I thought about it and indeed such a repository makes sense even for AppImages. I personally just don't have to use them.

[-] Pantherina@feddit.de 1 points 7 months ago

Even with such a repo they are highly insecure by design.

[-] thingsiplay@beehaw.org 1 points 7 months ago

Not really. AppImages are as much secure as any other executable you run on your system. If you download it from a trusted source, like you download trusted Flatpaks or your systems repository, then they are not worse. If you say AppImages are highly insecure, because you run executable code, then you have to take that logic to any other executable format. The problem is not the format itself that makes it insecure, it's the source.

[-] Pantherina@feddit.de 2 points 7 months ago

No they arent. Please read the linked post.

[-] thingsiplay@beehaw.org 2 points 7 months ago

I read that page and there is nonsense included too. Just because I read that page does not make it correct. If you think that AppImages insecure, then you did not understand my point that its not the format thats insecure, but the source where you get the files. Every packaging system is insecure if you get it from bad source.

That's not even a question. AppImages are fine and not insecure if you download it from a secure place you trust (like your system packages, you trust your distro maintainer fully). Would you trust every distribution maintainer on every distribution? Let's say a Chinese Linux distribution, that maintains Flatpaks and native packages. Let's say they are flaky. See? It's the source you don't trust, not the file format or packaging system.

Read my replies (just like you said I should read the linked post). And understand the issues.

[-] Pantherina@feddit.de 2 points 7 months ago* (last edited 7 months ago)

Shit missing internet got my comment deleted...

Appimage is not a neutral packaging format. Of course "an app packaged as .zip is as secure as packages as .tar.gz". But the format causes all the things mentioned in the post.

  • libraries are often the oldest non-EOL possible to support old kernels
  • no transparency about used libraries and possible vulnerabilities
  • no upgrades of libraries, always just the wanted app and then passively also the libraries
  • no sandboxing without firejail (which is a root binary and thus can lead to privilege escalation of rootless processes if it has a vulnerability which it had in the past)
  • no GUI sandboxing
  • even with a repo no cryptographic signature verification like on Android (not sure about Flatpak which uses OSTree)
  • requires users to execute code in random locations

So it is way less secure than Flatpak, thats a fact. It may not be worse than tarballs, but if those dont include the libraries even less secure than them.

[-] thingsiplay@beehaw.org 1 points 7 months ago

I partly agree. But your tone changed a lot from "highly insecure" to "less secure", which is a complete different statement. An application does not need to be in a sandbox to be secure, so I don't accept that as an argument against trusted applications. I only accept your arguments if we talk about random downloads from random places.

Also the argumentation that AppImages are usually run from random locations doesn't make them unsecure, it's a feature. BTW I have a dedicated folder where I put them, but that's my personal organization. Did you know that you can unpack an AppImage back to its original folder (like an archive)? You need appimagetool for that.

The only thing I fully agree with you and is a weak spot about the AppImage format is, that it can or will include outdated and not updated libraries (or executables). Which is the point of the format on the one hand, but a curse on the other hand. Normally it is recommended to build on the oldest supported LTS Ubuntu, because of older libc. libc is the root of many problems in Linux (for compatibility).

[-] JackGreenEarth@lemm.ee 5 points 7 months ago

What app is that GUI from?

[-] UmbraTemporis@lemmy.dbzer0.com 33 points 7 months ago

This screenshot is from the Flathub website. The only good GUI for Flatpaks...

[-] Pantherina@feddit.de 4 points 7 months ago

Gnome Software is pretty similar. KDE Discover way worse.

this post was submitted on 28 Mar 2024
409 points (100.0% liked)

Linux

48297 readers
567 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS