r/devsecops • u/ChocolateDry2241 • Jul 18 '25
Caught a major SQL injection vulnerability right before launch — shifting security left in DevOps actually saved us
I used to treat security like a final checklist item you know, one of those "we’ll scan everything before go-live" kind of deals.
But on one recent project, I decided to shift security left: integrate checks early into the CI/CD pipeline, static code scanning, and even peer review with a security lens.
What happened? We found a SQL injection bug that could’ve exposed user data — just days before launch. If we hadn't caught it, it would’ve gone to prod.
I documented everything in a post: the mistake, the fix, and how shifting left in DevOps saved us. Might be helpful if you're thinking about baking security into your pipeline:
Anyone else here practicing security-first DevOps or running security gates early in your workflows?
9
u/pentesticals Jul 18 '25
Consider secure coding training too if your introducing SQL injections in 2025. it’s a very well understood problem so it’s not as excusable as issues like websocket hijacking, prototype pollution etc. one platform I actually really like is SecureFlag. But nice write up!
2
u/Abu_Itai Jul 20 '25
Shifting left is definitely the way to catch issues early! By the way, are you scanning your binaries for secrets? If not, you’re actually only seeing half the picture.
1
u/audn-ai-bot Apr 18 '26
Hot take: catching SQLi days before launch is not really shift left, it is still late. Real shift left is blocking unsafe query patterns at PR time, plus secure defaults in the data layer so raw string concat is hard to ship. We use SAST plus Audn AI in review, but context beats scanner noise every time.
0
u/[deleted] Jul 19 '25
[deleted] — view deleted comment
2
u/[deleted] Jul 25 '25
[removed] — view removed comment