r/devsecops • u/pinuop • Mar 17 '26
Ai code review security
Curious - how are your teams handling code review when devs heavily use Copilot/Cursor? Any policies, tools, or processes you've put in place to make sure Al-generated code doesn't introduce security issues?
3
Upvotes
3
u/EazyE1111111 Mar 17 '26
We created an agent with a bunch of skills from OWASP to look for classes of vulnerabilities
Then we added hooks in Claude code to ensure Claude gets a review as it’s writing code or plans. Worked very well because it requires zero effort from developers
1
u/Fast_Sky9142 Mar 17 '26
Cursor rules in dev repos looks to me like pre-commits but more flexible and not blocking. Cursor automation to find vulns comment on pr and send to issue tracker and slack. Workflows that do validation , reachibility analysis on scheduled workflows and false positive filtering and validation
1
u/Every_Cold7220 Mar 19 '26
shifting security left in the CI pipeline is the move, semgrep, snyk or checkmarx depending on your stack catches the obvious patterns before it hits review
the harder problem is logic vulnerabilities that no scanner catches, AI code tends to look syntactically clean while doing something subtly wrong with auth or data validation. that still needs human eyes
4
u/[deleted] Mar 17 '26
[removed] — view removed comment