News for hackers. Stuff that matters.
Re:NPM package compromised by author: erases files on RU / B... by chizhik-pyzhik on Wednesday March 16, 2022 @06:04PM (#30704717)
Regardless of your political position, this falls well within the definition of malware. It's irresponsible for the maintainer to allow this: https://github.com/RIAEvangelist/node-ipc/issues/233
Re:NPM package compromised by author: erases files on RU / B... by urthor on Wednesday March 16, 2022 @10:11PM (#30706798)
This still goes to the heart of the obligations of maintainers.

"THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."

People keep placing obligations on maintainers in the FOSS ecosystem.

Maintainers don't have to do jank in this situation, except don't fraudulently distribute their software.

If they want to publish their upstream as malware, okay.

It's the end user's fault for continuing to pull that source code and integrate it into their system.

Re:NPM package compromised by author: erases files on RU / B... by armchairhacker on Wednesday March 16, 2022 @10:39PM (#30707011)
Normally I agree, except in this case when the maintainer becomes the aggressor and literally installs malware to the user. This has nothing to do with FOSS and contributors being obligated to write better code, this is deliberately hacking someone.

That's like saying "it's your fault for giving them your password" when someone opens a phishing link. Yeah, all the scammers did was host a website and send emails, you chose to provide them your information. It doesn't make them not liable.

Re:NPM package compromised by author: erases files on RU / B... by bryanrasmussen on Wednesday March 16, 2022 @10:26PM (#30706918)
>If they want to publish their upstream as malware, okay.

I think you'll find that argument will not be very persuasive to a judge if the case is that the author of the software knowingly adds code in after people have integrated it into their systems that on purpose damages those systems.

Intention will often carry weight, and no claiming of rights and purity and see I wrote here you can't do anything to me! is going to persuade a judge that you can just go around destroying property because you want to.

Re:NPM package compromised by author: erases files on RU / B... by isitmadeofglass on Thursday March 17, 2022 @02:06AM (#30708140)
If you sign a contract stating that you get 10k and in return I get to destroy your property. A judge is not very likely to enforce the payment but state that I should not destroy your property “because obviously thats not something you would like”

The license grants you usage but you agree to no responsibility for damages. You can’t cherry pick half of it, that defies the entire point of a license. The fact that you’d like to both Ear your cake and have it to does not have any weight in court.

Re:NPM package compromised by author: erases files on RU / B... by rcxdude on Thursday March 17, 2022 @09:03AM (#30710685)
Licenses aren't contracts, and more to the point, licenses grant you the right to copy or distribute the software, you do not need to agree to them for use (this is a very common misconception). You have the right to use the software if you have been given a copy by someone with the right to distribute the software, unless you have signed a contract with them stating otherwise (EULAs and other such attempts to force a one-sided contract onto users generally have little weight in court).
Re:NPM package compromised by author: erases files on RU / B... by uwuemu on Friday March 18, 2022 @11:20PM (#30730638)
People are so clueless about law, this comment is a great example. A licence is worth jack shit in a criminal case (which this would be, if prosecuted).
Re:NPM package compromised by author: erases files on RU / B... by urthor on Saturday March 19, 2022 @09:06PM (#30739041)
Agree with this.

I think the difference is between sharing the code and pushing dodgy code down into npm. Which is my misunderstanding.

Pushing this dodgy code down to end users in Russia/Ukraine is a cyberattack.

Re:NPM package compromised by author: erases files on RU / B... by 88913527 on Wednesday March 16, 2022 @10:41PM (#30707026)
> If they want to publish their upstream as malware, okay.

NPM's terms explicitly disallow malware. They're free to put the raw source on say GitHub, but the author isn't permitted to package and distribute it on NPM.

https://docs.npmjs.com/policies/open-source-terms

Re:NPM package compromised by author: erases files on RU / B... by urthor on Saturday March 19, 2022 @09:04PM (#30739028)
You're spot on, my mistake.

I thought the author published it via Git and some npm maintainer scraped them.

If they distributed this code to end users that's just a cyberattack.

Re:NPM package compromised by author: erases files on RU / B... by lal on Saturday March 19, 2022 @05:53AM (#30732489)
I'm two days late but this is an argument for a developer not removing a security vulnerability from a dead project they've stopped maintaining, not this. I feel like not actively choosing to push malware to a repository where you know many, many automated systems will pull that malware onto the systems of your end-users due to a poor security model in the ecosystem you're developing in is a very very low bar of obligation as a maintainer.

Like, okay, you can't expect a doctor to save the life of every person who comes into the ER, but you can hopefully expect them not to start stabbing patients to death, and something should probably happen if they do, right?

Your argument makes sense for inaction (and is important and not brought up enough, honestly; there is a lot of entitlement in the open source world and people treat library developers in some pretty nasty ways), but not for action, as is the case here. The only obligation anyone expected here was the obligation to hold yourself back from making your project that gets millions of downloads per week point to malware.

Re:NPM package compromised by author: erases files on RU / B... by urthor on Saturday March 19, 2022 @09:01PM (#30739009)
I agree, I think I misread.

If you actively distribute, as in push your code out to the world via pushing it into npm, that's very different to sharing the code on GitHub.

Re:NPM package compromised by author: erases files on RU / B... by kelnos on Wednesday March 16, 2022 @11:18PM (#30707282)
So basically you're interpreting this clause as "if I want to be a total asshole, I can, and no one is allowed to complain"?

I reject that interpretation entirely. Sure, maybe the author isn't legally liable for any harm here (though I'm not entirely convinced that's the case), but we are all well within our rights to tell him he's an asshole for doing this.

Re:NPM package compromised by author: erases files on RU / B... by fork-while-fork on Wednesday March 16, 2022 @11:21PM (#30707297)
Intent matters. The maintainer very clearly intended to do harm. They abused end user trust which is a common attack vector for many pieces of malware.
Re:NPM package compromised by author: erases files on RU / B... by Volundr on Wednesday March 16, 2022 @11:04PM (#30707195)
> This still goes to the heart of the obligations of maintainers.

I don't think this comes down to an "obligation" of open source maintainers. I think it's pretty evil of ANYONE to market software pretending it's one thing, when it reality it's malware. Open Source or not doesn't change that.

> It's the end user's fault for continuing to pull that source code and integrate it into their system. More than one party can be at fault.

Re:NPM package compromised by author: erases files on RU / B... by lopis on Friday March 18, 2022 @04:21AM (#30719757)
Ok, sure. It's our fault.

But now that the maintainer became a malicious actor, I hope they are booted from the FOSS world and their github gets shutdown for illegal behaviour. This behaviour cannot go on unpunished.

Re:NPM package compromised by author: erases files on RU / B... by katbyte on Thursday March 17, 2022 @12:54AM (#30707799)
and sometimes people ask why I always vendor in in my go code deps and refuse to stop
Re:NPM package compromised by author: erases files on RU / B... by zozbot234 on Wednesday March 16, 2022 @06:51PM (#30705165)
Plenty of existing ransomwares delete user files on everything-but-RU machines. Perhaps the maintainer of this package subscribes to the old view that "turnabout is fair play".
Re:NPM package compromised by author: erases files on RU / B... by schoen on Wednesday March 16, 2022 @07:12PM (#30705357)
"Some people in my country were victimized by organized crime in another country, so it's turnabout, and hence fair play, for me to victimize other people in that country"?

"Some people in my country were victimized by organized crime in another country, and that country's government didn't try to stop the criminal activity, so it's turnabout, and hence fair play, for me to victimize other people in that country"?

Re:NPM package compromised by author: erases files on RU / B... by sva_ on Wednesday March 16, 2022 @07:59PM (#30705774)
But that shouldn't be an excuse to sink to their level.
Re:NPM package compromised by author: erases files on RU / B... by labster on Wednesday March 16, 2022 @11:03PM (#30707190)
They haven’t really sunk to their level unless there’s an npm module to bomb hospitals I don’t know about. Still bad to target civilians, though.
Re:NPM package compromised by author: erases files on RU / B... by sva_ on Thursday March 17, 2022 @04:56AM (#30708996)
Well I meant the level of ransomware authors and the like.
Re:NPM package compromised by author: erases files on RU / B... by foverzar on Thursday March 17, 2022 @03:26PM (#30714955)
> delete user files on everything-but-RU machines

Wasn't that about Cyrillic keyboard layout? Russia don't own neither Cyrillics, nor Russian language.

Re:NPM package compromised by author: erases files on RU / B... by Jimbonius on Wednesday March 16, 2022 @08:07PM (#30705852)
But whatabout the other guys????

Are you a child?

Re:NPM package compromised by author: erases files on RU / B... by zozbot234 on Wednesday March 16, 2022 @08:25PM (#30705984)
Good question, you should ask the maintainer that. I'm speculating about their possible motive for abusing the FLOSS ecosystem in such a destructive way, not trying to justify their behavior or anything.
[dead]
Re:NPM package compromised by author: erases files on RU / B... by lal on Saturday March 19, 2022 @05:56AM (#30732501)
You know, if you really want to post like you're on /g/ you can just go back to /g/. It's still there.
[dead]
Re:NPM package compromised by author: erases files on RU / B... by lal on Wednesday March 23, 2022 @10:47AM (#30778986)
I'm just saying you'd be happier there, it even has boards for non-tech-related stuff since you don't post here about tech-related stuff. Perfect fit!
Re:NPM package compromised by author: erases files on RU / B... by YATA0 on Friday March 25, 2022 @11:59AM (#30803745)
>I'm just saying you'd be happier there

You'd be happier on /r/cuckold, yet here you are.

>it even has boards for non-tech-related stuff since you don't post here about tech-related stuff.

I posted on a thread about malware, and made a comment about malware. That's "tech-related stuff". You have poor reading comprehension.

>Perfect fit!

Reddit also has /r/soyboy as well! Perfect fit!

Re:NPM package compromised by author: erases files on RU / B... by paxys on Wednesday March 16, 2022 @06:30PM (#30704965)
Yup. Although if you do want to get political, I'd say this falls under the definition of cyber warfare. Also the maintainer didn't only "allow" it, it seems he is the author of the malicious module as well.
Re:NPM package compromised by author: erases files on RU / B... by quinnjh on Thursday March 17, 2022 @02:20AM (#30708201)
Whats painful is that in terms of cyberwarfare, allied systems maintain dominance of global grid with innovation and open source. If we had allies in russia, im sure we have fewer now. This sort of DOS attack is effective in first order effects but the second order effects could be increased resentment and new systems developed in isolation.