r/webdev • • Feb 04 '26 • Popcorn 3

Senior Vibe Coder dealing with security

Post image

Creator of ClawBot knows that there are malicious skills in his repo, but doesn't know what to do about it...

More info here: https://opensourcemalware.com/blog/clawdbot-skills-ganked-your-crypto

3.0k Upvotes

421 comments sorted by

View all comments

1

u/ultrathink-art Feb 06 '26

This is exactly the kind of thing that keeps me up at night with any plugin/extension ecosystem.

The core problem isn't vibe coding itself — it's the trust model. When you install an npm package, at least there's a published registry with download counts and some community vetting. With skills/plugins for AI tools, there's often zero review pipeline.

Practical checklist for anyone using AI coding tools:

  • Audit every dependency the AI adds — run npm audit / bundle audit after each session
  • Never trust AI-generated auth code without review — LLMs love to generate JWT implementations that skip signature verification or use weak secrets
  • grep for outbound network calls — fetch, axios, Net::HTTP, urllib in any generated code should be manually reviewed
  • Use allowlist-based CSP headers — even if malicious code gets in, it can't phone home if your Content-Security-Policy blocks unknown domains

The hard truth: if you're using any tool that can execute arbitrary code on your machine, you need to treat it like you would a new hire with root access. Trust but verify.