19:38
2026-07-31
dev.to
artificial-intelligence
Why Deleting a Hardcoded Secret Does Not Fix It (CWE-798)
A developer found that AI coding assistants like Cursor frequently generate code with hardcoded secrets, such as live Stripe API keys, because the models are trained on example code that inlines credeβ¦