News for hackers. Stuff that matters.
Re:Open source Background Remover: Remove Background from im... by EmilyHughes on Saturday May 06, 2023 @05:55AM (#35839814)
Why is never a binary provided?

Me and 99% of users won't check the code for malicious behaviour so I might as well run a binary from the web.

Re:Open source Background Remover: Remove Background from im... by frenchman99 on Saturday May 06, 2023 @06:14AM (#35839903)
Encouraging users to run some random binary from GitHub is a really good way to spread all kinds of viruses. People should only run binaries from trusted sources.
Re:Open source Background Remover: Remove Background from im... by marginalia_nu on Saturday May 06, 2023 @06:15AM (#35839909)
Compiling and running random git projects isn't that big of a step up.
Re:Open source Background Remover: Remove Background from im... by frenchman99 on Saturday May 06, 2023 @06:19AM (#35839932)
You're totally right, it's just as bad, maybe even worse because build tools sometimes ask for admin permissions. People should ideally really on some kind of reputation system or get software from trusted vendors.
Re:Open source Background Remover: Remove Background from im... by ddtaylor on Saturday May 06, 2023 @09:25AM (#35841165)
Like a package manager with maintainers, ie. Deb, RPM, etc.
Re:Open source Background Remover: Remove Background from im... by pmoriarty on Saturday May 06, 2023 @10:04AM (#35841508)
Or like Apple's App Store or the Google Play Store?

All of these, along with those package managers have had malware posted to them.

Re:Open source Background Remover: Remove Background from im... by zamnos on Saturday May 06, 2023 @09:31AM (#35841195)
You probably don't run curl | sudo bash either but other people have different threat models.
Re:Open source Background Remover: Remove Background from im... by frenchman99 on Saturday May 06, 2023 @12:45PM (#35843034)
I do sometimes, when the source is trustworthy.
Re:Open source Background Remover: Remove Background from im... by beagle3 on Saturday May 06, 2023 @06:18AM (#35839922)
This is more than entitled behavior, it’s downright harmful.

When (not if, when) binaries get trojanned, this causes blame to be directed at the original author, and takes a lot of work to explain that they are not at fault - this has happened in many supposedly reputable download sites including SourceForge, TUCOwS, Download.com and many others (yes, I haven’t used windows in 20 years or so, no idea what the hip new places are)

Say “thank you”, and spend 10 more minutes yourself to set it up (even if compilation takes 5 hours, it’s usually 10 mins to get it started). And then offer it for others, and handle the ricochets when it gets trojanned with no wrong done by you.

If just 20 people adopted such a process, there would be 98% less complaints of this kind.

Re:Open source Background Remover: Remove Background from im... by nwoli on Saturday May 06, 2023 @08:04AM (#35840504)
GitHub will take it down if it contains blatant malware so it’s not that big of a deal
Re:Open source Background Remover: Remove Background from im... by VWWHFSfQ on Saturday May 06, 2023 @08:45AM (#35840830)
Somebody would have to report that to them first though
Re:Open source Background Remover: Remove Background from im... by jdthedisciple on Saturday May 06, 2023 @08:38AM (#35840779)
How can a binary I provided possibly be trojanned by someone else?

Genuinely curious.

Re:Open source Background Remover: Remove Background from im... by VWWHFSfQ on Saturday May 06, 2023 @08:43AM (#35840818)
Trojaned installers by download.com were rampant back in the day. They would take your program and wrap it up in a nice little installer wizard and then also stuff a bunch of adware and spyware in there with it
Re:Open source Background Remover: Remove Background from im... by zamnos on Saturday May 06, 2023 @09:28AM (#35841178)
Sure, but what does that have to do with distributing binaries off Github? Maybe if Bonzie Buddy and IE6 make a comeback but I don't see that happening.
Re:Open source Background Remover: Remove Background from im... by luizcdc on Saturday May 06, 2023 @09:17AM (#35841093)
I don't understand what's the harm of having a releases page with a binary and its md5 hash, or how that keeps anyone from just compiling an unofficial binary themselves and adding malware to it.

Anyone not technical enough to compile a binary has to give up trying to use it or risk some unnoficially distributed executable .

Re:Open source Background Remover: Remove Background from im... by pmoriarty on Saturday May 06, 2023 @10:00AM (#35841462)
An md5 can be created for the trojaned binary and be posted along with it.

Not to mention that the md5 checksum is a very poor choice for this purpose because of the ease of creating md5 collisions.

Re:Open source Background Remover: Remove Background from im... by hattmall on Saturday May 06, 2023 @10:12AM (#35841587)
But not on the official page, right? And there's nothing stopping someone from doing that now is there? I don't see how the original authors providing binaries is less secure than anything else.
Re:Open source Background Remover: Remove Background from im... by thdespou on Saturday May 06, 2023 @11:06AM (#35842062)
Yeah but still hackers can abuse SEO and direct visits to their pages. If you are not careful you might accidentally download a malicious binary.
Re:Open source Background Remover: Remove Background from im... by pmoriarty on Saturday May 06, 2023 @01:14PM (#35843338)
The official page can be hacked, and both malware and md5 of the malware can be placed there.

That's the whole point of using a cryptographic signature backed by a web of trust instead of a mere hash.

Re:Open source Background Remover: Remove Background from im... by robertlagrant on Sunday May 07, 2023 @04:18PM (#35855240)
Where would the hash be advertised?
Re:Open source Background Remover: Remove Background from im... by Garcia98 on Saturday May 06, 2023 @09:34AM (#35841219)
Providing a checksum along with the binary singlehandedly solves your concerns, and you can add gpg signatures if you want.
Re:Open source Background Remover: Remove Background from im... by pmoriarty on Saturday May 06, 2023 @09:58AM (#35841445)
A checksum can be falsified as easily as a binary, and so can a signature. Only if you participate in a web or trust are you theoretically better off... but most people don't, so all such measures do is give a false sense of security.
Re:Open source Background Remover: Remove Background from im... by tredre3 on Saturday May 06, 2023 @06:14PM (#35845808)
> If just 20 people adopted such a process, there would be 98% less complaints of this kind.

Okay so if 20 people did the same work over and over it would reduce 98% of the complaints.

Contrast that to if the author did the work once, it would reduce 100% of the complaints!

Re:Open source Background Remover: Remove Background from im... by beagle3 on Sunday May 07, 2023 @08:57AM (#35851034)
If every author did.

Do they owe you anything?

Re:Open source Background Remover: Remove Background from im... by input_sh on Saturday May 06, 2023 @06:16AM (#35839911)
Linked somewhere in the middle of the README file: https://backgroundremoverai.com/?lang=en
Re:Open source Background Remover: Remove Background from im... by IshKebab on Saturday May 06, 2023 @06:46AM (#35840063)
Because it's a Python project (like most AI code) and distributing Python code in easily usable form is an absolute nightmare.
Re:Open source Background Remover: Remove Background from im... by martsa1 on Saturday May 06, 2023 @08:11AM (#35840570)
I've not tried it with AI projects, but pyinstaller does a usually pretty solid job of packing up most python projects, and it's pretty simple to get started with.
Re:Open source Background Remover: Remove Background from im... by Cyphase on Saturday May 06, 2023 @08:52AM (#35840878)
I've packaged various AI/ML/PyTorch/TensorFlow things with PyInstaller in the past. It took some hours of initial work, but the result was good. Things might be easier now.
Re:Open source Background Remover: Remove Background from im... by simion314 on Saturday May 06, 2023 @10:10AM (#35841558)
Will that package all the dependencies in?

I am not a python dev and testing AI stuff in Python made me hate python ecosystem (not the language ) a lot. All this new AI projects are made by enthusiaste, they depend on a specific CUDA version, a specific A,B,D python lib versions. Very often shit does not work anymore and you need to google and hope other person was unlucky before you and posted some commit version of the stuff that still works.

My advice for people that test AI stuff, after you get it working do not update, try if possible to install the new version side by side and see if it works, it saves you the pain to roll back to a good version.

Re:Open source Background Remover: Remove Background from im... by whitemary on Saturday May 06, 2023 @11:52AM (#35842551)
Better yet make a Dockerfile
Re:Open source Background Remover: Remove Background from im... by nadermx on Saturday May 06, 2023 @09:04AM (#35840953)
Had not thought to make a binary for this project. I will look into this
Re:Open source Background Remover: Remove Background from im... by Gordonjcp on Saturday May 06, 2023 @09:17AM (#35841089)
Deliberate barrier to entry.

If you're going to use something that needs a bit of technical skill to operate correctly, you're going to need at least enough skill to get it running.

Roads would be far safer if every car had some facility by which you had to remove and refit some random engine or braking system component correctly before it would start.

Re:Open source Background Remover: Remove Background from im... by zamnos on Saturday May 06, 2023 @09:33AM (#35841209)
Would roads be safer, or would there be more mechanics? They seem like different skills.
Re:Open source Background Remover: Remove Background from im... by Gordonjcp on Saturday May 06, 2023 @01:14PM (#35843336)
Roads would be safer, because people would understand more about their car that "PUSH BUTAN GO FAST"
Re:Open source Background Remover: Remove Background from im... by CapstanRoller on Saturday May 06, 2023 @03:04PM (#35844382)
Everyone would be too busy wrenching on their cars to drive them
Re:Open source Background Remover: Remove Background from im... by Tao3300 on Saturday May 06, 2023 @06:23PM (#35845872)
Roads would be more dangerous. I put the work into my car, I'll drive how I want.
Re:Open source Background Remover: Remove Background from im... by weinzierl on Saturday May 06, 2023 @09:56AM (#35841434)
Besides what beagle3 wrote: Providing binaries for various platforms is more work than you might think and the people who like to do development work are rarely the same people that like packaging and distribution. That's why developer and maintainer are separate persons more often than not.
Re:Open source Background Remover: Remove Background from im... by nadermx on Saturday May 06, 2023 @10:08AM (#35841541)
Re:Open source Background Remover: Remove Background from im... by Hard_Space on Saturday May 06, 2023 @10:48AM (#35841888)
My problem is the assumption by authors that the project being installed is the only one on the machine, and the fact that projects get so tied to particular versions of libraries. Therefore installing the PyTorch specified in this version is likely to be injurious to other existing installations, unless you handle it all in a Conda wrapper.