Comment Money Can Fix the Problem it Created (Score 4, Interesting) 33
The fundamental problem is that bad actors are willing to spend considerable money and resources to implement these attacks, and the consumers of this software are unwilling to spend the considerable money and resources to mitigate risk. Maybe there a business model for a firm/organization to say "Okay, we're going to own this", meaning creating an ecosystem (curated walled garden) along the following lines?
- Companies (customers) pay non-trivial fees for curating a secure set of NodeJS (or Python or whatever) packages
- Fees would go toward personnel and resources (including AI) to import and review new and updated packages posted on the "open" package managers (NPM, PyPi, etc.)
- Candidate packages to be added to this ecosystem would have to include unobfuscated source, build/transpile instructions and sufficient unit testing (and integration testing, when applicable)
- Packages that fail security scans, rely on packages/package versions not trusted in the ecosystem, have pre-compiled or obfuscated content, etc. will be rejected
- Packages with open source licenses (GPL, MIT, etc.) can be submitted for free. For-profit/restricted packages would require a fee.
- Indemnification / Insurance covering costs associated with supply-chain attacks that make it through this ecosystem. [Optional?]
- There is no reason why there couldn't be more than one of these ecosystems (if there is enough money to be made to support it)
It is likely that the indemnification/insurance part of this will be the most expensive part of this (profits and shareholder return notwithstanding). But without at least an option for this, I don't see how you get companies to take this seriously enough to pay for it.
Most of the package scanning tools that I know of only work once you have already retrieved packages that may have been compromised. Paying to secure the supply chain upstream is a better solution, if somebody could make money doing it.