Weaponizing LLMs to Hack Your Node.js Apps
summary
Shows concrete exploits: LLMs repeatedly generate vulnerable Node code (Fastify route with path traversal, Mongoose hooks that enable prototype pollution), an experiment finds ~1 in 4 JavaScript snippets map to one of ~40 vulnerability types, and Claude 3.7 produces a catastrophic ReDoS regex in generated validation. Demonstrates adversarial prompt injection (a hidden white-on-white PDF prompt injection that flips a credit decision) and how LLM responses logged into SQL concatenation can be weaponized to drop tables via injected SQL.
AI-written summary · about
