Intent-Code Divergence
High
- Confidence
- 99% confidence
- Finding
- The utility wrapper accepts arbitrary SQL from command-line input and passes it directly to db.prepare(sql).all() or db.exec(sql), which defeats the document's own advice to use parameterized queries. In an agent setting, where query strings may be composed from untrusted task input, this enables SQL injection, arbitrary data modification, schema destruction, and data exfiltration from the local database.
