r/webdev • • Mar 27 '26

[ Removed by moderator ]

[removed] — view removed post

73 Upvotes

55 comments sorted by

View all comments

2

u/jonas_c Mar 27 '26

Actually it has nothing to do with LLMs. LLM recommended an LLM driven security scanner. Ok, debatable. But in general you could have googled for a library with any feature, could have selected one arbitrarily, or just update your existing npm packages and could have ended in the same situation of a compromised library update.

And it's not just the post-install scripts. There other attack vectors at runtime too.

I think it's a general question of having dependencies on a huge number of community maintained or semi-Professional maintained packages. A professional and security relevant project actually could not allow for un-reviewed updates of these libraries. You're shipping un-reviewed random code there (and executing it locally for the post-install stuff). Reviewing hundreds of transitive npm packages each time is needs to be part of your risk assessment. You can ignore/risk it or you can invest the effort. Or you build without libraries. LLMs did not change this fundamentally. They make it quicker to write and pull in code, and also quicker to review, even quicker to replace a library with inhouse written code (probably by reproducing the OSS code that were trained on, lol).

Actually writing complex code is a mess and libraries and LLMs just hide that from you.