News for hackers. Stuff that matters.
Re:NPM package compromised by author: erases files on RU / B... by madaxe_again on Wednesday March 16, 2022 @07:18PM (#30705415)
So he’s a criminal now? Under what law, of what nation? Russia?
Re:NPM package compromised by author: erases files on RU / B... by jaimex2 on Wednesday March 16, 2022 @07:39PM (#30705589)
Most countries have cybercrime laws that have clauses for malicious code. Here in Australia for example:

Cybercrime offences are found in Commonwealth legislation within parts 10.7 and 10.8 of the Criminal Code Act 1995 and include:

-Computer intrusions

-Unauthorised modification of data, including destruction of data

-Unauthorised impairment of electronic communications, including denial of service attacks

-The creation and distribution of malicious software (for example, malware, viruses, ransomware)

-Dishonestly obtaining or dealing in personal financial information.

Re:NPM package compromised by author: erases files on RU / B... by celticninja on Wednesday March 16, 2022 @07:48PM (#30705653)
Is it unauthorised if a user chooses to add the package themselves? This is not being put into anyone's machine clandestinely. It is the software user's responsibility to ensure the software is doing what you expect.
Re:NPM package compromised by author: erases files on RU / B... by orbz on Wednesday March 16, 2022 @09:49PM (#30706627)
IANAL, but I suspect that it is considered unauthorized as there are many avenues in which a dependency will get updated without a user specifying this exact package and version. I think the key here is that there is clear malicious intent.
Re:NPM package compromised by author: erases files on RU / B... by Adraghast on Wednesday March 16, 2022 @09:05PM (#30706270)
I rather doubt grandma pressing OK when asked to install the CoolWebSearch toolbar would hold up as a legal defense.
Re:NPM package compromised by author: erases files on RU / B... by jaimex2 on Wednesday March 16, 2022 @07:52PM (#30705697)
Upto a court to decide. Turns out he's in California which has laws against writing and distributing malicious code.

He's looking at state level:

if charged as a misdemeanor, the crime is punishable by: imprisonment in county jail for up to one year, and/or a maximum fine of $5,000.6

If charged as a felony, the offense is punishable by: imprisonment for up to three years, and/or a maximum fine of $10,000.7

Federal charges I'm not sure about.

Re:NPM package compromised by author: erases files on RU / B... by mannerheim on Thursday March 17, 2022 @06:27PM (#30716582)
Laws are enforced by people. I doubt any prosecutors will care, and if there are, I doubt any jury will convict.
Re:NPM package compromised by author: erases files on RU / B... by sva_ on Wednesday March 16, 2022 @08:03PM (#30705812)
Whats up with the .6 and .7?
Re:NPM package compromised by author: erases files on RU / B... by Adraghast on Wednesday March 16, 2022 @09:00PM (#30706238)
Probably section numbers that copied and pasted weirdly.
Re:NPM package compromised by author: erases files on RU / B... by planetree on Thursday March 17, 2022 @07:05AM (#30709751)
inflation
Re:NPM package compromised by author: erases files on RU / B... by Dma54rhs on Wednesday March 16, 2022 @07:47PM (#30705648)
Pretty sure under any Western country's law?
Re:NPM package compromised by author: erases files on RU / B... by kevin_thibedeau on Wednesday March 16, 2022 @07:36PM (#30705560)
Wikipedia TOS
Re:NPM package compromised by author: erases files on RU / B... by sva_ on Wednesday March 16, 2022 @08:01PM (#30705793)
Criminal because of violating Wikipedia TOS. Seems about right. /s