With AI tools and agentic coding available to folks that would never have otherwise used npm, pip or any of these other easy to install cli tools the conversation of where the security boundaries are must evolve.
Open doors and unlocked windows are being pushed by these tools "let us run the show with your permissions" and it's created an ecosystem ripe for abuse.
The average person who now uses AI doesn't think about security the same way Developers and Engineers do.
Pushing the security back onto people like this is giving them their own rope basically.
Alerts and warnings and all of that are great but convenience will usually win no matter how many times you tell someone don't trust this feature, repo, installable package, whatever.
When your vibe coding and the AI tells you to npm or pip install this package and the tools don't prevent their MCP configs from being altered without warning in some cases who is responsible for what? Is it really back on the user who is relying on their tools and AI to give them the best advice?
Last week npm decided to shift trust instead of embedding malware analysis in their ecosystem.
This should raise a red flag for anyone who's following the latest supply chain attack news.
Developer accounts are being broken into, either phished, compromised by malware or via data leaks, then the threat actors use these accounts to deliver malware to anyone who's using the victim's code packages.
If we're going to treat every account hijacking technique separately and try to add more authentication factors, more key rotations, we're not protecting developers, we're just making their process slower, and - we're not solving the actual problem.
Malicious code.
If a threat actor is able to uploaded malicious code to npm, PyPi, GitHub, GitLab, Maven, (and the list goes on) without being blocked *before* the code could infect others - the malware problem is not solved, just shifts responsibility.
Scanning malicious code, analyzing code behaviour and intent is key for protecting users. When npm says that they revoke one type of authentication, they just open the door to threat actors to use other methods to continue upload malicious code. What if someone is just giving a threat actor full access to his account willingly? or selling access to the highest bidder? Threat Actors could just pretend to be regular developers, gaining downloads and trust before turning their code into an info stealing malware.
Malicious code should be treated like harmful content - it should be detected and blocked before anyone is exposed to it. Social media and content platforms are doing this for years, scanning, detecting and removing bad content before we even see it. If code was treated the way, threat actors would have a much harder time pulling off successful supply chain attacks endangering millions of users around the world.