Comment Comment by dns_snek That's a great example of how dangerous actions are perceived as innocent. The entire model of approving specific commands is absolutely bonkers.npm run build = run an arbitrary shell command written in package.jsonMeanwhile the agent could have done any of the following without approval:- edited `package.json` to contain any arbitrary build command- planted malicious code in `build.js` (called by `npm run build`)- planted malicious code in `node_modules/xyz/index.js` (imported by `build.js`) parent dns_snek 5 months ago
npm run build = run an arbitrary shell command written in package.json
Meanwhile the agent could have done any of the following without approval:
- edited `package.json` to contain any arbitrary build command
- planted malicious code in `build.js` (called by `npm run build`)
- planted malicious code in `node_modules/xyz/index.js` (imported by `build.js`)