Somebody Tried to Hide a Backdoor in a Popular JavaScript npm Package (bleepingcomputer.com)
Catalin Cimpanu, reporting for BleepingComputer: The Node Package Manager (npm) team avoided a disaster today when it discovered and blocked the distribution of a cleverly hidden backdoor mechanism inside a popular -- albeit deprecated -- JavaScript package. The actual backdoor mechanism was found in "getcookies," a relatively newly created npm package (JavaScript library) for working with browser cookies. The npm team -- which analyzed this package earlier today after reports from the npm community -- says "getcookies" contains a complex system for receiving commands from a remote attacker, who could target any JavaScript app that had incorporated this library.
Well apparantly you have a complex system for receiving...
What the heck is a Zontar?
Just more fuel on the dumpster fire. If you *need* a third party to maintain all of your useless frameworks then it's time to stop
You aren't going to catch 'em all. These types of public package management systems are going to need a major overhaul with security and auditing in mind. I'm looking at you PyPI!
As a Dev NOT working with JS and NPM: Given the vast number of packages on NPM https://developers.slashdot.org/story/17/01/14/0222245/nodejss-npm-is-now-the-largest-package-registry-in-the-world I'd wager a pretty penny there are more foul packages out there.
Dependency managers like Maven, Gradle, NPM, Pipenv and Bundler have made linking against other peoples libraries a walk in the park. Regardless if you draw your packages from public servers or your private Artifactory Server.
YOU are the Developer. It is YOUR obligation to ensure you don't link to bogus, questionable or potentially malicious libraries.
They spotted that one on time, but rest assured, there are probably hundreds of other packages out there (not only on NPM) that are either faulty, insecure or downright malicious.
We should take this as a shot across the bow. Be vigilent and don't rely on the competence of others to sort out the rotten apples for you. Think twice before you include some nifty lib into your project. If in doubt, get the source code (where available) and vet the source you got the binary from. Developers supplying packages should have their packages cryptographically signed for their own protection. It's not like this technology didn't exists. We only don't use it out of convenience and trust me ... the road to hell the most convenient one there is.
Newly created, popular, and deprecated. That doesn't sound right.
Why the fuck do you need a fucking library for working with fucking cookies? It's built-in fucking vanilla javascript you fucking idiots.
... then they'd be half decent coders and wouldn't be coding in babyscript, sorry, javascript. This language is where idiots and MBAs straight off an "Anyone can code!" course end up, writing Hello World style programs using half a dozen libraries to create a Hello factory and a World factory with another factory that joins factories which then creates a HelloWorld object that eventually outputs a string via some StringOutputter object.
I don't personally do any significant JS development, but the suggestion that this is a JS-specific problem is silly. This could have just as well been in a Java or C++ framework. We all use third party libraries and frameworks all the time without doing a line-by-line code review.
The real story here isn't that someone tried to slip in a backdoor. The story should be about how the NPM team did their due diligence and protected all of their users by catching this. Good job to them.
- Vincit qui patitur.
While real programmers working in real languages are getting laid off or outsourced millennial programming languages like javascript and tools like npm get made and get widely distributed around the internet. I hope the whole stack gets wannacried/code reded soon.
break the bones in both their hands.
So they basically linked to Facebook?
We all know that JavaScript is a pretty messy language to work with unless you're using some sort of framework. Part of that is that it's been pushed to do way more than it ever was designed to do and is hyper-complex as a result.
I guess my question is how far up the abstraction tower goes. Why would developers pull hundreds of libraries from dozens of sources just to build a simple program? And more importantly, why would you dynamically pull these resources instead of building against a known-good set, and only update one of your dependencies when you've tested it completely?
I know software is all about move-fast-and-break-things these days, but the "trust the Internet implicitly for all my source packages" is one thing I can't get my head around.
It's that it was detected and prevented. How many backdoors are in there that went undetected?
Dude, no one knows who Zontar is. Also, no one cares. At least confine your petty spats to replies to his posts, like you used to do.
After (I think) 3 years, APK is still rankled that I really was able to track him down.
(And I do admit to feeling just a teeny-tiny bit of a warm glow every time he whinges about it.)
BTW, all the postcard said was, "Greetings from Stockholm. Behave yourself. Regards, Z."
Il n'y a pas de Planet B.
Zontar is a 10,000-year-old Sumerian wizard who's been reading Slashdot since it was published on clay tablets.
I let him crash on my couch at one point, and now he won't leave.
There is no XUL, only WebExtensions...
Also possible we're not talking about the same Zontar.
There is no XUL, only WebExtensions...
Comment removed based on user account deletion
Ugh, dealing with APK like that is an ugly trap. I got sucked in by him once years ago, answering every one of his posts on the thread and wasting a huge amount of time (and mental health). I ended up tracking down Alexander's name and address. I even e-mailed one of his former employers (shocked that he could have even had one). They said that yes, he had worked for them but would not give other details. At the time, I let myself get pulled in. I was just so angry about all of his insults and transparent posts from fake "supporters", etc.
Today, I just feel dirty about the whole thing. It was pointless, and it''s scary how easy it is to get dragged down to that level.
Interestingly, I've ctually had some conversations with him on Slashdot that wereally on topic and coherent without any acrimony. I even managed to correct him on a misapprehension he had about a technology, and we discussed it calmly and rationally and he made his point and I made mine and no-one had to stalk anyone or anything.
If you're being telepathically restrained from kicking him out, then, yeah, that's him.
Yeah, he tries really hard to do the Tar Baby thing, and usually I just ignore him.
But the bit about *threatening* him via the mails is completely false.
Il n'y a pas de Planet B.
There should be some kind of verification system for anyone posting downloadable code and/or attempting to subvert existing projects. This kind of code must be tracked and the people (or organization(s)) responsible must see jail time.
But the bit about *threatening* him via the mails is completely false.
I don't know the details of your particular situation but I'm inclined to believe you given what I know of APcucK. He starts with a tiny bit of truth (and a whole lot of nonsense), and after a few posts has reality so twisted around that nobody knows whats true any more. APK is a manipulative weasel that I've squashed many times.
For most people on /. I'd recommend against replying to anything APK posts. He'll suck you into his world, and you won't fair well if you're not prepared to wrestle and defeat someone with mental illness.
Mods: keep up with downmods of APK. He probably won't ever give up, but burying his spam coward posts is what he deserves and it is best for /.
ZIP
P.S. => nice to meet you. I've been accused of being you several times because APK can only obsess about one person at a time.
Comment removed based on user account deletion
Zontar you conveniently avoid you admit you sockpuppet troll and downmod bomb apk. Why did you avoid all that?
This is the only Slashdot account that I have.
And I don't need to waste mod points on you--your crap is almost always modded down by the time I see it, in any case.
And why do you insist on talking about yourself in the 3rd person? You think no-one can tell, do you?
Meanwhile, you keep right on modding my 5 most recent posts as Offtopic or Overrated whenever one of your sockpuppets gets mod points, if it really makes you feel better.
Il n'y a pas de Planet B.
What the fuck is wrong with you?
Confirmed. I tried again last night, and came back to consciousness today singing a song in a tongue I did not know, but understanding that it was in his praise.
There is no XUL, only WebExtensions...