Lucky for us C programmers. Each distro provides its own trusted libc, and my code has no other dependencies. :)
GitLab discovers widespread NPM supply chain attack
61–70 of 263 posts
Re: GitLab discovers widespread NPM supply chain attack
#62Earlier quoted context omitted.
Why would that make it any less insightfull?
Because bias and incentives matter. There's a reason disclosures are obligatory in academic papers.
Call me a conspiracy theorist, but I start to think these people might be affiliated with GitLab.
Re: GitLab discovers widespread NPM supply chain attack
#63Everyone is blaming npm but GitHub should be put on blast too for allowing the repos to be created and not quickly flagged. GitHub has a massive malware problem as it is and it doesn’t get enough attention.
Re: GitLab discovers widespread NPM supply chain attack
#64Re: GitLab discovers widespread NPM supply chain attack
#65Re: GitLab discovers widespread NPM supply chain attack
#66Does anyone know why NPM seems to be the only attractive target? Python and Java are very popular, but I haven't heard anything in those ecosystems for a while. Is it because something inherently "weak" about NPM, or simply because, like Windows or JavaScript, everyone uses it?
1) The availability of the package post-install hook that can run any command after simply resolving and downloading a package[1].
That, combined with:
2) The culture with using version ranges for dependency resolution[2] means that any compromised package can just spread with ridiculous speed (and then use the post-install hook to compromise other packages). You also have version ranges in the Java ecosystem, but it's not the norm to use in my experience, you get new dependencies when you actively bump the dependencies you are directly using because everything depends on specific versions.
I'm no NPM expert, but that's the worst offenders from a technical perspective, in my opinion.
[1]: I'm sure it can be disabled, and it might even be now by default - I don't know. [2]: Yes, I know you can use a lock file, but it's definitely not the norm to actively consider each upgraded version when refreshing the lockfile.
Re: GitLab discovers widespread NPM supply chain attack
#67In addition to concerns about npm, I'm now hesitant to use the GitHub CLI, which stores a highly privileged OAuth token in plain text in the HOME directory. After the attacker accesses it, they can do almost anything on behalf of me, for example, they turned many of my private repos to public.
Re: GitLab discovers widespread NPM supply chain attack
#68Re: GitLab discovers widespread NPM supply chain attack
#69The credential harvesting aspect is what concerns me most for the average developer. If you've ever run `npm install` on an affected package, your environment variables, .npmrc tokens, and potentially other cached credentials may have been exfiltrated. The action item for anyone potentially affected: rotate your npm tokens, GitHub PATs, and any API keys that were in environment variables. And if you're like most deve…
Is this true? God I hope not, if developers don't even follow basic security practices then all hope is lost.
I'd assume this is stating the obvious, but storing credentials in environment variables or files is a big no-no. Use a security key or at the very least an encrypted file, and never reuse any credential for anything.
Re: GitLab discovers widespread NPM supply chain attack
#70Everyone is blaming npm but GitHub should be put on blast too for allowing the repos to be created and not quickly flagged. GitHub has a massive malware problem as it is and it doesn’t get enough attention.
Imagine the number of things that can go wrong when they try to regulate or introduce restrictions for build workflows for the purpose of making some extra money... lol
The original Java platform is a good example to think about.